Solved build bug

This commit is contained in:
Kevin Veen-Birkenbach 2025-04-09 17:42:58 +02:00
parent 09b08c8744
commit 72becedee5
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
3 changed files with 3 additions and 42 deletions

View File

@ -18,10 +18,6 @@
command: pkgmgr path cymais-sphinx
register: path_cymais_sphinx_output
- name: Get path of cymais using pkgmgr
command: pkgmgr path cymais
register: path_cymais_output
- name: "include role nginx-domain-setup for {{application_id}}"
include_role:
name: nginx-domain-setup
@ -29,29 +25,5 @@
domain: "{{ domains[application_id] }}"
http_port: "{{ ports.localhost.http[application_id] }}"
- name: "Link {{ path_cymais_sphinx_output.stdout }} to {{ host_sphinx_exec_dir_absolute }}"
file:
src: "{{ path_cymais_sphinx_output.stdout }}"
dest: "{{ host_sphinx_exec_dir_absolute }}"
state: link
force: yes
notify: docker compose project build and setup
- name: "Link {{ path_cymais_sphinx_output.stdout }}/Dockerfile to {{ sphinx_host_dockerfile }}"
file:
src: "{{ path_cymais_sphinx_output.stdout }}/Dockerfile"
dest: "{{ sphinx_host_dockerfile }}"
state: link
force: yes
notify: docker compose project build and setup
- name: "Link {{ path_cymais_output.stdout }} to {{ host_sphinx_source_dir_absolute }}"
file:
src: "{{ path_cymais_output.stdout }}"
dest: "{{ host_sphinx_source_dir_absolute }}"
state: link
force: yes
notify: docker compose project build and setup
- name: "copy docker-compose.yml and env file"
include_tasks: copy-docker-compose-and-env.yml

View File

@ -1,11 +1,8 @@
services:
application:
build:
context: .
dockerfile: Dockerfile
args:
SPHINX_HOST_SOURCE_DIR_RELATIVE: {{host_sphinx_source_dir_relative}}/
SPHINX_HOST_EXEC_DIR_RELATIVE: {{host_sphinx_exec_dir_relative}}/
context: {{ path_cymais_sphinx_output.stdout }}
dockerfile: {{ path_cymais_sphinx_output.stdout }}/Dockerfile
ports:
- "127.0.0.1:{{ports.localhost.http[application_id]}}:8000"
healthcheck:

View File

@ -1,9 +1 @@
application_id: "sphinx"
host_sphinx_source_dir_relative: "services/cymais" # Place where the sphinx source repository is stored on the host
host_sphinx_source_dir_absolute: "{{docker_compose.directories.instance}}{{host_sphinx_source_dir_relative}}" # Place where the sphinx source repository is stored on the host
host_sphinx_exec_dir_relative: "services/cymais-sphinx" # Place where the sphinx source repository is stored on the host
host_sphinx_exec_dir_absolute: "{{docker_compose.directories.instance}}{{host_sphinx_source_dir_relative}}" # Place where the sphinx source repository is stored on the host
sphinx_host_dockerfile: "{{ docker_compose.directories.instance }}Dockerfile" # Path to the Dockerfile to build sphinx on the server
application_id: "sphinx"