François
2 years ago
3 changed files with 41 additions and 2 deletions
@ -0,0 +1,28 @@ |
|||
FROM nginx |
|||
|
|||
######################################## |
|||
# APT local cache |
|||
# work around because COPY failed if no source file |
|||
COPY .dummy .apt-mirror-confi[g] .proxy-confi[g] / |
|||
RUN cp /.proxy-config /etc/profile.d/proxy.sh 2> /dev/null || true |
|||
RUN if [ -f /.apt-mirror-config ] ; then . /.apt-mirror-config && sed -i \ |
|||
-e "s/deb.debian.org/${APT_MIRROR_DEBIAN}/g" \ |
|||
-e "s/security.debian.org/${APT_MIRROR_DEBIAN_SECURITY}/g" \ |
|||
-e "s/archive.ubuntu.com/${APT_MIRROR_UBUNTU}/g" \ |
|||
-e "s/security.ubuntu.com/${APT_MIRROR_UBUNTU_SECURITY}/g" \ |
|||
/etc/apt/sources.list; fi |
|||
|
|||
######################################## |
|||
RUN apt-get update --quiet && apt-get upgrade -y |
|||
RUN apt-get install -y snapd |
|||
|
|||
|
|||
# XXX après il y a une erreur |
|||
# error: cannot communicate with server: Post http://localhost/v2/snaps/core: dial unix /run/snapd.socket: connect: no such file or directory |
|||
|
|||
#RUN snap install core |
|||
#RUN snap refresh core |
|||
#RUN snap install --classic certbot |
|||
#RUN ln -s /snap/bin/certbot /usr/bin/certbot |
|||
#RUN snap set certbot trust-plugin-with-root=ok |
|||
|
@ -0,0 +1,11 @@ |
|||
#!/bin/bash |
|||
|
|||
KAZ_ROOT=$(cd "$(dirname $0)/../.."; pwd) |
|||
. "${KAZ_ROOT}/bin/.commonFunctions.sh" |
|||
setKazVars |
|||
|
|||
printKazMsg "\n *** Création du Dockerfile proxy" |
|||
|
|||
cd "${KAZ_ROOT}" |
|||
|
|||
docker build -t proxykaz . -f dockers/proxy/Dockerfile |
Loading…
Reference in new issue