-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker: enhancement to choose light containers with Alpine and debian…
…:slim (base)
- Loading branch information
1 parent
9f1f82b
commit ba4fb79
Showing
8 changed files
with
51 additions
and
1 deletion.
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
{% include 'misc/header.py' %} | ||
{%- if cookiecutter.docker_size == 'light'%} | ||
FROM haproxy:1.8-alpine | ||
{%- else %} | ||
FROM haproxy:1.8 | ||
{%- endif %} | ||
RUN mkdir -p /usr/local/var/lib/haproxy/ | ||
COPY haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg | ||
COPY haproxy_cert.pem /usr/local/etc/cert.pem |
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
4 changes: 4 additions & 0 deletions
4
{{cookiecutter.project_shortname}}/docker/postgres/Dockerfile
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{% include 'misc/header.py' %} | ||
{%- if cookiecutter.docker_size == 'light'%} | ||
FROM postgres:9.6-alpine | ||
{%- else %} | ||
FROM postgres:9.6 | ||
{%- endif %} | ||
COPY ./init-app-db.sh /docker-entrypoint-initdb.d/10-init-app-db.sh |
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