4ac147dc6c
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
30 lines
611 B
Bash
Executable File
30 lines
611 B
Bash
Executable File
#!/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 "$@"
|