Skip to content

Commit

Permalink
Merge pull request #304 from openBackhaul/develop
Browse files Browse the repository at this point in the history
To retag version 2.0.1_impl
  • Loading branch information
IswaryaaS authored Jul 27, 2023
2 parents 4e16318 + c43e02d commit c09d82e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 22 deletions.
8 changes: 4 additions & 4 deletions server/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ FROM node:16-alpine
# set nodejs to production mode
ENV NODE_ENV production

# use non-root user
USER node

# Change to directory owned by node user
WORKDIR /home/openbackhaul/ExecutionAndTraceLog

Expand All @@ -18,8 +15,11 @@ COPY --chown=node:node package*.json ./
# If you are building your code for production
RUN npm ci --only=production

# use non-root user
USER node

# Bundle app source
COPY --chown=node:node . .

EXPOSE 3002
CMD [ "node", "index.js" ]
CMD [ "node", "index.js" ]
2 changes: 2 additions & 0 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ global.databasePath = './database/load.json'
prepareElasticsearch(false).then().catch(err => {
console.error(`Error preparing Elasticsearch : ${err}`);
});

appCommons.performApplicationRegistration();
44 changes: 28 additions & 16 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"connect": "^3.2.0",
"http-errors": "^2.0.0",
"js-yaml": "^3.3.0",
"onf-core-model-ap": "2.0.1-alpha.19",
"onf-core-model-ap-bs": "2.0.1-alpha.19",
"onf-core-model-ap": "2.0.1-alpha.22",
"onf-core-model-ap-bs": "2.0.1-alpha.22",
"openbackhaul-oas3-tools": "2.3.1-alpha.3"
}
}

0 comments on commit c09d82e

Please sign in to comment.