Skip to content

Commit

Permalink
♻️ Use AdGuard arguments from entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Aug 24, 2023
1 parent 9939f5f commit b53c8ce
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions data_safe_haven/pulumi/components/sre_dns_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,18 +222,13 @@ def __init__(
containerinstance.ContainerArgs(
image="adguard/adguardhome:v0.107.36",
name="adguard",
# Note that providing "command" overwrites the CMD arguments in the
# Docker image, so we can either provide them here or set defaults
# in our custom entrypoint.
command=[
"/bin/sh",
"/opt/adguardhome/custom/entrypoint.sh",
"--no-check-update",
"-c",
"/opt/adguardhome/conf/AdGuardHome.yaml",
"-w",
"/opt/adguardhome/work",
],
# Providing "command" overwrites the CMD arguments in the Docker
# image, so we can either provide them here or set defaults in our
# custom entrypoint.
#
# The entrypoint script will not be executable when mounted so we
# need to explicitly run it with /bin/sh
command=["/bin/sh", "/opt/adguardhome/custom/entrypoint.sh"],
environment_variables=[],
ports=[
containerinstance.ContainerPortArgs(
Expand Down

0 comments on commit b53c8ce

Please sign in to comment.