Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config files #114

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Thumbs.db
# Dev env
sessions/
devenv.sh
devenv.docker

# package json
package-lock.json
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ FROM gitlab-registry.cern.ch/db/dbod-web-base:latest

MAINTAINER Ignacio Coterillo <[email protected]>

USER node
WORKDIR /opt/dbod/
# Bundle app source
COPY server.js ./dist.tgz /opt/dbod/
COPY package-server.json /opt/dbod/package.json
COPY server/ /opt/dbod/server
RUN tar xvzf dist.tgz
RUN chown node:node /opt/dbod/sessions && chmod 0777 /opt/dbod/sessions
USER node
RUN tar xvzf dist.tgz >/dev/null 2>&1
RUN mkdir -p /opt/dbod/downloads
RUN chown -R node:node /opt/dbod/sessions /opt/dbod/downloads && chmod 0777 /opt/dbod/sessions /opt/dbod/downloads
EXPOSE 3000
ENV NODE_EXTRA_CA_CERTS=CERN-CA.pem
ENTRYPOINT ["npm", "start"]
Binary file added dist.tgz
Binary file not shown.
94 changes: 75 additions & 19 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"ckeditor": "4.7.3",
"classlist.js": "1.1.20150312",
"core-js": "2.5.1",
"download-file": "^0.1.5",
"echarts": "^4.1.0",
"elasticsearch": "^15.1.1",
"express": "^4.16.3",
Expand Down Expand Up @@ -98,8 +99,11 @@
"simple-oauth2": "^1.6.0",
"socicon": "3.0.5",
"socket.io": "^2.1.1",
"string-similarity": "^2.0.0",
"text-diff": "^1.0.1",
"tinymce": "4.5.7",
"typeface-exo": "0.0.22",
"uniqid": "^5.0.3",
"web-animations-js": "2.2.5",
"zone.js": "^0.8.26"
},
Expand Down
Loading