Skip to content

Commit

Permalink
chore(#9106): fix dependencies for e2e tests that runs in local envir…
Browse files Browse the repository at this point in the history
…onment (#9306)
  • Loading branch information
latin-panda authored and sugat009 committed Aug 12, 2024
1 parent 4db6b47 commit 8396fb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ RUN apk add --update --no-cache \

WORKDIR /service

COPY ../shared-libs ./shared-libs
COPY node_modules/@medic ./node_modules/@medic
COPY api ./api

ENV NODE_PATH=/service/api/node_modules
Expand Down
3 changes: 1 addition & 2 deletions scripts/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ const buildServiceImages = async () => {

console.log('working directory', workingDir);
for (const service of versions.SERVICES) {
await exec('cp', ['-r', `${workingDir}/node_modules`, service]);
await exec('cp', ['-r', './shared-libs', service]);
await exec('cp', ['-a', `${workingDir}/node_modules`, service]);

const tag = versions.getImageTag(service);
if (INTERNAL_CONTRIBUTOR) {
Expand Down
2 changes: 2 additions & 0 deletions sentinel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ RUN apk add --update --no-cache \

WORKDIR /service

COPY ../shared-libs ./shared-libs
COPY node_modules/@medic ./node_modules/@medic
COPY sentinel ./sentinel

ENV NODE_PATH=/service/sentinel/node_modules
Expand Down

0 comments on commit 8396fb8

Please sign in to comment.