Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add just targets for simple stack handling #2985

Merged
merged 9 commits into from
Jan 10, 2024
23 changes: 19 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,23 @@ default:
@just --list

# Update the OpenApi yml files by generating these from the tAPIr specs
alias dog := docs-openapi-generate
docs-openapi-generate:
mkdir -p {{openapiDir}}
rm {{openapiDir}}/*.yml >> /dev/null 2>&1 || true
sbt "webapi/runMain org.knora.webapi.slice.common.api.DocsGenerator {{openapiDir}}"
mkdir -p {{ openapiDir }}
rm {{ openapiDir }}/*.yml >> /dev/null 2>&1 || true
sbt "webapi/runMain org.knora.webapi.slice.common.api.DocsGenerator {{ openapiDir }}"

alias dog := docs-openapi-generate

# Start stack from latest images on dockerhub (no build required)
start-stack-latest:
seakayone marked this conversation as resolved.
Show resolved Hide resolved
docker compose down
docker compose pull
docker compose up -d

alias ssl := start-stack-latest
seakayone marked this conversation as resolved.
Show resolved Hide resolved

# Stop stack
stop-stack:
docker compose down

alias stop := stop-stack
Loading