mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-23 17:32:22 +00:00
Fix Path Error in ci-in-a-box defaults. (#1178)
Box / Ci Box Integration tests / Node 26 / alpine / arm64 (push) Canceled after 0s
Tests / Build & Lint (push) Canceled after 0s
Tests / Unit tests (push) Canceled after 0s
Box / Build & Lint / Node 24 / alpine / amd64 (push) Canceled after 0s
Box / Build & Lint / Node 24 / slim / amd64 (push) Canceled after 0s
Box / Build & Lint / Node 26 / alpine / amd64 (push) Canceled after 0s
Box / Build & Lint / Node 26 / slim / amd64 (push) Canceled after 0s
Box / Build & Lint / Node 24 / alpine / arm64 (push) Canceled after 0s
Box / Build & Lint / Node 24 / slim / arm64 (push) Canceled after 0s
Box / Build & Lint / Node 26 / alpine / arm64 (push) Canceled after 0s
Box / Build & Lint / Node 26 / slim / arm64 (push) Canceled after 0s
Box / Unit tests / Node 24 / alpine / amd64 (push) Canceled after 0s
Box / Unit tests / Node 24 / slim / amd64 (push) Canceled after 0s
Box / Unit tests / Node 26 / alpine / amd64 (push) Canceled after 0s
Box / Unit tests / Node 26 / slim / amd64 (push) Canceled after 0s
Box / Unit tests / Node 24 / alpine / arm64 (push) Canceled after 0s
Box / Unit tests / Node 24 / slim / arm64 (push) Canceled after 0s
Box / Unit tests / Node 26 / alpine / arm64 (push) Canceled after 0s
Box / Unit tests / Node 26 / slim / arm64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 24 / alpine / amd64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 24 / slim / amd64 (push) Canceled after 0s
Tests / Integration tests (push) Canceled after 0s
Box / Ci Box Integration tests / Node 26 / alpine / amd64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 26 / slim / amd64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 24 / alpine / arm64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 24 / slim / arm64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 26 / slim / arm64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 24 / alpine / amd64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 24 / slim / amd64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 26 / alpine / amd64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 26 / slim / amd64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 24 / alpine / arm64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 24 / slim / arm64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 26 / alpine / arm64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 26 / slim / arm64 (push) Canceled after 0s
Docker Hub - Develop / docker-latest (push) Canceled after 0s
GHCR - Development Branches / ghcr-publish (push) Canceled after 0s
Tests / Application Service Integration tests (push) Canceled after 0s
Validate Docker Build / validate-docker-build (push) Canceled after 0s
Box / Ci Box Integration tests / Node 26 / alpine / arm64 (push) Canceled after 0s
Tests / Build & Lint (push) Canceled after 0s
Tests / Unit tests (push) Canceled after 0s
Box / Build & Lint / Node 24 / alpine / amd64 (push) Canceled after 0s
Box / Build & Lint / Node 24 / slim / amd64 (push) Canceled after 0s
Box / Build & Lint / Node 26 / alpine / amd64 (push) Canceled after 0s
Box / Build & Lint / Node 26 / slim / amd64 (push) Canceled after 0s
Box / Build & Lint / Node 24 / alpine / arm64 (push) Canceled after 0s
Box / Build & Lint / Node 24 / slim / arm64 (push) Canceled after 0s
Box / Build & Lint / Node 26 / alpine / arm64 (push) Canceled after 0s
Box / Build & Lint / Node 26 / slim / arm64 (push) Canceled after 0s
Box / Unit tests / Node 24 / alpine / amd64 (push) Canceled after 0s
Box / Unit tests / Node 24 / slim / amd64 (push) Canceled after 0s
Box / Unit tests / Node 26 / alpine / amd64 (push) Canceled after 0s
Box / Unit tests / Node 26 / slim / amd64 (push) Canceled after 0s
Box / Unit tests / Node 24 / alpine / arm64 (push) Canceled after 0s
Box / Unit tests / Node 24 / slim / arm64 (push) Canceled after 0s
Box / Unit tests / Node 26 / alpine / arm64 (push) Canceled after 0s
Box / Unit tests / Node 26 / slim / arm64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 24 / alpine / amd64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 24 / slim / amd64 (push) Canceled after 0s
Tests / Integration tests (push) Canceled after 0s
Box / Ci Box Integration tests / Node 26 / alpine / amd64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 26 / slim / amd64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 24 / alpine / arm64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 24 / slim / arm64 (push) Canceled after 0s
Box / Ci Box Integration tests / Node 26 / slim / arm64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 24 / alpine / amd64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 24 / slim / amd64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 26 / alpine / amd64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 26 / slim / amd64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 24 / alpine / arm64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 24 / slim / arm64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 26 / alpine / arm64 (push) Canceled after 0s
Box / Application Service Integration tests / Node 26 / slim / arm64 (push) Canceled after 0s
Docker Hub - Develop / docker-latest (push) Canceled after 0s
GHCR - Development Branches / ghcr-publish (push) Canceled after 0s
Tests / Application Service Integration tests (push) Canceled after 0s
Validate Docker Build / validate-docker-build (push) Canceled after 0s
* Fix Path Error in ci-in-a-box defaults. CI runs with overrides for this that makes it work correctly its just ci-in-a-box is supposed to NOT use env vars for critical shit like just working out of box. * Update Ci-in-a-box instructions to use correct relative paths. * Please the prettier
This commit is contained in:
1 parent
36bceb3096
commit
ea1f64f5d8
2 files changed
+27
-26
No files matched your search
+17
-16
@@ -40,31 +40,32 @@ parent/
|
||||
└── ...
|
||||
```
|
||||
|
||||
`ci-in-a-box/` sits inside the Draupnir repo and should be invoked from there.
|
||||
`ci-in-a-box/` sits inside the Draupnir repo. All commands below are written to
|
||||
be run from the Draupnir repo root, so they point at the `ci-in-a-box/`
|
||||
subfolder explicitly.
|
||||
|
||||
## Quick start
|
||||
|
||||
1. Copy the sample environment file if you want to use non-default settings:
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
cp ci-in-a-box/.env.example ci-in-a-box/.env
|
||||
```
|
||||
|
||||
2. Review the contents of `.env` to see if your local checkouts are aligned
|
||||
correctly or if you need to use non defaults.
|
||||
2. Review the contents of `ci-in-a-box/.env` to see if your local checkouts are
|
||||
aligned correctly or if you need to use non defaults.
|
||||
|
||||
3. Run the validation command you want to exercise, for example:
|
||||
|
||||
```bash
|
||||
docker compose -f compose.yaml -f compose.node24-slim.yaml --profile build-lint up --build draupnir-build-lint
|
||||
docker compose -f ci-in-a-box/compose.yaml -f ci-in-a-box/compose.node24-slim.yaml --profile build-lint up --build draupnir-build-lint
|
||||
```
|
||||
|
||||
If you need to inspect the resolved Compose configuration while debugging, you
|
||||
can still run:
|
||||
|
||||
```bash
|
||||
docker compose config
|
||||
docker compose -f compose.yaml -f compose.node24-slim.yaml --profile '*' config --quiet
|
||||
docker compose -f ci-in-a-box/compose.yaml -f ci-in-a-box/compose.node24-slim.yaml --profile '*' config --quiet
|
||||
```
|
||||
|
||||
## Variant selection
|
||||
@@ -82,7 +83,7 @@ Use the base Compose file together with one of the variant files when running a
|
||||
check:
|
||||
|
||||
```bash
|
||||
docker compose -f compose.yaml -f compose.node24-slim.yaml --profile build-lint up --build draupnir-build-lint
|
||||
docker compose -f ci-in-a-box/compose.yaml -f ci-in-a-box/compose.node24-slim.yaml --profile build-lint up --build draupnir-build-lint
|
||||
```
|
||||
|
||||
## Common contributor commands
|
||||
@@ -90,33 +91,33 @@ docker compose -f compose.yaml -f compose.node24-slim.yaml --profile build-lint
|
||||
Build and lint:
|
||||
|
||||
```bash
|
||||
docker compose -f compose.yaml -f compose.node24-slim.yaml --profile build-lint up --build draupnir-build-lint
|
||||
docker compose -f ci-in-a-box/compose.yaml -f ci-in-a-box/compose.node24-slim.yaml --profile build-lint up --build draupnir-build-lint
|
||||
```
|
||||
|
||||
Run unit tests:
|
||||
|
||||
```bash
|
||||
docker compose -f compose.yaml -f compose.node24-slim.yaml --profile unit up --build draupnir-unit
|
||||
docker compose -f ci-in-a-box/compose.yaml -f ci-in-a-box/compose.node24-slim.yaml --profile unit up --build draupnir-unit
|
||||
```
|
||||
|
||||
Run bot mode integration tests:
|
||||
|
||||
```bash
|
||||
docker compose -f compose.yaml -f compose.node24-slim.yaml up -d
|
||||
docker compose -f compose.yaml -f compose.node24-slim.yaml --profile integration up --build draupnir-integration
|
||||
docker compose -f ci-in-a-box/compose.yaml -f ci-in-a-box/compose.node24-slim.yaml up -d
|
||||
docker compose -f ci-in-a-box/compose.yaml -f ci-in-a-box/compose.node24-slim.yaml --profile integration up --build draupnir-integration
|
||||
```
|
||||
|
||||
Run appservice mode integration tests:
|
||||
|
||||
```bash
|
||||
docker compose -f compose.yaml -f compose.node24-slim.yaml up -d
|
||||
docker compose -f compose.yaml -f compose.node24-slim.yaml --profile appservice-integration up --build draupnir-appservice-integration
|
||||
docker compose -f ci-in-a-box/compose.yaml -f ci-in-a-box/compose.node24-slim.yaml up -d
|
||||
docker compose -f ci-in-a-box/compose.yaml -f ci-in-a-box/compose.node24-slim.yaml --profile appservice-integration up --build draupnir-appservice-integration
|
||||
```
|
||||
|
||||
Clean up after a run:
|
||||
|
||||
```bash
|
||||
docker compose -f compose.yaml -f compose.node24-slim.yaml --profile '*' down --volumes
|
||||
docker compose -f ci-in-a-box/compose.yaml -f ci-in-a-box/compose.node24-slim.yaml --profile '*' down --volumes
|
||||
```
|
||||
|
||||
## Debian and Alpine checks
|
||||
@@ -124,7 +125,7 @@ docker compose -f compose.yaml -f compose.node24-slim.yaml --profile '*' down --
|
||||
Use the variant file to switch between the Debian and Alpine validation paths:
|
||||
|
||||
```bash
|
||||
docker compose -f compose.yaml -f compose.node24-alpine.yaml --profile unit up --build draupnir-unit
|
||||
docker compose -f ci-in-a-box/compose.yaml -f ci-in-a-box/compose.node24-alpine.yaml --profile unit up --build draupnir-unit
|
||||
```
|
||||
|
||||
This keeps the glibc and musl validation paths in the same matrix, so you can
|
||||
|
||||
+10
-10
@@ -77,8 +77,8 @@ services:
|
||||
|
||||
draupnir-build-lint:
|
||||
build:
|
||||
context: ${DRAUPNIR_CONTEXT:-../Draupnir}
|
||||
dockerfile: ${DRAUPNIR_DOCKERFILE:-../Draupnir-Ci-in-a-box/Dockerfile-Draupnir-Develop}
|
||||
context: ${DRAUPNIR_CONTEXT:-..}
|
||||
dockerfile: ${DRAUPNIR_DOCKERFILE:-ci-in-a-box/Dockerfile-Draupnir-Develop}
|
||||
args:
|
||||
NODE_VERSION: ${NODE_VERSION:-24}
|
||||
NODE_VARIANT: ${NODE_VARIANT:-slim}
|
||||
@@ -92,8 +92,8 @@ services:
|
||||
|
||||
draupnir-unit:
|
||||
build:
|
||||
context: ${DRAUPNIR_CONTEXT:-../Draupnir}
|
||||
dockerfile: ${DRAUPNIR_DOCKERFILE:-../Draupnir-Ci-in-a-box/Dockerfile-Draupnir-Develop}
|
||||
context: ${DRAUPNIR_CONTEXT:-..}
|
||||
dockerfile: ${DRAUPNIR_DOCKERFILE:-ci-in-a-box/Dockerfile-Draupnir-Develop}
|
||||
args:
|
||||
NODE_VERSION: ${NODE_VERSION:-24}
|
||||
NODE_VARIANT: ${NODE_VARIANT:-slim}
|
||||
@@ -107,8 +107,8 @@ services:
|
||||
|
||||
draupnir-integration:
|
||||
build:
|
||||
context: ${DRAUPNIR_CONTEXT:-../Draupnir}
|
||||
dockerfile: ${DRAUPNIR_DOCKERFILE:-../Draupnir-Ci-in-a-box/Dockerfile-Draupnir-Develop}
|
||||
context: ${DRAUPNIR_CONTEXT:-..}
|
||||
dockerfile: ${DRAUPNIR_DOCKERFILE:-ci-in-a-box/Dockerfile-Draupnir-Develop}
|
||||
args:
|
||||
NODE_VERSION: ${NODE_VERSION:-24}
|
||||
NODE_VARIANT: ${NODE_VARIANT:-slim}
|
||||
@@ -130,8 +130,8 @@ services:
|
||||
|
||||
draupnir-appservice-integration:
|
||||
build:
|
||||
context: ${DRAUPNIR_CONTEXT:-../Draupnir}
|
||||
dockerfile: ${DRAUPNIR_DOCKERFILE:-../Draupnir-Ci-in-a-box/Dockerfile-Draupnir-Develop}
|
||||
context: ${DRAUPNIR_CONTEXT:-..}
|
||||
dockerfile: ${DRAUPNIR_DOCKERFILE:-ci-in-a-box/Dockerfile-Draupnir-Develop}
|
||||
args:
|
||||
NODE_VERSION: ${NODE_VERSION:-24}
|
||||
NODE_VARIANT: ${NODE_VARIANT:-slim}
|
||||
@@ -158,7 +158,7 @@ services:
|
||||
image: ${DRAUPNIR_IMAGE:-draupnir/ci-box-draupnir:node${NODE_VERSION:-24}-${NODE_VARIANT:-slim}}
|
||||
volumes:
|
||||
- draupnir-config:/config
|
||||
- ${DRAUPNIR_CONFIG_SOURCE:-../Draupnir/config}:/source-config:ro
|
||||
- ${DRAUPNIR_CONFIG_SOURCE:-../config}:/source-config:ro
|
||||
command:
|
||||
- sh
|
||||
- -lc
|
||||
@@ -177,7 +177,7 @@ services:
|
||||
condition: service_healthy
|
||||
volumes:
|
||||
- ${REVERSE_PROXY_CONFIG_PATH:-./scripts/nginx/nginx.conf}:/etc/nginx/nginx.conf:ro
|
||||
- ${REVERSE_PROXY_NEWS_PATH:-../Draupnir/apps/draupnir/test/draupnir_news.json}:/var/www/test/draupnir_news.json:ro
|
||||
- ${REVERSE_PROXY_NEWS_PATH:-../apps/draupnir/test/draupnir_news.json}:/var/www/test/draupnir_news.json:ro
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
|
||||
Reference in new issue
Block a user