Dev Container Tweaks (#1117)

This commit is contained in:
jbirddog 2024-02-28 09:49:45 -05:00 committed by GitHub
parent d66ea0e9ac
commit 52f986ffe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 8 additions and 11 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ version_info.json
UNKNOWN.egg-info/
process_models/
.ipynb_checkpoints
.env*

View File

@ -29,7 +29,7 @@ all: dev-env start-dev run-pyl
build-images:
$(DOCKER_COMPOSE) build
dev-env: build-images fe-npm-i be-recreate-db
dev-env: stop-dev build-images fe-npm-i be-recreate-db
@/bin/true
start-dev: stop-dev
@ -69,7 +69,7 @@ fe-logs:
docker logs -f $(FRONTEND_CONTAINER)
fe-npm-i:
$(IN_FRONTEND) npm i
$(IN_FRONTEND) npm i && git checkout -- spiffworkflow-frontend/package-lock.json
fe-sh:
$(IN_FRONTEND) /bin/bash
@ -88,7 +88,7 @@ take-ownership:
.PHONY: build-images dev-env \
start-dev stop-dev \
be-clear-log-file be-logs be-recreate-db be-ruff be-sh be-tests be-tests-par \
be-clear-log-file be-logs be-mypy be-recreate-db be-ruff be-sh be-tests be-tests-par \
fe-lint-fix fe-logs fe-npm-i fe-sh \
pre-commit run-pyl \
take-ownership

View File

@ -73,7 +73,7 @@ If you have `docker` and `docker compose`, as an alternative to locally installi
After the containers are set up, you can run `make start-dev` and `make stop-dev` to start and stop the servers. If the frontend or backend lock file changes, `make dev-env` will recreate the containers with the new dependencies.
Please refer to the [Makefile](Makefile) as the source of truth, but for a summary of the available `make` targets.
Please refer to the [Makefile](Makefile) as the source of truth, but for a summary of the available `make` targets:
| Target | Action |
|----|----|

View File

@ -41,7 +41,7 @@ services:
ports:
- "${SPIFF_BACKEND_PORT:-8000}:${SPIFF_BACKEND_PORT:-8000}/tcp"
volumes:
- ./process_models:/app/process_models
- ${SPIFFWORKFLOW_BACKEND_LOCAL_BPMN_SPEC_DIR:-./process_models}:/app/process_models
- spiffworkflow_backend_db:/app/db_volume
healthcheck:
test: "curl localhost:${SPIFF_BACKEND_PORT:-8000}/v1.0/status --fail"

View File

@ -27,7 +27,7 @@ RUN apt-get update \
# keep pip up to date
RUN pip install --upgrade pip
RUN pip install poetry==1.6.1
RUN pip install poetry==1.8.1
######################## - SETUP

View File

@ -8,7 +8,7 @@ RUN apt-get update \
pkg-config libffi-dev git-core curl
RUN pip install --upgrade pip
RUN pip install poetry==1.6.1 pytest-xdist
RUN pip install poetry==1.8.1 pytest-xdist==3.5.0
COPY pyproject.toml poetry.lock .
RUN poetry install --no-root

View File

@ -2,8 +2,4 @@ FROM node:20.8.1-bookworm-slim AS base
WORKDIR /app
COPY package.json package-lock.json .
RUN npm i
CMD ["npm", "run", "docker:start"]