this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Delete podman-tasks.toml

-95
-95
mise/tasks/podman-tasks.toml
··· 1 - # == Pod management =================================================================== 2 - [pod-stop-all] 3 - description = "Stop and remove all Lumina pods and containers" 4 - run = [ 5 - "podman pod stop lumina-sqlite-pod 2>/dev/null || echo ok", 6 - "podman pod stop lumina-postgres-pod 2>/dev/null || echo ok", 7 - "podman pod rm lumina-sqlite-pod 2>/dev/null || echo ok", 8 - "podman pod rm lumina-postgres-pod 2>/dev/null || echo ok", 9 - "podman container rm lumina-server-sqlite lumina-server-postgres luminadb 2>/dev/null || echo ok", 10 - ] 11 - 12 - # ===================================================================================== 13 - # == with postgres ==================================================================== 14 - [pod-up-postgres-no-optimise] 15 - description = "Run Lumina with PostgreSQL in a pod, development build (no optimisations)" 16 - depends = "create-data-dirs" 17 - run = [ 18 - # Clean up any existing pods/containers first 19 - "podman pod stop lumina-postgres-pod 2>/dev/null || echo ok", 20 - "podman pod stop lumina-sqlite-pod 2>/dev/null || echo ok", 21 - "podman pod rm lumina-postgres-pod 2>/dev/null || echo ok", 22 - "podman container rm lumina-server-postgres luminadb lumina-redis 2>/dev/null || echo ok", 23 - # Create the pod 24 - "podman pod create --name lumina-postgres-pod -p 8085:8085 -p 5432:5432 -p 8081:8081 -p 8082:8080", 25 - # Pre-run the redis commander and adminer containers so they are available immediately 26 - "podman run -d --replace --name lumina-redisinsight --pod lumina-postgres-pod -e RI_APP_PORT=8081 -e RI_APP_HOST=0.0.0.0 -e RI_REDIS_HOST=lumina-redis -e RI_REDIS_PORT=6379 redislabs/redisinsight:latest", 27 - "podman run -d --replace --name lumina-adminer --pod lumina-postgres-pod -e ADMINER_DEFAULT_SERVER=luminadb -e ADMINER_DEFAULT_DB_DRIVER=pgsql -e ADMINER_DEFAULT_DB_NAME=lumina_config -e ADMINER_DESIGN=pepa-linha-dark adminer:latest", 28 - # Build and run 29 - "podman run -d --name luminadb --pod lumina-postgres-pod -e POSTGRES_USER=lumina -e POSTGRES_PASSWORD=lumina_pw -e POSTGRES_DB=lumina_config -v ./data/postgres:/var/lib/postgresql/data:Z postgres:17-alpine3.22", 30 - "podman run -d --replace --name lumina-redis --pod lumina-postgres-pod -v ./data/redis:/data:Z redis", 31 - "podman build -f build.Dockerfile -t lumina-server:dev .", 32 - "echo Adminer on http://127.0.0.1:8082, RedisInsight on http://127.0.0.1:8081", 33 - "podman run --name lumina-server-postgres --pod lumina-postgres-pod -e LUMINA_DB_TYPE=postgres -e LUMINA_POSTGRES_HOST=localhost -e LUMINA_POSTGRES_PORT=5432 -e LUMINA_POSTGRES_USERNAME=lumina -e LUMINA_POSTGRES_PASSWORD=lumina_pw -e LUMINA_POSTGRES_DATABASE=lumina_config -e LUMINA_SERVER_PORT=8085 -e LUMINA_SERVER_ADDR=0.0.0.0 lumina-server:dev", 34 - ] 35 - 36 - [pod-up-postgres] 37 - description = "Run Lumina with PostgreSQL in a pod [optimised build]" 38 - env = { LUMINA_DOCKER_OPTIMIZE_BUILD = "true" } 39 - depends = "create-data-dirs" 40 - run = [ 41 - # Clean up any existing pods/containers first 42 - "podman pod stop lumina-postgres-pod 2>/dev/null || echo ok", 43 - "podman pod rm lumina-postgres-pod 2>/dev/null || echo ok", 44 - "podman container rm lumina-server-postgres luminadb lumina-redis 2>/dev/null || echo ok", 45 - # Build and run 46 - "podman build --build-arg optimize_build=true -t lumina-server:latest .", 47 - "podman pod create --name lumina-postgres-pod -p 8085:8085 -p 5432:5432", 48 - "podman run -d --replace --name lumina-redis --pod lumina-postgres-pod -v ./data/redis:/data redis", 49 - "podman run -d --name luminadb --pod lumina-postgres-pod -e POSTGRES_USER=lumina -e POSTGRES_PASSWORD=lumina_pw -e POSTGRES_DB=lumina_config -v ./data/postgres:/var/lib/postgresql/data:Z postgres:17-alpine3.22", 50 - "podman run --name lumina-server-postgres --pod lumina-postgres-pod -e LUMINA_DB_TYPE=postgres -e LUMINA_POSTGRES_HOST=localhost -e LUMINA_POSTGRES_PORT=5432 -e LUMINA_POSTGRES_USERNAME=lumina -e LUMINA_POSTGRES_PASSWORD=lumina_pw -e LUMINA_POSTGRES_DATABASE=lumina_config -e LUMINA_SERVER_PORT=8085 -e LUMINA_SERVER_ADDR=0.0.0.0 lumina-server:latest", 51 - ] 52 - 53 - # ==================================================================================== 54 - # == Build environment image ========================================================= 55 - [build-env-image-podman] 56 - description = "Build and tag the lumina-build-environment image from env.Dockerfile" 57 - run = ["podman build -f env.Dockerfile -t lumina-build-environment ."] 58 - # == with sqlite ===================================================================== 59 - [pod-up-sqlite-no-optimise] 60 - depends = "create-data-dirs" 61 - description = "Run Lumina with SQLite in a pod, development build (no optimisations)" 62 - run = [ 63 - # Clean up any existing pods/containers first 64 - "podman pod stop lumina-postgres-pod 2>/dev/null || echo ok", 65 - "podman pod stop lumina-sqlite-pod 2>/dev/null || echo ok", 66 - "podman container rm lumina-server-sqlite lumina-redis 2>/dev/null || echo ok", 67 - "podman pod rm lumina-sqlite-pod 2>/dev/null || echo ok", 68 - # Create the pod 69 - "podman pod create --name lumina-sqlite-pod -p 8085:8085 -p 6379:6379 -p 8081:8001 -p 8083:8080", 70 - # Pre-run the redis commander and sqlite-web containers so they are available immediately 71 - "podman run -d --replace --name lumina-redisinsight --pod lumina-sqlite-pod redislabs/redisinsight:latest", 72 - "podman run -d --replace --name lumina-redisinsight --pod lumina-sqlite-pod -e RI_APP_PORT=8081 -e RI_APP_HOST=0.0.0.0 -e RI_REDIS_HOST=lumina-redis -e RI_REDIS_PORT=6379 redislabs/redisinsight:latest", 73 - "podman run -d --replace --name lumina-sqlite-web --pod lumina-sqlite-pod -e SQLITE_DATABASE=/app/data/instance.sqlite -v ./data/:/app/data/ coleifer/sqlite-web:latest", 74 - # Build and run 75 - "podman run -d --replace --name lumina-redis -v ./data/redis:/data --pod lumina-sqlite-pod redis", 76 - "podman build -f build.Dockerfile -t lumina-server:dev .", 77 - "echo RedisInsight on http://127.0.0.1:8081, SQLite Web on http://127.0.0.1:8083", 78 - "podman run --name lumina-server-sqlite --pod lumina-sqlite-pod -e LUMINA_DB_TYPE=sqlite -e LUMINA_SQLITE_FILE=data/instance.sqlite -e LUMINA_SERVER_PORT=8085 -e LUMINA_SERVER_ADDR=0.0.0.0 -v ./data/:/app/data/:Z lumina-server:dev", 79 - ] 80 - 81 - [pod-up-sqlite] 82 - depends = "create-data-dirs" 83 - description = "Run Lumina with SQLite in a pod [optimised build]" 84 - env = { LUMINA_DOCKER_OPTIMIZE_BUILD = "true" } 85 - run = [ 86 - # Clean up any existing pods/containers first 87 - "podman pod stop lumina-sqlite-pod 2>/dev/null || echo ok", 88 - "podman container rm lumina-server-sqlite lumina-redis 2>/dev/null || echo ok", 89 - "podman pod rm lumina-sqlite-pod 2>/dev/null || echo ok", 90 - # Build and run 91 - "podman build --build-arg optimize_build=true -t lumina-server:latest .", 92 - "podman pod create --name lumina-sqlite-pod -p 8085:8085", 93 - "podman run -d --replace --name lumina-redis -p 6379:6379 -v ./data/redis:/data --pod lumina-sqlite-pod redis", 94 - "podman run --name lumina-server-sqlite --pod lumina-sqlite-pod -e LUMINA_DB_TYPE=sqlite -e LUMINA_SQLITE_FILE=data/instance.sqlite -e LUMINA_SERVER_PORT=8085 -e LUMINA_SERVER_ADDR=0.0.0.0 -v ./data/:/app/data/:Z lumina-server:latest", 95 - ]