Skip to content

Commit

Permalink
Merge branch 'develop' into dependabot/npm_and_yarn/http-cache-semant…
Browse files Browse the repository at this point in the history
…ics-4.1.1
  • Loading branch information
nitrosx authored Mar 26, 2024
2 parents 8cd8769 + bb80770 commit 81daf60
Show file tree
Hide file tree
Showing 25 changed files with 10,492 additions and 1,988 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]

steps:
- name: Checkout code
Expand Down
2 changes: 0 additions & 2 deletions .snyk

This file was deleted.

5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"peacock.color": "#2f0710"
}
"peacock.color": "#2f0710",
"prettier.singleQuote": false
}
14 changes: 8 additions & 6 deletions CI/ESS/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
FROM node:16-alpine
FROM node:20-alpine

ENV NODE_ENV="production"
ENV PORT=3012
EXPOSE 3012

ENV http_proxy "http://172.18.12.30:8123"
ENV https_proxy $http_proxy
#ENV http_proxy "http://172.18.12.30:8123"
#ENV https_proxy $http_proxy
RUN apk update && apk upgrade

WORKDIR /home/node/app
COPY package*.json /home/node/app/
COPY .snyk /home/node/app/

RUN npm config set proxy $http_proxy
RUN npm config set https-proxy $http_proxy
#RUN npm config set proxy $http_proxy
#RUN npm config set https-proxy $http_proxy
RUN npm ci

COPY . .
COPY CI/ESS/local.config.json src/
COPY test/config.json.test config/config.json
RUN mkdir files


RUN npm run build

Expand Down
2 changes: 1 addition & 1 deletion CI/ESS/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine
FROM node:18-alpine

RUN apk update && apk upgrade

Expand Down
15 changes: 9 additions & 6 deletions CI/ESS/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
version: "3"
services:
node:
build: .
restart: always
image: docker pull ghcr.io/scicatproject/zip-service:alpha.1
restart: no
ports:
- "3012:3012"
volumes:
- /nfs/groups/beamlines/:/nfs/groups/beamlines
- /users/detector/experiments/:/users/detector/experiments
- /mnt/groupdata/guide_optimizations/:/mnt/groupdata/guide_optimizations
- /tmp/zip-service:/home/node/app/files #location of the zipped files
- /ess/sims/config/zip-service/config.json:/home/node/app/config.json
- /tmp/zip-service:/home/node/app/files
- /users/detector/experiments/:/users/detector/experiments:ro
- /nfs/groups/beamlines/:/nfs/groups/beamlines:ro
- /mnt/groupdata/guide_optimizations/:/mnt/groupdata/guide_optimizations:ro
- /ess/data:/ess/data:ro

6 changes: 5 additions & 1 deletion CI/ESS/local.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
"jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJncm91cHMiOlsiZXNzIiwibG9raSIsIm9kaW4iXSwiaWF0IjoxNTY3NDI3NzA5LCJleHAiOjE1Njc0MzEzMDl9.ENcuTBS67shghefL3wRCHxoyobwZGaFQIUvSZ0cywcE",
"directory": "/nfs/groups/beamlines/v20/14CD3N/",
"files": ["nicos_00000490.hdf"]
}
},
"graylogEnabled": true,
"graylogServer": "it-graylog.esss.lu.se",
"graylogPort": 12201,
"environment": "development"
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine
FROM node:18-alpine

RUN apk update && apk upgrade

Expand Down
17 changes: 17 additions & 0 deletions config/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"zipDir": "./files",
"jwtSecret": "fhjekrsgvhuirs",
"sessionSecret": "fj9832mnsaf3j9adsa",
"facility": "ess",
"zipRetentionMillis": 3600000,
"dramDirectory": "/nfs/groups/beamlines/dram",
"testData": {
"jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJncm91cHMiOlsiZXNzIiwibG9raSIsIm9kaW4iXSwiaWF0IjoxNTY3NDI3NzA5LCJleHAiOjE1Njc0MzEzMDl9.ENcuTBS67shghefL3wRCHxoyobwZGaFQIUvSZ0cywcE",
"directory": "./test/",
"files": ["test_file_1.txt"]
},
"graylogEnabled": false,
"graylogServer": "it-graylog.esss.lu.se",
"graylogPort": 12201,
"environment": "development"
}
Loading

0 comments on commit 81daf60

Please sign in to comment.