Browse Source

xelatex-base

master
zeus 1 year ago
parent
commit
54335eddb6
  1. 82
      install/usr/share/swarmlab.io/sec/swarmlab-sec

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

@ -41,7 +41,7 @@ HYBRID_NETWORK="microservice-xelatexthesis"
# dont edit # dont edit
#IMAGE_origin="hub.swarmlab.io:5480/hybrid-numpy" #IMAGE_origin="hub.swarmlab.io:5480/hybrid-numpy"
#IMAGE_origin="hub.swarmlab.io:5480/xelatex-basegui" #IMAGE_origin="hub.swarmlab.io:5480/xelatex-basegui"
IMAGE_origin="alpine:latest" IMAGE_origin="hub.swarmlab.io:5480/xelatex-base"
bootstrap="sec_bootstrap" bootstrap="sec_bootstrap"
hostnames="auto_update_hosts" hostnames="auto_update_hosts"
hostnames_get="get_hosts" hostnames_get="get_hosts"
@ -152,32 +152,24 @@ if [ -d "$Wdir/project" ]; then
COPY $hostnames /usr/bin COPY $hostnames /usr/bin
COPY install-vim-plugin.sh . COPY install-vim-plugin.sh .
LABEL \ RUN export DEBIAN_FRONTEND=noninteractive \
org.opencontainers.image.title="Docker Image of TeXLive" \ && rm -rf /usr/share/doc \
org.opencontainers.image.authors="Swarmlab.io <rootapostolos@swarmlab.io>" && rm -rf /usr/share/man \
&& rm -rf /usr/share/locale \
ENV PATH=/usr/local/texlive/bin/x86_64-linuxmusl:/usr/local/texlive/2020/bin/x86_64-linuxmusl:${PATH} && mkdir -p /var/run/sshd \
&& addgroup -S docker && adduser -S docker -G docker \
COPY \ && echo 'root:$ROOT_PASSWORD' | chpasswd \
setup.sh \ && echo "export VISIBLE=now" >> /etc/profile \
extrapackages \ && mkdir -p /home/docker/project \
texlive.profile \ && mkdir -p /etc/opt \
texlive_pgp_keys.asc \ && echo "docker:docker" | chpasswd \
/ && echo "StrictHostKeyChecking no" > \${SSHDIR}/config \
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \
COPY fonts-extra/ /usr/share/fonts && chmod -R 600 \${SSHDIR}/* \
COPY MastersDoctoralThesis.cls /usr/local/texlive/texmf-local/tex/latex/local/MastersDoctoralThesis.cls && chown -R \${USER1}:\${USER1} \${SSHDIR}
COPY \
latex-clean \
latex-pdf \
/usr/local/bin/
RUN /setup.sh
WORKDIR /home
VOLUME ["/home"]
CMD ["tail","-f","/dev/null"] CMD ["tail","-f","/dev/null"]
EOF EOF
fi fi
else else
@ -236,32 +228,24 @@ if [ "$Wdir" == "$HOME" ]; then
COPY $hostnames /usr/bin COPY $hostnames /usr/bin
COPY install-vim-plugin.sh . COPY install-vim-plugin.sh .
LABEL \ RUN export DEBIAN_FRONTEND=noninteractive \
org.opencontainers.image.title="Docker Image of TeXLive" \ && rm -rf /usr/share/doc \
org.opencontainers.image.authors="Swarmlab.io <rootapostolos@swarmlab.io>" && rm -rf /usr/share/man \
&& rm -rf /usr/share/locale \
ENV PATH=/usr/local/texlive/bin/x86_64-linuxmusl:/usr/local/texlive/2020/bin/x86_64-linuxmusl:${PATH} && mkdir -p /var/run/sshd \
&& addgroup -S docker && adduser -S docker -G docker \
COPY \ && echo 'root:$ROOT_PASSWORD' | chpasswd \
setup.sh \ && echo "export VISIBLE=now" >> /etc/profile \
extrapackages \ && mkdir -p /home/docker/project \
texlive.profile \ && mkdir -p /etc/opt \
texlive_pgp_keys.asc \ && echo "docker:docker" | chpasswd \
/ && echo "StrictHostKeyChecking no" > \${SSHDIR}/config \
&& cat \${SSHDIR}/*.pub >> \${SSHDIR}/authorized_keys \
COPY fonts-extra/ /usr/share/fonts && chmod -R 600 \${SSHDIR}/* \
COPY MastersDoctoralThesis.cls /usr/local/texlive/texmf-local/tex/latex/local/MastersDoctoralThesis.cls && chown -R \${USER1}:\${USER1} \${SSHDIR}
COPY \
latex-clean \
latex-pdf \
/usr/local/bin/
RUN /setup.sh
WORKDIR /home
VOLUME ["/home"]
CMD ["tail","-f","/dev/null"] CMD ["tail","-f","/dev/null"]
EOF EOF
fi fi

Loading…
Cancel
Save