Skip to content

Commit

Permalink
add container tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-black-tea committed Apr 6, 2024
1 parent 4c523a7 commit 92230e4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
9 changes: 2 additions & 7 deletions src/linktools/assets/containers/100-nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginx:alpine
FROM nginx:{{ NGINX_TAG }}

RUN apk --no-cache add openssl socat
RUN curl https://get.acme.sh | sh -s email=acme@google.com && \
Expand All @@ -19,15 +19,10 @@ ENV {{ key }} {{ value }}
{%- endwith %}
{%- endfor %}

{% if DEBUG %}
RUN acme.sh --issue --debug --domain {{ ROOT_DOMAIN }} --domain *.{{ ROOT_DOMAIN }} --dns {{ ACME_DNS_API }}
{% else %}
RUN acme.sh --issue --domain {{ ROOT_DOMAIN }} --domain *.{{ ROOT_DOMAIN }} --dns {{ ACME_DNS_API }}
{% endif %}
RUN acme.sh --issue --debug --domain {{ ROOT_DOMAIN }} --domain *.{{ ROOT_DOMAIN }} --dns {{ ACME_DNS_API }}

RUN acme.sh --install-cert --domain {{ ROOT_DOMAIN }} --domain *.{{ ROOT_DOMAIN }} \
--cert-file /etc/certs/{{ ROOT_DOMAIN }}_cert.pem \
--key-file /etc/certs/{{ ROOT_DOMAIN }}_key.pem \
--fullchain-file /etc/certs/{{ ROOT_DOMAIN }}_fullchain.pem \
--reloadcmd "nginx -s reload 2>/dev/null || true"

1 change: 1 addition & 0 deletions src/linktools/assets/containers/100-nginx/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def keys(self):
@cached_property
def configs(self):
return dict(
NGINX_TAG="alpine",
ROOT_DOMAIN=Config.Prompt(cached=True),
WILDCARD_DOMAIN=Config.Confirm(default=False, cached=True),
HTTP_PORT=Config.Prompt(default=80, type=int, cached=True),
Expand Down
2 changes: 1 addition & 1 deletion src/linktools/assets/containers/110-portainer/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
portainer:
image: portainer/portainer-ce
image: portainer/portainer-ce:{{ PORTAINER_TAG }}
# {% if int(PORTAINER_EXPOSE_PORT, 0) > 0 %}
ports:
- '{{ PORTAINER_EXPOSE_PORT }}:9000'
Expand Down
1 change: 1 addition & 0 deletions src/linktools/assets/containers/110-portainer/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def dependencies(self) -> [str]:
@cached_property
def configs(self):
return dict(
PORTAINER_TAG="alpine",
PORTAINER_DOMAIN=self.get_nginx_domain(),
PORTAINER_EXPOSE_PORT=None,
)
Expand Down
2 changes: 1 addition & 1 deletion src/linktools/assets/containers/120-flare/compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
flare:
image: soulteary/flare
image: soulteary/flare:{{ FLARE_TAG }}
user: '{{ DOCKER_UID }}:{{ DOCKER_GID }}'
# {% if int(FLARE_EXPOSE_PORT, 0) > 0 %}
ports:
Expand Down
1 change: 1 addition & 0 deletions src/linktools/assets/containers/120-flare/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def configs(self):
return dict(
WILDCARD_DOMAIN=True,

FLARE_TAG="latest",
FLARE_DISABLE_LOGIN=Config.Confirm(default=True, cached=True),
FLARE_DOAMIN=self.get_nginx_domain(""),
FLARE_EXPOSE_PORT=None,
Expand Down

0 comments on commit 92230e4

Please sign in to comment.