Move static files into files/ and Jinja2 templates into templates/ #169

Merged
samsapti merged 7 commits from move_stuff_around into main 2023-09-29 21:09:08 +00:00
2 changed files with 7 additions and 8 deletions
Showing only changes of commit c5857d0ba8 - Show all commits

0
roles/docker/files/byro_deploy_entrypoint.sh Executable file → Normal file
View file

View file

@ -1,29 +1,28 @@
# vim: ft=yaml.ansible
--- ---
- name: Ensure byro data folder exists
- name: ensure byro data folder exists
file: file:
path: "{{ services.byro.volume_folder }}" path: "{{ services.byro.volume_folder }}"
state: directory state: directory
- name: create env file - name: Create env file
template: template:
src: byro.env.j2 src: byro.env.j2
dest: "{{ services.byro.volume_folder }}/env" dest: "{{ services.byro.volume_folder }}/env"
- name: deploy entrypoint file - name: Deploy entrypoint file
copy: copy:
src: byro_deploy_entrypoint.sh src: byro_deploy_entrypoint.sh
dest: "{{ services.byro.volume_folder}}/data/deploy_entrypoint.sh" dest: "{{ services.byro.volume_folder}}/data/deploy_entrypoint.sh"
mode: "preserve" mode: u=rwx,g=rx,o=rx
- name: run byro - name: Run byro
docker_compose: docker_compose:
project_name: "byro member system" project_name: byro_member_system"
samsapti marked this conversation as resolved Outdated

will this not break the deployment by creating a new stack with a new name?

will this not break the deployment by creating a new stack with a new name?

It will, so we will need to take down the old containers first. However, I think it's better to have a project_name without spaces, as the containers are actually named byromembersystem_... if spaces are in the name. Naming with underscores better reflects what the container names will be.

It will, so we will need to take down the old containers first. However, I think it's better to have a `project_name` without spaces, as the containers are actually named `byromembersystem_...` if spaces are in the name. Naming with underscores better reflects what the container names will be.

if you want to do the work it's fine by me - I can live with the non-underscore name ;)

if you want to do the work it's fine by me - I can live with the non-underscore name ;)

I can't XD

I'll do the work, no problem!

I can't XD I'll do the work, no problem!
pull: yes pull: yes
definition: definition:
version: "3.8" version: "3.8"
services: services:
manage: manage:
image: ghcr.io/valberg/byro:add_missing_jquery_ui_images image: ghcr.io/valberg/byro:add_missing_jquery_ui_images
entrypoint: "/var/byro/data/deploy_entrypoint.sh" entrypoint: "/var/byro/data/deploy_entrypoint.sh"