Reactivated roulette wheel to harmonize desktop dashboard view

This commit is contained in:
2025-11-27 14:45:13 +01:00
parent ac5fdeafd2
commit 873607246c
8 changed files with 30 additions and 29 deletions

View File

@@ -62,6 +62,8 @@ portfolio_menu_categories:
- games
- chess
- boardgame
- game
- roulette
Communication:
description: "Tools for communication"

View File

@@ -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.

View File

@@ -1,5 +1,7 @@
features:
logout: false
logout: false
matomo: true
desktop: true
server:
domains:
canonical:

View File

@@ -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

View File

@@ -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

View File

@@ -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"]

View File

@@ -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' %}

View File

@@ -1,2 +1,12 @@
application_id: "web-app-roulette-wheel"
app_path: "{{ docker_compose.directories.instance }}/app/"
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"