mirror of
https://github.com/certbot/certbot.git
synced 2026-04-29 18:19:51 -04:00
Use a discrete path for venv in docker, rather than /opt/letsencrypt.
This is useful for the docker development container, which we will want venv to persist for across runs.
This commit is contained in:
parent
e4e4c69f36
commit
2fe8a75200
2 changed files with 4 additions and 3 deletions
|
|
@ -48,14 +48,14 @@ COPY letsencrypt_apache /opt/letsencrypt/src/letsencrypt_apache/
|
|||
COPY letsencrypt_nginx /opt/letsencrypt/src/letsencrypt_nginx/
|
||||
|
||||
|
||||
RUN virtualenv --no-site-packages -p python2 /opt/letsencrypt && \
|
||||
/opt/letsencrypt/bin/pip install -e /opt/letsencrypt/src
|
||||
RUN virtualenv --no-site-packages -p python2 /opt/letsencrypt/venv && \
|
||||
/opt/letsencrypt/venv/bin/pip install -e /opt/letsencrypt/src
|
||||
|
||||
# install in editable mode (-e) to save space: it's not possible to
|
||||
# "rm -rf /opt/letsencrypt/src" (it's stays in the underlaying image);
|
||||
# this might also help in debugging: you can "docker run --entrypoint
|
||||
# bash" and investigate, apply patches, etc.
|
||||
|
||||
ENV PATH /opt/letsencrypt/bin:$PATH
|
||||
ENV PATH /opt/letsencrypt/venv/bin:$PATH
|
||||
# TODO: is --text really necessary?
|
||||
ENTRYPOINT [ "letsencrypt", "--text" ]
|
||||
|
|
|
|||
|
|
@ -11,3 +11,4 @@ development:
|
|||
- "443:443"
|
||||
volumes:
|
||||
- .:/opt/letsencrypt/src
|
||||
- /opt/letsencrypt/venv
|
||||
|
|
|
|||
Loading…
Reference in a new issue