Skip to content

Commit

Permalink
all: mv Dockerfile, log changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Mar 23, 2023
1 parent a094a44 commit 32f150f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ NOTE: Add new changes BELOW THIS COMMENT.

### Added

- Docker container's healthcheck ([#3290]).
- Two new HTTP APIs, `PUT /control/stats/config/update` and `GET
control/stats/config`, which can be used to set and receive the query log
configuration. See openapi/openapi.yaml for the full description.
Expand Down Expand Up @@ -123,6 +124,7 @@ In this release, the schema version has changed from 17 to 20.

[#1163]: https://github.com/AdguardTeam/AdGuardHome/issues/1163
[#1472]: https://github.com/AdguardTeam/AdGuardHome/issues/1472
[#3290]: https://github.com/AdguardTeam/AdGuardHome/issues/3290
[#5567]: https://github.com/AdguardTeam/AdGuardHome/issues/5567
[#5584]: https://github.com/AdguardTeam/AdGuardHome/issues/5584

Expand Down
2 changes: 1 addition & 1 deletion scripts/make/Dockerfile → docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RUN setcap 'cap_net_bind_service=+eip' /opt/adguardhome/AdGuardHome
# TODO(a.garipov): Remove the old, non-standard 784 and 8853 ports for
# DNS-over-QUIC in a future release.
EXPOSE 53/tcp 53/udp 67/udp 68/udp 80/tcp 443/tcp 443/udp 784/udp\
853/tcp 853/udp 3000/tcp 3000/udp 3001/tcp 3001/udp 5443/tcp\
853/tcp 853/udp 3000/tcp 3000/udp 5443/tcp\
5443/udp 6060/tcp 8853/udp

WORKDIR /opt/adguardhome/work
Expand Down
19 changes: 14 additions & 5 deletions scripts/make/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ readonly docker_image_full_name docker_tags

# Copy the binaries into a new directory under new names, so that it's easier to
# COPY them later. DO NOT remove the trailing underscores. See file
# scripts/make/Dockerfile.
# docker/Dockerfile.
dist_docker="${dist_dir}/docker"
readonly dist_docker

Expand All @@ -105,9 +105,18 @@ cp "${dist_dir}/AdGuardHome_linux_arm_7/AdGuardHome/AdGuardHome"\
cp "${dist_dir}/AdGuardHome_linux_ppc64le/AdGuardHome/AdGuardHome"\
"${dist_docker}/AdGuardHome_linux_ppc64le_"

# TODO(e.burkov): !! do better
cp -R "./docker"\
"${dist_docker}/scripts"
# Copy the helper scripts. DO NOT remove the trailing underscores. See file
# docker/Dockerfile.
dist_docker_scripts="${dist_docker}/scripts"
readonly dist_docker_scripts

mkdir -p "$dist_docker_scripts"
cp "./docker/dns-bind.awk"\
"${dist_docker}/scripts/dns-bind.awk"
cp "./docker/web-bind.awk"\
"${dist_docker}/scripts/web-bind.awk"
cp "./docker/healthcheck.sh"\
"${dist_docker}/scripts/healthcheck.sh"

# Don't use quotes with $docker_tags and $debug_flags because we want word
# splitting and or an empty space if tags are empty.
Expand All @@ -122,5 +131,5 @@ $sudo_cmd docker\
--platform "$docker_platforms"\
$docker_tags\
-t "$docker_image_full_name"\
-f ./scripts/make/Dockerfile\
-f ./docker/Dockerfile\
.

0 comments on commit 32f150f

Please sign in to comment.