Skip to content

Commit c907ec3

Browse files
authored
fix: deployment path, and copy the whole directory (#3220)
* fix: deployment path, and copy the whole directory
1 parent b677e5d commit c907ec3

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

containers/node-bootstrap-container/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ RUN go install github.com/bazelbuild/buildtools/buildozer@latest
2222

2323
FROM node:14-slim as nodebuild
2424

25-
COPY package*.json ./
25+
COPY package*.json /
2626

2727
RUN npm install
2828

2929
# Now copy all the code so we can compile
30-
COPY entrypoint.sh ./
30+
COPY . /
3131

3232
COPY --from=gobuild /go/bin/buildozer /go/bin/buildozer
3333

34-
RUN chmod 755 /workspace/entrypoint.sh
35-
# Run the web service on container startup.
36-
ENTRYPOINT ["/workspace/entrypoint.sh" ]
3734

35+
RUN chmod 755 /entrypoint.sh
36+
# Run the web service on container startup.
37+
ENTRYPOINT ["/entrypoint.sh" ]

containers/node-bootstrap-container/entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ npm run compile
2222
npm link .
2323

2424
cd "${WORKSPACE_DIR}/${MONO_REPO_NAME}/containers/node-bootstrap-container"
25-
FOLDER_NAME=node create-folder-name.js $API_ID || node create-gh-issue.js
26-
mkdir -p "${WORKSPACE_DIR}/${MONO_REPO_NAME}/packages/${FOLDER_NAME}" || node create-gh-issue.js
27-
node add-to-well-known-path.js "${WORKSPACE_DIR}" "${FOLDER_NAME}"
25+
FOLDER_NAME=node /create-folder-name.js $API_ID || node /create-gh-issue.js
26+
mkdir -p "${WORKSPACE_DIR}/${MONO_REPO_NAME}/packages/${FOLDER_NAME}" || node /create-gh-issue.js
27+
node /add-to-well-known-path.js "${WORKSPACE_DIR}" "${FOLDER_NAME}"
2828
cd "${WORKSPACE_DIR}/${MONO_REPO_NAME}"
2929
/usr/local/bin/gapic-node-templating bootstrap-library --api-id "${API_ID}" --destination-folder "${WORKSPACE_DIR}/${MONO_REPO_NAME}/packages/${FOLDER_NAME}" --mono-repo-name "${MONO_REPO_NAME}" --github-token "${GITHUB_TOKEN}" || node create-gh-issue.js

containers/node-bootstrap-container/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
"@octokit/rest": "^19.0.0"
2424
},
2525
"devDependencies": {
26-
"@octokit/rest": "^19.0.0",
2726
"mocha": "^9.0.0",
2827
"nock": "^13.2.6",
2928
"snap-shot-it": "^7.9.6"

0 commit comments

Comments
 (0)