mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 17:35:54 +03:00
[PR #195] [CLOSED] Add config/environment/cli options to configure docker socket URL #331
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#331
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mageddo/dns-proxy-server/pull/195
Author: @imartinezortiz
Created: 5/4/2020
Status: ❌ Closed
Base:
master← Head:dps-docker-host-options📝 Commits (7)
282c266Upgrade golang to 1.14.2f0907f1convert project to go native modulesdf8053dFixing testing issue upgrading go >= 1.13.57bbd45Updating docker cli / types dependencies054b8a1Add DockerHost and DockerApiVersion configuration optionse58f758Adding a docker-compose.yml example using tecnativa docker socket proxy89d6309If MG_DOCKER_HOST it is used, resolve hostname if needed to avoid chicken-and-egg problem📊 Changes
415 files changed (+34886 additions, -127207 deletions)
View changed files
📝
Dockerfile(+3 -2)📝
Dockerfile.builder(+1 -1)📝
Dockerfile.go.builder(+1 -1)📝
conf/conf.go(+20 -0)📝
conf/conf_test.go(+25 -0)📝
dns.go(+11 -0)📝
docker/dockernetwork/dockernetwork.go(+5 -5)📝
docker/dockernetwork/dockernetwork_mock.go(+3 -3)📝
docker/dockernetwork/dockernetwork_test.go(+2 -2)📝
docs/content/3-configuration/_index.en.md(+17 -9)📝
events/docker/docker.go(+33 -36)📝
events/docker/docker_test.go(+3 -3)📝
events/local/localvo/localvo.go(+3 -0)📝
events/local/storagev2/storagev2.go(+7 -0)➕
examples/using-docker-socket-proxy/docker-compose.yml(+50 -0)📝
flags/flags.go(+2 -15)➕
go.mod(+23 -0)➕
go.sum(+54 -0)➕
overlay/usr/bin/docker-entrypoint(+19 -0)📝
utils/env/env.go(+3 -0)...and 80 more files
📄 Description
The main objective of this PR is to add a couple configuration options to specify the URL to connect to the docker daemon and to specify the docker API version to use. The idea is to use tecnativa/docker-socket-proxy to restrict and control the access of DPS to the docker demon.
I also created some tests, updated the documentation and provided an example docker compose that shows how to use the new feature.
Besides the PR also does:
If you prefer / think that these additional changes require a separate PR let me know.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.