Created
September 17, 2024 04:38
-
-
Save pirogoeth/4f894617fbfefe3e60eef2a50384e43c to your computer and use it in GitHub Desktop.
maas test setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAAS_SETUP_DISABLE_POSTGRESQL=1 | |
MAAS_SETUP_EXTERNAL_DATABASE_HOST=maas-postgres | |
MAAS_SETUP_EXTERNAL_DATABASE_PORT=5432 | |
MAAS_SETUP_EXTERNAL_DATABASE_NAME=maas | |
MAAS_SETUP_EXTERNAL_DATABASE_USER=maas | |
MAAS_SETUP_EXTERNAL_DATABASE_PASSWORD=maas | |
MAAS_SETUP_MAAS_URL=http://10.100.1.222:5240/MAAS | |
MAAS_SETUP_ADMIN_USERNAME=admin | |
MAAS_SETUP_ADMIN_EMAIL=admin@example.org | |
MAAS_SETUP_ADMIN_SSHKEYS_GITHUB=pirogoeth | |
POSTGRES_USER=maas | |
POSTGRES_PASSWORD=maas | |
POSTGRES_DB=maas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
podman network create maas || true | |
podman build -t maas:3.5 . | |
podman run -it --rm -d --name maas-postgres --network maas --env-file ./test.env docker.io/library/postgres:14-alpine | |
podman run -it --rm -d --name maas --network maas --env-file ./test.env --systemd=always --requires maas-postgres -p 5240:5240 maas:3.5 | |
echo | |
echo | |
echo " ================> Exit logs to stop MAAS stack <================ " | |
echo | |
echo | |
podman logs -f maas | |
echo | |
echo | |
echo " ================! Stopping MAAS stack !================ " | |
echo | |
echo | |
podman rm -f maas | |
podman rm -f maas-postgres | |
podman network rm maas |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment