mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-19 22:52:02 +02:00
Solved build bug
This commit is contained in:
parent
09b08c8744
commit
72becedee5
@ -18,10 +18,6 @@
|
|||||||
command: pkgmgr path cymais-sphinx
|
command: pkgmgr path cymais-sphinx
|
||||||
register: path_cymais_sphinx_output
|
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}}"
|
- name: "include role nginx-domain-setup for {{application_id}}"
|
||||||
include_role:
|
include_role:
|
||||||
name: nginx-domain-setup
|
name: nginx-domain-setup
|
||||||
@ -29,29 +25,5 @@
|
|||||||
domain: "{{ domains[application_id] }}"
|
domain: "{{ domains[application_id] }}"
|
||||||
http_port: "{{ ports.localhost.http[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"
|
- name: "copy docker-compose.yml and env file"
|
||||||
include_tasks: copy-docker-compose-and-env.yml
|
include_tasks: copy-docker-compose-and-env.yml
|
@ -1,11 +1,8 @@
|
|||||||
services:
|
services:
|
||||||
application:
|
application:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: {{ path_cymais_sphinx_output.stdout }}
|
||||||
dockerfile: Dockerfile
|
dockerfile: {{ path_cymais_sphinx_output.stdout }}/Dockerfile
|
||||||
args:
|
|
||||||
SPHINX_HOST_SOURCE_DIR_RELATIVE: {{host_sphinx_source_dir_relative}}/
|
|
||||||
SPHINX_HOST_EXEC_DIR_RELATIVE: {{host_sphinx_exec_dir_relative}}/
|
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:{{ports.localhost.http[application_id]}}:8000"
|
- "127.0.0.1:{{ports.localhost.http[application_id]}}:8000"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -1,9 +1 @@
|
|||||||
application_id: "sphinx"
|
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
|
|
Loading…
x
Reference in New Issue
Block a user