Skip to content

Commit 34ca33d

Browse files
committed
Fixing network configuration for docker
1 parent d397be3 commit 34ca33d

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.github/workflows/build-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: |
7373
# Checkout the running gateway+backend
7474
podman build -t checkout-test checkout-test
75-
podman run --network anms -v $PWD:/mnt -e XUNIT_OUTFILE=/mnt/testresults.xml -e CHECKOUT_BASE_URL=http://authnz:${AUTHNZ_PORT}/ -e SSL_CERT_FILE=/mnt/puppet/modules/apl_test/files/anms/tls/certs/ammos-ca-bundle.crt checkout-test
75+
podman run --network anms -v $PWD:/mnt -e XUNIT_OUTFILE=/mnt/testresults.xml -e CHECKOUT_BASE_URL=http://authnz/ -e SSL_CERT_FILE=/mnt/puppet/modules/apl_test/files/anms/tls/certs/ammos-ca-bundle.crt checkout-test
7676
- name: Stop
7777
if: always()
7878
run: |

agent-compose.yml

-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
# DOCKER_IMAGE_PREFIX to contain a (default empty) image registry and path to all custom images
2626
# DOCKER_IMAGE_TAG to contain the image tag for custom images
2727
#
28-
version: '3.9'
2928

3029
networks:
3130
# This network is created by docker-compose.yml
@@ -59,7 +58,6 @@ services:
5958
networks:
6059
default:
6160
ipv4_address: 10.5.0.102
62-
command: "/sbin/init"
6361
ion-agent3:
6462
<<: *ion-agent
6563
hostname: ion-agent3

docker-compose.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,14 @@
2828
networks:
2929
default:
3030
name: ${DOCKER_CTR_PREFIX}anms
31+
attachable: true
3132
driver_opts:
3233
com.docker.network.bridge.name: br-${DOCKER_CTR_PREFIX}anms
3334
com.docker.network.driver.mtu: 65535
3435
ipam:
3536
config:
3637
- subnet: 10.5.0.0/16
3738
gateway: 10.5.0.1
38-
aux_addresses:
39-
ion-manager: 10.5.0.101
40-
ion-agent2: 10.5.0.102
41-
ion-agent3: 10.5.0.103
42-
4339
volumes:
4440
grafana-data: {}
4541
postgres-data: {}
@@ -366,6 +362,5 @@ services:
366362
DB_USER: ${DB_USER}
367363
DB_PASSWORD: ${DB_PASSWORD}
368364
DB_NAME: ${DB_NAME}
369-
command: "/sbin/init"
370-
# TODO: Above command is a workaround. Can likely be removed after fixing base.Dockerfile (done, but not rebuilt)
365+
371366

0 commit comments

Comments
 (0)