Skip to content

Commit

Permalink
Merge pull request #32 from rally25rs/fix-yarn-pnp-29
Browse files Browse the repository at this point in the history
fix #29 - use yarn to start node
  • Loading branch information
rally25rs authored Apr 19, 2024
2 parents 156e0c6 + 0e88b6f commit 8d3c734
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Next Release

- Fix #29 - Use `yarn` to start `node` in Docker image, so `yarn` can bootstrap `node` to load PnP dependencies.

## v0.2.0

- Upgrade yarn from classic `v1` to modern `v4.0.2` (Used locally for build and test)
Expand Down
2 changes: 1 addition & 1 deletion packages/k8s-when-ready-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ RUN yarn workspaces focus --production
COPY . /usr/src/app

EXPOSE 3000
ENTRYPOINT ["node", "index.js"]
ENTRYPOINT ["yarn", "node", "index.js"]
2 changes: 1 addition & 1 deletion packages/k8s-when-ready-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"packageManager": "yarn@4.0.2",
"scripts": {
"test": "jest",
"build": "docker build ."
"build": "docker build . -t k8s-when-ready-client:latest"
},
"dependencies": {
"yargs": "^17.7.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/k8s-when-ready-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ RUN yarn workspaces focus --production
COPY . /usr/src/app

EXPOSE 3000
ENTRYPOINT ["node", "index.js"]
ENTRYPOINT ["yarn", "node", "index.js"]
2 changes: 1 addition & 1 deletion packages/k8s-when-ready-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"packageManager": "yarn@4.0.2",
"scripts": {
"test": "jest",
"build": "docker build ."
"build": "docker build . -t k8s-when-ready-server:latest"
},
"dependencies": {
"@kubernetes/client-node": "^0.20.0",
Expand Down

0 comments on commit 8d3c734

Please sign in to comment.