Skip to content

Commit

Permalink
Allow variable configuration for metalctl docker compose container. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Jan 17, 2025
1 parent 2b929f6 commit 5cde386
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
- name: Run integration tests
shell: bash
run: |
eval $(make dev-env)
./test/ci-cleanup.sh
./test/integration.sh
env:
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ YQ=docker run --rm -i -v $(shell pwd):/workdir mikefarah/yq:4
KINDCONFIG := $(or $(KINDCONFIG),control-plane/kind.yaml)
KUBECONFIG := $(shell pwd)/.kubeconfig

METALCTL_HMAC := $(or $(METALCTL_HMAC),metal-admin)
METALCTL_API_URL := $(or $(METALCTL_API_URL),http://api.172.17.0.1.nip.io:8080/metal)

MKE2FS_CONFIG := $(shell pwd)/mke2fs.conf
# Default values
CONTAINERLAB=$(shell which containerlab)
Expand Down
4 changes: 2 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ services:
metalctl:
image: ghcr.io/metal-stack/metalctl:${METALCTL_IMAGE_TAG}
environment:
- METALCTL_HMAC=metal-admin
- METALCTL_API_URL=http://api.172.17.0.1.nip.io:8080/metal
- METALCTL_HMAC=${METALCTL_HMAC}
- METALCTL_API_URL=${METALCTL_API_URL}
volumes:
- ./files/ssh:/root/.ssh:ro
- ./files/ignition.json:/tmp/ignition.json
Expand Down

0 comments on commit 5cde386

Please sign in to comment.