zeus 3 years ago
parent
commit
80e45aa696
  1. 53
      install/usr/share/swarmlab.io/sec/swarmlab-sec

53
install/usr/share/swarmlab.io/sec/swarmlab-sec

@ -41,7 +41,8 @@ HYBRID_NETWORK="microservice-libvshadow"
# dont edit # dont edit
#IMAGE_origin="hub.swarmlab.io:5480/hybrid-numpy:latest" #IMAGE_origin="hub.swarmlab.io:5480/hybrid-numpy:latest"
#IMAGE_origin="hub.swarmlab.io:5480/hybrid-hping3" #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" bootstrap="sec_bootstrap"
hostnames="auto_update_hosts" hostnames="auto_update_hosts"
hostnames_get="get_hosts" hostnames_get="get_hosts"
@ -170,18 +171,19 @@ if [ -d "$Wdir/project" ]; then
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \
&& chmod -R 600 \${SSHDIR}/* \ && chmod -R 600 \${SSHDIR}/* \
&& chown -R \${USER1}:\${USER1} \${SSHDIR} \ && chown -R \${USER1}:\${USER1} \${SSHDIR} \
&& chown -R \${USER1}:\${USER1} \${USER_HOME} \ && 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 \ #&& apk update && apk --no-cache add py3-setuptools build-base libffi-dev swig openssl-dev libtool git wget \
&& wget https://github.com/libyal/libvshadow/releases/download/20211114/libvshadow-alpha-20211114.tar.gz \ #&& pip install --upgrade setuptools \
&& tar xfv libvshadow-alpha* \ #&& wget https://github.com/libyal/libvshadow/releases/download/20211114/libvshadow-alpha-20211114.tar.gz \
&& cd libvshadow* \ # && tar xfv libvshadow-alpha* \
&& ./configure \ # && cd libvshadow* \
&& make \ # && ./configure \
&& make install \ # && make \
&& cd .. \ # && make install \
&& rm libvshadow-alpha-20211114.tar.gz \ # && cd .. \
&& rm -rf libvshadow-* # && rm libvshadow-alpha-20211114.tar.gz \
# && rm -rf libvshadow-*
WORKDIR /home/docker/project WORKDIR /home/docker/project
@ -267,18 +269,19 @@ if [ "$Wdir" == "$HOME" ]; then
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \ && cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \
&& chmod -R 600 \${SSHDIR}/* \ && chmod -R 600 \${SSHDIR}/* \
&& chown -R \${USER1}:\${USER1} \${SSHDIR} \ && chown -R \${USER1}:\${USER1} \${SSHDIR} \
&& chown -R \${USER1}:\${USER1} \${USER_HOME} \ && 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 \ # && apk update && apk --no-cache add py3-setuptools build-base libffi-dev swig openssl-dev libtool git wget \
&& wget https://github.com/libyal/libvshadow/releases/download/20211114/libvshadow-alpha-20211114.tar.gz \ # && pip install --upgrade setuptools \
&& tar xfv libvshadow-alpha* \ # && wget https://github.com/libyal/libvshadow/releases/download/20211114/libvshadow-alpha-20211114.tar.gz \
&& cd libvshadow* \ # && tar xfv libvshadow-alpha* \
&& ./configure \ # && cd libvshadow* \
&& make \ # && ./configure \
&& make install \ # && make \
&& cd .. \ # && make install \
&& rm libvshadow-alpha-20211114.tar.gz \ # && cd .. \
&& rm -rf libvshadow-* # && rm libvshadow-alpha-20211114.tar.gz \
# && rm -rf libvshadow-*
COPY .vimrc /home/docker COPY .vimrc /home/docker

Loading…
Cancel
Save