Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DONOTMERGE: Setup test container automation #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

spoore1
Copy link
Collaborator

@spoore1 spoore1 commented Feb 15, 2023

Test containers and Makefiles to build test environment included.

  1. Container

src/Containerfile -- defines systemd container to build
src/Makefile -- defines container build steps in make form
src/install/ipa-tuura.env -- ipa-tuura service env file for container
src/install/ipa-tuura.service -- ipa-tuura systemd service file for container

  1. Docker Compose

docker-compose.yml -- defines containerized test env
Makefile -- defines test env setup steps in make form
.env -- Variables for Makefile
data/configs/dnsmasq.conf -- config for dns container
data/configs/nm_zone_test.conf -- config for dns container
env.containers -- env vars for containers. mostly used by keycloak
src/install/setup_bridge.sh -- add SCIM plugin config to keycloak for ipa-tuura bridge

@spoore1 spoore1 requested a review from f-trivino February 15, 2023 20:22
@spoore1 spoore1 self-assigned this Feb 15, 2023
@spoore1 spoore1 changed the title Setup test container automation WIP: Setup test container automation Feb 15, 2023
@spoore1 spoore1 force-pushed the docker_compose_update branch from cffdb4e to 47f43d2 Compare February 15, 2023 23:48
@spoore1 spoore1 force-pushed the docker_compose_update branch 3 times, most recently from 38d9717 to e45198a Compare March 23, 2023 22:09
for count in {1..10}; do
podman exec -it kite-keycloak \
/opt/keycloak/bin/kcadm.sh config credentials \
--server https://master.keycloak.test:8443/auth/ \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Servername hard-coded
it is necessary ?

Copy link
Collaborator Author

@spoore1 spoore1 Mar 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly speaking, no it's not necessary. I've modified that script slightly to remove the hardcoded hostnames in commands and allow override from the env variables which is done automatically in the Makefile. I've also added a note about this in the README.md updates.

@spoore1 spoore1 force-pushed the docker_compose_update branch 4 times, most recently from 2d1e350 to fb5cda4 Compare March 24, 2023 19:07
@spoore1 spoore1 changed the title WIP: Setup test container automation Setup test container automation Mar 24, 2023
@spoore1 spoore1 changed the title Setup test container automation DONOTMERGE: Setup test container automation Apr 7, 2023
@spoore1 spoore1 force-pushed the docker_compose_update branch from fb5cda4 to 456d29f Compare April 7, 2023 21:05
@spoore1 spoore1 force-pushed the docker_compose_update branch from 456d29f to d1c21c6 Compare April 18, 2023 20:10
@spoore1 spoore1 force-pushed the docker_compose_update branch from d1c21c6 to d106604 Compare May 5, 2023 15:56
@spoore1 spoore1 force-pushed the docker_compose_update branch 2 times, most recently from cf48544 to 43536a1 Compare May 30, 2023 19:41
@spoore1 spoore1 force-pushed the docker_compose_update branch 9 times, most recently from b856dc4 to e2f1151 Compare July 6, 2023 14:50
Test containers and Makefiles to build test environment included.

1. Docker Compose

Makefile -- defines test env setup steps in make form

.env -- Variables for Makefile and docker-compose

env.containers -- env vars for containers.  mostly used by keycloak

docker-compose.gating.yml -- defines minimal containerized test env
                             for gating

data/configs/dnsmasq.conf -- config for dns container

data/configs/nm_zone_test.conf -- config for dns container

2. README.md update to show how to start the container test environment

3. .gitignore updates to ignore new files/dirs

Signed-off-by: Scott Poore <[email protected]>
@spoore1 spoore1 force-pushed the docker_compose_update branch from e2f1151 to fa185cf Compare July 7, 2023 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants