Skip to content

Commit

Permalink
Generate config file in separate step
Browse files Browse the repository at this point in the history
Switches docker-only mode to generate the config file first, and then
start up in a separate second step, to avoid oddities where config
generation takes a while.

Refs #2
  • Loading branch information
samdbmg committed Jan 22, 2023
1 parent bbcd5f4 commit 4be3789
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker-only/tests/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,17 @@
path: "{{ playbook_dir }}/../traefik-config"
state: directory

- name: Generate config file
ansible.builtin.shell:
cmd: docker-compose -p traefik_auth_proxy_compose run config-generator
chdir: "{{ playbook_dir }}/.."

- name: Launch Compose containers
community.docker.docker_compose:
project_src: "{{ playbook_dir }}/.."
state: present
project_name: "traefik_auth_proxy_compose"
services: reverse-proxy

- name: Launch OIDC mock server
community.docker.docker_container:
Expand Down

0 comments on commit 4be3789

Please sign in to comment.