* notes/cli-end-to-end-demo.org (Database Aquisition): Starting description for the end-to-end demonstration workflow. Very simplified version of notes/cli-end-to-end.org * docker-compose-demo.yml (services): Make the pre-populated ql database storage an explicit container to get persistent data and straightforward mount semantics. * docker-compose-demo-build.yml (services): Add a docker-compose configuration for *building* the demo environment. * demo/containers/dbsdata/Dockerfile: Add dbsdata Docker image to hold initialized minio database file tree * client/containers/vscode/README.org Update vscode container to use custom plugin for later mrva redirection
117 lines
3.4 KiB
YAML
117 lines
3.4 KiB
YAML
services:
|
|
dbssvc:
|
|
# dbsdata-container:0.1.24
|
|
image: ghcr.io/hohn/dbsdata-container:0.1.24
|
|
command: tail -f /dev/null # Keep the container running
|
|
# volumes:
|
|
# - /qldb # Directory inside the container that contains the data
|
|
volumes:
|
|
- dbsdata:/data
|
|
container_name: dbssvc
|
|
networks:
|
|
- backend
|
|
|
|
dbstore:
|
|
image: minio/minio:RELEASE.2024-06-11T03-13-30Z
|
|
container_name: dbstore
|
|
ports:
|
|
- "9000:9000"
|
|
- "9001:9001"
|
|
env_file:
|
|
- path: .env.container
|
|
required: true
|
|
command: server /data/mrvacommander/dbstore-data --console-address ":9001"
|
|
depends_on:
|
|
- dbssvc
|
|
# volumes_from:
|
|
# - dbsdata # Use the volumes from dbsdata container
|
|
volumes:
|
|
- dbsdata:/data/mrvacommander/dbstore-data
|
|
networks:
|
|
- backend
|
|
|
|
client-ghmrva:
|
|
image: ghcr.io/hohn/client-ghmrva-container:0.1.24
|
|
network_mode: "service:server" # Share the 'server' network namespace
|
|
environment:
|
|
- SERVER_URL=http://localhost:8080 # 'localhost' now refers to 'server'
|
|
|
|
code-server:
|
|
image: ghcr.io/hohn/code-server-initialized:0.1.24
|
|
ports:
|
|
- "9080:9080"
|
|
# XX: Include codeql binary in code-server (if it's not there already)
|
|
environment:
|
|
- PASSWORD=mrva
|
|
|
|
rabbitmq:
|
|
image: rabbitmq:3-management
|
|
hostname: rabbitmq
|
|
container_name: rabbitmq
|
|
volumes:
|
|
- ./init/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
|
|
- ./init/rabbitmq/definitions.json:/etc/rabbitmq/definitions.json:ro
|
|
ports:
|
|
- "5672:5672"
|
|
- "15672:15672"
|
|
healthcheck:
|
|
test: rabbitmq-diagnostics check_port_connectivity
|
|
interval: 30s
|
|
timeout: 30s
|
|
retries: 10
|
|
networks:
|
|
- backend
|
|
|
|
server:
|
|
image: ghcr.io/hohn/mrva-server:0.1.24
|
|
command: [ '--mode=container', '--loglevel=debug' ]
|
|
container_name: server
|
|
stop_grace_period: 1s
|
|
depends_on:
|
|
- rabbitmq
|
|
- dbstore
|
|
- artifactstore
|
|
env_file:
|
|
- path: ./.env.container
|
|
required: true
|
|
networks:
|
|
- backend
|
|
|
|
artifactstore:
|
|
image: minio/minio:RELEASE.2024-06-11T03-13-30Z
|
|
container_name: artifactstore
|
|
ports:
|
|
- "19000:9000" # host:container
|
|
- "19001:9001"
|
|
env_file:
|
|
- path: ./.env.container
|
|
required: true
|
|
command: server /data --console-address ":9001"
|
|
volumes:
|
|
# The artifactstore is only populated at runtime so there is no need
|
|
# for Docker storage; a directory is fine.
|
|
- ./qpstore-data:/data
|
|
networks:
|
|
- backend
|
|
|
|
agent:
|
|
image: ghcr.io/hohn/mrva-agent:0.1.24
|
|
command: [ '--loglevel=debug' ]
|
|
container_name: agent
|
|
depends_on:
|
|
- rabbitmq
|
|
- dbstore
|
|
- artifactstore
|
|
env_file:
|
|
- path: ./.env.container
|
|
required: true
|
|
networks:
|
|
- backend
|
|
|
|
networks:
|
|
backend:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
dbsdata:
|