-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add certbot-compatibility-test Dockerfiles
- Loading branch information
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
FROM debian:jessie | ||
MAINTAINER Brad Warren <[email protected]> | ||
|
||
WORKDIR /opt/certbot | ||
|
||
# no need to mkdir anything: | ||
# https://docs.docker.com/reference/builder/#copy | ||
# If <dest> doesn't exist, it is created along with all missing | ||
# directories in its path. | ||
|
||
# TODO: Install non-default Python versions for tox. | ||
# TODO: Install Apache/Nginx for plugin development. | ||
COPY certbot-auto /opt/certbot/src/certbot-auto | ||
RUN /opt/certbot/src/certbot-auto -n --os-packages-only | ||
|
||
# the above is not likely to change, so by putting it further up the | ||
# Dockerfile we make sure we cache as much as possible | ||
|
||
COPY setup.py README.rst CHANGES.rst MANIFEST.in linter_plugin.py tox.cover.sh tox.ini pep8.travis.sh .pep8 .pylintrc /opt/certbot/src/ | ||
|
||
# all above files are necessary for setup.py, however, package source | ||
# code directory has to be copied separately to a subdirectory... | ||
# https://docs.docker.com/reference/builder/#copy: "If <src> is a | ||
# directory, the entire contents of the directory are copied, | ||
# including filesystem metadata. Note: The directory itself is not | ||
# copied, just its contents." Order again matters, three files are far | ||
# more likely to be cached than the whole project directory | ||
|
||
COPY certbot /opt/certbot/src/certbot/ | ||
COPY acme /opt/certbot/src/acme/ | ||
COPY certbot-apache /opt/certbot/src/certbot-apache/ | ||
COPY certbot-nginx /opt/certbot/src/certbot-nginx/ | ||
COPY certbot-compatibility-test /opt/certbot/src/certbot-compatibility-test/ | ||
|
||
RUN virtualenv --no-site-packages -p python2 /opt/certbot/venv && \ | ||
/opt/certbot/venv/bin/pip install -U setuptools && \ | ||
/opt/certbot/venv/bin/pip install -U pip && \ | ||
/opt/certbot/venv/bin/pip install \ | ||
-e /opt/certbot/src/acme \ | ||
-e /opt/certbot/src \ | ||
-e /opt/certbot/src/certbot-apache \ | ||
-e /opt/certbot/src/certbot-nginx \ | ||
-e /opt/certbot/src/certbot-compatibility-test \ | ||
-e /opt/certbot/src[dev,docs] | ||
|
||
# install in editable mode (-e) to save space: it's not possible to | ||
# "rm -rf /opt/certbot/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/certbot/venv/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM certbot-compatibility-test | ||
MAINTAINER Brad Warren <[email protected]> | ||
|
||
RUN apt-get install apache2 -y | ||
|
||
ENTRYPOINT [ "certbot-compatibility-test", "-p", "apache" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM certbot-compatibility-test | ||
MAINTAINER Brad Warren <[email protected]> | ||
|
||
RUN apt-get install nginx -y | ||
|
||
ENTRYPOINT [ "certbot-compatibility-test", "-p", "nginx" ] |