From 80e45aa6969d45d7f4346a5537af783949c75428 Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 2 Jan 2022 21:30:54 +0200 Subject: [PATCH] add --- .../usr/share/swarmlab.io/sec/swarmlab-sec | 53 ++++++++++--------- 1 file changed, 28 insertions(+), 25 deletions(-) diff --git a/install/usr/share/swarmlab.io/sec/swarmlab-sec b/install/usr/share/swarmlab.io/sec/swarmlab-sec index bb366a5..2a87066 100755 --- a/install/usr/share/swarmlab.io/sec/swarmlab-sec +++ b/install/usr/share/swarmlab.io/sec/swarmlab-sec @@ -41,7 +41,8 @@ HYBRID_NETWORK="microservice-libvshadow" # dont edit #IMAGE_origin="hub.swarmlab.io:5480/hybrid-numpy:latest" #IMAGE_origin="hub.swarmlab.io:5480/hybrid-hping3" -IMAGE_origin="python:3.11-rc-alpine3.15" +#IMAGE_origin="python:3.11-rc-alpine3.15" +IMAGE_origin="hub.swarmlab.io:5480/hybrid-libvshadow" bootstrap="sec_bootstrap" hostnames="auto_update_hosts" hostnames_get="get_hosts" @@ -170,18 +171,19 @@ if [ -d "$Wdir/project" ]; then && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && chmod -R 600 \${SSHDIR}/* \ && chown -R \${USER1}:\${USER1} \${SSHDIR} \ - && chown -R \${USER1}:\${USER1} \${USER_HOME} \ - && apk update && apk --no-cache add py3-setuptools build-base libffi-dev swig openssl-dev libtool git wget \ - && pip install --upgrade setuptools \ - && wget https://github.com/libyal/libvshadow/releases/download/20211114/libvshadow-alpha-20211114.tar.gz \ - && tar xfv libvshadow-alpha* \ - && cd libvshadow* \ - && ./configure \ - && make \ - && make install \ - && cd .. \ - && rm libvshadow-alpha-20211114.tar.gz \ - && rm -rf libvshadow-* + && chown -R \${USER1}:\${USER1} \${USER_HOME} + + #&& apk update && apk --no-cache add py3-setuptools build-base libffi-dev swig openssl-dev libtool git wget \ + #&& pip install --upgrade setuptools \ + #&& wget https://github.com/libyal/libvshadow/releases/download/20211114/libvshadow-alpha-20211114.tar.gz \ + # && tar xfv libvshadow-alpha* \ + # && cd libvshadow* \ + # && ./configure \ + # && make \ + # && make install \ + # && cd .. \ + # && rm libvshadow-alpha-20211114.tar.gz \ + # && rm -rf libvshadow-* WORKDIR /home/docker/project @@ -267,18 +269,19 @@ if [ "$Wdir" == "$HOME" ]; then && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && chmod -R 600 \${SSHDIR}/* \ && chown -R \${USER1}:\${USER1} \${SSHDIR} \ - && chown -R \${USER1}:\${USER1} \${USER_HOME} \ - && apk update && apk --no-cache add py3-setuptools build-base libffi-dev swig openssl-dev libtool git wget \ - && pip install --upgrade setuptools \ - && wget https://github.com/libyal/libvshadow/releases/download/20211114/libvshadow-alpha-20211114.tar.gz \ - && tar xfv libvshadow-alpha* \ - && cd libvshadow* \ - && ./configure \ - && make \ - && make install \ - && cd .. \ - && rm libvshadow-alpha-20211114.tar.gz \ - && rm -rf libvshadow-* + && chown -R \${USER1}:\${USER1} \${USER_HOME} + + # && apk update && apk --no-cache add py3-setuptools build-base libffi-dev swig openssl-dev libtool git wget \ + # && pip install --upgrade setuptools \ + # && wget https://github.com/libyal/libvshadow/releases/download/20211114/libvshadow-alpha-20211114.tar.gz \ + # && tar xfv libvshadow-alpha* \ + # && cd libvshadow* \ + # && ./configure \ + # && make \ + # && make install \ + # && cd .. \ + # && rm libvshadow-alpha-20211114.tar.gz \ + # && rm -rf libvshadow-* COPY .vimrc /home/docker