-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker compose overlay file for editable frontend container (#1092)
- Loading branch information
Showing
5 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FRONTEND_CONTAINER ?= spiffworkflow-frontend | ||
FRONTEND_DEV_OVERLAY ?= spiffworkflow-frontend/dev.docker-compose.yml | ||
|
||
dev-env: | ||
docker compose -f docker-compose.yml \ | ||
-f $(FRONTEND_DEV_OVERLAY) \ | ||
build | ||
|
||
start-dev: | ||
docker compose -f docker-compose.yml \ | ||
-f $(FRONTEND_DEV_OVERLAY) \ | ||
up -d | ||
|
||
stop-dev: | ||
docker compose -f docker-compose.yml \ | ||
-f $(FRONTEND_DEV_OVERLAY) \ | ||
down | ||
|
||
fe-lint-fix: | ||
docker exec -it $(FRONTEND_CONTAINER) npm run lint:fix | ||
|
||
fe-sh: | ||
docker exec -it $(FRONTEND_CONTAINER) /bin/bash | ||
|
||
.PHONY: dev-env start-dev stop-dev \ | ||
fe-lint-fix fe-sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
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"] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
services: | ||
spiffworkflow-frontend: | ||
build: | ||
context: spiffworkflow-frontend | ||
dockerfile: dev.Dockerfile | ||
environment: | ||
HOST: "0.0.0.0" | ||
PORT: "${SPIFFWORKFLOW_FRONTEND_PORT:-8001}" | ||
volumes: | ||
- ./spiffworkflow-frontend:/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters