Skip to content

Commit c09d82e

Browse files
authored
Merge pull request #304 from openBackhaul/develop
To retag version 2.0.1_impl
2 parents 4e16318 + c43e02d commit c09d82e

File tree

4 files changed

+36
-22
lines changed

4 files changed

+36
-22
lines changed

server/dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ FROM node:16-alpine
33
# set nodejs to production mode
44
ENV NODE_ENV production
55

6-
# use non-root user
7-
USER node
8-
96
# Change to directory owned by node user
107
WORKDIR /home/openbackhaul/ExecutionAndTraceLog
118

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

18+
# use non-root user
19+
USER node
20+
2121
# Bundle app source
2222
COPY --chown=node:node . .
2323

2424
EXPOSE 3002
25-
CMD [ "node", "index.js" ]
25+
CMD [ "node", "index.js" ]

server/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ global.databasePath = './database/load.json'
3636
prepareElasticsearch(false).then().catch(err => {
3737
console.error(`Error preparing Elasticsearch : ${err}`);
3838
});
39+
40+
appCommons.performApplicationRegistration();

server/package-lock.json

Lines changed: 28 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"connect": "^3.2.0",
1717
"http-errors": "^2.0.0",
1818
"js-yaml": "^3.3.0",
19-
"onf-core-model-ap": "2.0.1-alpha.19",
20-
"onf-core-model-ap-bs": "2.0.1-alpha.19",
19+
"onf-core-model-ap": "2.0.1-alpha.22",
20+
"onf-core-model-ap-bs": "2.0.1-alpha.22",
2121
"openbackhaul-oas3-tools": "2.3.1-alpha.3"
2222
}
2323
}

0 commit comments

Comments
 (0)