Skip to content

Commit f102b86

Browse files
author
Sandro Koll
authored
Configure dns (#34)
* configure dns for containers * port 2015 may be used by other services such as a private VPN
1 parent b14557d commit f102b86

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ caddy-down:
187187

188188
.PHONY: caddy
189189
caddy: caddy-down
190-
docker run -v $(shell pwd):/srv -p 2015:2015 --name caddy -d abiosoft/caddy
190+
docker run -v $(shell pwd):/srv -p 20015:2015 --name caddy -d abiosoft/caddy
191191

192192
.PHONY: build-hammer-image
193193
build-hammer-image:

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ services:
1919
- K8S_AUTH_KUBECONFIG=/mini-lab/.kubeconfig
2020
network_mode: host
2121
working_dir: /mini-lab
22+
dns:
23+
- 192.168.121.1
24+
- 1.1.1.1
25+
- 1.0.0.1
2226
entrypoint:
2327
- /bin/bash
2428
- -ce
@@ -50,6 +54,10 @@ services:
5054
- ANSIBLE_VAGRANT_CACHE_MAX_AGE=0
5155
network_mode: host
5256
working_dir: /mini-lab
57+
dns:
58+
- 192.168.121.1
59+
- 1.1.1.1
60+
- 1.0.0.1
5361
entrypoint:
5462
- /bin/bash
5563
- -ce
@@ -71,4 +79,8 @@ services:
7179
volumes:
7280
- ${HOME}/.ssh:/root/.ssh:ro
7381
network_mode: host
82+
dns:
83+
- 192.168.121.1
84+
- 1.1.1.1
85+
- 1.0.0.1
7486
command: --version

files/dev_images.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
metal_api_image_tag: dev
44
metal_core_image_name: 192.168.121.1:5000/metalstack/metal-core
55
metal_core_image_tag: dev
6-
metal_hammer_image_url: http://192.168.121.1:2015/metal-hammer-initrd.img.lz4
6+
metal_hammer_image_url: http://192.168.121.1:20015/metal-hammer-initrd.img.lz4

0 commit comments

Comments
 (0)