Skip to content

Commit 3179768

Browse files
fix(docker): unable to build image using podman (#1901)
* Created a script to update the Dockerfile with every build to 'COPY' package.json files without using --parents to allow use of podman. Fix bug Unable to build image using podman * Update docker/Dockerfile to only COPY root package.json once Co-authored-by: Nick Boldt <[email protected]> * change both Dockerfiles; also include the changed content in this PR Signed-off-by: Nick Boldt <[email protected]> * Update scripts/update-Dockerfile.sh * account for latest changes to package.json paths * update Dockerfile to fit refactors * add PR check for dirty dockerfiles; update dockerfiles with the latest migrations Signed-off-by: Nick Boldt <[email protected]> * move to build:dockerfile step Signed-off-by: Nick Boldt <[email protected]> * put back changes that were force-pushed and lost Signed-off-by: Nick Boldt <[email protected]> --------- Signed-off-by: Nick Boldt <[email protected]> Co-authored-by: Nick Boldt <[email protected]>
1 parent 096947a commit 3179768

File tree

5 files changed

+260
-12
lines changed

5 files changed

+260
-12
lines changed

.github/workflows/pr.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ jobs:
9393
- name: Run lint
9494
run: yarn run lint:check --concurrency=75% --affected
9595

96+
- name: Regenerate dockerfiles
97+
run: |
98+
yarn run build:dockerfile; if [[ $(git diff --name-only | grep Dockerfile || true) != "" ]]; then \
99+
echo "ERROR: Workspace is dirty! Must run 'yarn build:dockerfile' and commit changes!"; exit 1; \
100+
fi
101+
96102
- name: Run tests
97103
run: yarn run test --concurrency=75% --affected
98104

0 commit comments

Comments
 (0)