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
#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

Loading…
Cancel
Save