diff --git a/roles/web-app-desktop/vars/menu_categories.yml b/roles/web-app-desktop/vars/menu_categories.yml index 5d64523f..b681dcfb 100644 --- a/roles/web-app-desktop/vars/menu_categories.yml +++ b/roles/web-app-desktop/vars/menu_categories.yml @@ -62,6 +62,8 @@ portfolio_menu_categories: - games - chess - boardgame + - game + - roulette Communication: description: "Tools for communication" diff --git a/roles/web-app-roulette-wheel/README.md b/roles/web-app-roulette-wheel/README.md index dec9d715..a51e4ef5 100644 --- a/roles/web-app-roulette-wheel/README.md +++ b/roles/web-app-roulette-wheel/README.md @@ -1,8 +1,5 @@ # Roulette Wheel -## Warning -This role isn't actively maintained. Use it with caution in production environments. - ## Overview This role deploys and configures the Roulette Wheel application using Docker Compose. It pulls the latest source code from a Git repository, builds a Docker image from a Node.js base, and starts the application on a user-defined local HTTP port. diff --git a/roles/web-app-roulette-wheel/config/main.yml b/roles/web-app-roulette-wheel/config/main.yml index 8188d6df..50e9dbc7 100644 --- a/roles/web-app-roulette-wheel/config/main.yml +++ b/roles/web-app-roulette-wheel/config/main.yml @@ -1,5 +1,7 @@ features: - logout: false + logout: false + matomo: true + desktop: true server: domains: canonical: diff --git a/roles/web-app-roulette-wheel/meta/main.yml b/roles/web-app-roulette-wheel/meta/main.yml index 2a3b576f..23dceffc 100644 --- a/roles/web-app-roulette-wheel/meta/main.yml +++ b/roles/web-app-roulette-wheel/meta/main.yml @@ -1,10 +1,8 @@ ---- galaxy_info: author: "Kevin Veen-Birkenbach" description: > - This role deploys and configures the Roulette Wheel application using Docker Compose. - It automates the process of pulling the latest source code from GitHub, - building a Docker image, and deploying the application. + The Roulette Wheel is an interactive browser-based spinning wheel for decision + making, random selection, team activities, workshops, and gamification. license: "Infinito.Nexus NonCommercial License" license_url: "https://s.infinito.nexus/license" company: | @@ -15,12 +13,12 @@ galaxy_info: - docker - nodejs - roulette - - application + - webapp + - game repository: "https://s.infinito.nexus/code" issue_tracker_url: "https://s.infinito.nexus/issues" documentation: "https://docs.infinito.nexus" logo: - class: "fa-solid fa-dice" + class: "fa-solid fa-fan" run_after: - web-app-matomo - diff --git a/roles/web-app-roulette-wheel/tasks/main.yml b/roles/web-app-roulette-wheel/tasks/main.yml index cfb1d185..a4c7295d 100644 --- a/roles/web-app-roulette-wheel/tasks/main.yml +++ b/roles/web-app-roulette-wheel/tasks/main.yml @@ -1,13 +1,5 @@ ---- -- name: "include docker-compose role" +- name: "load docker, proxy for '{{ application_id }}'" include_role: - name: docker-compose - -- name: pull app repository - git: - repo: "https://github.com/kevinveenbirkenbach/roulette-wheel.git" - dest: "{{app_path}}" - update: yes - notify: docker compose up - become: true - ignore_errors: true + name: sys-stk-full-stateless + vars: + docker_compose_flush_handlers: true diff --git a/roles/web-app-roulette-wheel/templates/Dockerfile.j2 b/roles/web-app-roulette-wheel/templates/Dockerfile.j2 index df9bb74b..564c0fcf 100644 --- a/roles/web-app-roulette-wheel/templates/Dockerfile.j2 +++ b/roles/web-app-roulette-wheel/templates/Dockerfile.j2 @@ -1,7 +1,7 @@ FROM node:latest WORKDIR /app -COPY ./app/package.json ./ +COPY ./{{ ROULETTE_WHEEL_APP_REL }}/package.json ./ RUN npm install -COPY ./app/ ./ +COPY ./{{ ROULETTE_WHEEL_APP_REL }}/ ./ RUN npm run build CMD ["npm", "run", "start"] \ No newline at end of file diff --git a/roles/web-app-roulette-wheel/templates/docker-compose.yml.j2 b/roles/web-app-roulette-wheel/templates/docker-compose.yml.j2 index 7a7ef0d0..3fa083fc 100644 --- a/roles/web-app-roulette-wheel/templates/docker-compose.yml.j2 +++ b/roles/web-app-roulette-wheel/templates/docker-compose.yml.j2 @@ -1,9 +1,9 @@ {% include 'roles/docker-compose/templates/base.yml.j2' %} - application: - container_name: roulette_application + {{ entity_name }}: + container_name: {{ entity_name }} {{ lookup('template', 'roles/docker-container/templates/build.yml.j2') | indent(4) }} ports: - 127.0.0.1:{{ ports.localhost.http[application_id] }}:8080 - restart: {{ DOCKER_RESTART_POLICY }} +{% include 'roles/docker-container/templates/base.yml.j2' %} {% include 'roles/docker-compose/templates/networks.yml.j2' %} \ No newline at end of file diff --git a/roles/web-app-roulette-wheel/vars/main.yml b/roles/web-app-roulette-wheel/vars/main.yml index 6f2c6d98..18b457ab 100644 --- a/roles/web-app-roulette-wheel/vars/main.yml +++ b/roles/web-app-roulette-wheel/vars/main.yml @@ -1,2 +1,12 @@ application_id: "web-app-roulette-wheel" -app_path: "{{ docker_compose.directories.instance }}/app/" \ No newline at end of file +entity_name: "{{ application_id | get_entity_name }}" + +features: + css: true + matomo: true + +docker_repository_address: "https://github.com/kevinveenbirkenbach/roulette-wheel.git" +docker_pull_git_repository: true +docker_repository_branch: "master" + +ROULETTE_WHEEL_APP_REL: "services/repository" \ No newline at end of file