Add Docker support for Ormin + BaraDB dev stack
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled
CI / test (push) Has been cancelled
CI / verify (push) Has been cancelled
Clients CI / build-server (push) Has been cancelled
Clients CI / test-python (push) Has been cancelled
Clients CI / test-javascript (push) Has been cancelled
Clients CI / test-nim (push) Has been cancelled
Clients CI / test-rust (push) Has been cancelled
- docker-compose.ormin.yml: BaraDB + Ormin dev environment - clients/nim/ormin/docker/Dockerfile: dev image with Nim 2.2.10 - clients/nim/ormin/docker/entrypoint.sh: auto-install deps - docker-compose.test.yml: add Ormin compile test
This commit is contained in:
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
# Ormin + BaraDB Dev Entrypoint
|
||||
# Handles dependency installation and optional example compilation.
|
||||
|
||||
DEPS_FLAG="/workspace/.deps-installed"
|
||||
|
||||
# Install dependencies once
|
||||
if [ ! -f "$DEPS_FLAG" ]; then
|
||||
echo "[ormin-dev] Installing BaraDB client..."
|
||||
cd /workspace/baradb
|
||||
nimble install -y
|
||||
|
||||
echo "[ormin-dev] Installing Ormin dependencies..."
|
||||
cd /workspace/ormin
|
||||
nimble install -y
|
||||
|
||||
touch "$DEPS_FLAG"
|
||||
echo "[ormin-dev] Dependencies ready."
|
||||
fi
|
||||
|
||||
# If no arguments, drop to shell
|
||||
if [ $# -eq 0 ]; then
|
||||
exec bash
|
||||
fi
|
||||
|
||||
# Otherwise run the provided command
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user