Skip to content

Commit c6713a9

Browse files
Merge pull request #66 from zitrosolrac/trimmedPackageJson
Trimmed package json
2 parents 158ceb3 + 60d99ac commit c6713a9

File tree

8 files changed

+28
-33
lines changed

8 files changed

+28
-33
lines changed

docker-compose-base.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,16 @@ services:
3333
ibl-navigator:
3434
<<: *net
3535
# image: registry.vathes.com/ibl-navigator/frontend:v0.4.2 # for internal demo
36-
image: registry.vathes.com/ibl-navigator/frontend:v0.2.5-public # for public demo
36+
image: registry.vathes.com/ibl-navigator/frontend:v0.2.6-public # for public demo
3737
healthcheck:
3838
test: curl --fail http://localhost:9000 || exit 1
3939
timeout: 3s
4040
retries: 20
4141
ibl-node-server:
4242
<<: *net
43+
platform: linux/amd64
4344
# image: registry.vathes.com/ibl-navigator/node-server:v0.3.0 # for internal demo
44-
image: registry.vathes.com/ibl-navigator/node-server:v0.2.0-public # for public demo
45+
image: registry.vathes.com/ibl-navigator/node-server:v0.2.1-public # for public demo
4546
environment:
4647
- NODE_ENV=development
4748
- DEMO_USERNAME=ibluser
@@ -72,7 +73,7 @@ services:
7273
# condition: service_healthy
7374
nginx:
7475
<<: *net
75-
image: datajoint/nginx:v0.0.16
76+
image: datajoint/nginx:v0.0.18
7677
environment:
7778
- ADD_zfrontend_TYPE=REST
7879
- ADD_zfrontend_ENDPOINT=ibl-navigator:9000

docker-compose-dev.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ services:
3535
service: ibl-node-server
3636
image: ibl-node-server:v0.0.0
3737
# command: nodemon /src/server.js
38+
# command: npm test
39+
ports:
40+
- "9222:9222"
3841
volumes:
3942
- ./node_server/app.js:/src/app.js
4043
<<: *net

ibl-frontend/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
FROM vathes/angulardev:angcli7.1.4-angbuild0.11.4
2+
# RUN \
3+
# npm cache clean -f && \
4+
# npm install -g n && \
5+
# n 12.14.0
6+
7+
# RUN id && npm install -g node@^12.0.0
28

39
WORKDIR /app/dist/pipeline-viewer
410

ibl-frontend/dev.dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# don't build
22
FROM vathes/angulardev:angcli7.1.4-angbuild0.11.4
3+
# RUN \
4+
# npm cache clean -f && \
5+
# npm install -g n && \
6+
# n 12.14.0
7+
8+
#RUN id && npm install -g node@^12.0.0
39

410
HEALTHCHECK \
511
--timeout=3s \

ibl-frontend/frontend-content/package.json

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -23,44 +23,18 @@
2323
"@angular/platform-browser": "~7.1.0",
2424
"@angular/platform-browser-dynamic": "~7.1.0",
2525
"@angular/router": "~7.1.0",
26-
"@types/mathjax": "0.0.35",
2726
"@wizpanda/super-gif": "0.0.5",
2827
"angular-plotly.js": "^1.3.2",
29-
"body-parser": "^1.18.3",
3028
"bootstrap": "^4.2.1",
31-
"core-js": "^2.5.4",
32-
"dotenv": "^8.0.0",
33-
"express": "^4.16.4",
34-
"jsonwebtoken": "^8.5.1",
35-
"mathjax": "^2.7.5",
3629
"moment": "^2.24.0",
3730
"plotly.js": "^1.49.0",
38-
"plotly.js-dist": "^1.44.4",
39-
"request": "^2.88.0",
4031
"rxjs": "~6.3.3",
4132
"rxjs-compat": "^6.3.3",
42-
"tslib": "^1.9.0",
4333
"zone.js": "~0.8.26"
4434
},
4535
"devDependencies": {
4636
"@angular-devkit/build-angular": "~0.11.0",
4737
"@angular/cli": "~7.1.3",
48-
"@angular/compiler-cli": "~7.1.0",
49-
"@angular/language-service": "~7.1.0",
50-
"@types/node": "~8.9.4",
51-
"@types/jasmine": "~2.8.8",
52-
"@types/jasminewd2": "~2.0.3",
53-
"codelyzer": "~4.5.0",
54-
"jasmine-core": "~2.99.1",
55-
"jasmine-spec-reporter": "~4.2.1",
56-
"karma": "~3.1.1",
57-
"karma-chrome-launcher": "~2.2.0",
58-
"karma-coverage-istanbul-reporter": "~2.0.1",
59-
"karma-jasmine": "~1.1.2",
60-
"karma-jasmine-html-reporter": "^0.2.2",
61-
"protractor": "~5.4.0",
62-
"ts-node": "~7.0.0",
63-
"tslint": "~5.11.0",
64-
"typescript": "~3.1.6"
38+
"@angular/compiler-cli": "~7.1.0"
6539
}
6640
}

node_server/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ COPY ./ /src/
2020
# RUN \
2121
# mv /src/check-auth.js /src/middleware/
2222

23-
CMD node --max_old_space_size=8192 /src/server.js
23+
WORKDIR /src
24+
CMD npm start
25+
26+
# CMD node --max_old_space_size=8192 /src/server.js
2427
# CMD nodemon /src/server.js
2528
# CMD tail -f /dev/null

node_server/app.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ app.post('/sessions', checkAuth, cacheMiddleware(15*60), (req, res) => {
204204
})
205205
})
206206

207-
208-
209207
app.get('/mice', checkAuth, (req, res) => {
210208
// setup for proxy server
211209
var options = {

node_server/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,9 @@
2828
"karma-jasmine": "~1.1.2",
2929
"karma-jasmine-html-reporter": "^0.2.2",
3030
"protractor": "~5.4.0"
31+
},
32+
"scripts": {
33+
"start": "node --max_old_space_size=8192 /src/server.js",
34+
"test": "node --max_old_space_size=8192 --inspect-brk=0.0.0.0:9222 /src/server.js"
3135
}
3236
}

0 commit comments

Comments
 (0)