Skip to content

Commit f5c550f

Browse files
committed
wip
Signed-off-by: Nell Shamrell <[email protected]>
1 parent c2132c1 commit f5c550f

File tree

3 files changed

+37
-20
lines changed

3 files changed

+37
-20
lines changed

definitions_seed/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM mongo:latest
2+
3+
COPY init.json /init.json
4+
#CMD mongoimport --host clearlydefined_mongo_db --db clearlydefined --collection definitions --drop --file /init.json --jsonArray
5+
CMD mongoimport --uri mongodb://admin:secret@localhost:27017/clearlydefined --collection definitions --drop --file /init.json --jsonArray
6+

definitions_seed/init.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{ "_id" : "npm/npmjs/-/glob/7.1.0", "files" : [ { "path" : "package/LICENSE", "license" : "ISC", "attributions" : [ "Copyright (c) Isaac Z. Schlueter and Contributors" ], "hashes" : { "sha1" : "bb408e929caeb1731945b2ba54bc337edb87cc66" }, "token" : "4ec3d4c66cd87f5c8d8ad911b10f99bf27cb00cdfcff82621956e379186b016b" }, { "path" : "package/common.js" }, { "path" : "package/sync.js" }, { "path" : "package/glob.js" }, { "path" : "package/package.json", "license" : "ISC", "hashes" : { "sha1" : "ab507fdc88183a8c4c26ca740a5d67f7c7c2c809" } }, { "path" : "package/README.md" }, { "path" : "package/changelog.md" } ], "described" : { "releaseDate" : "2016-09-20", "sourceLocation" : { "type" : "git", "provider" : "github", "namespace" : "isaacs", "name" : "node-glob", "revision" : "f65f9eb7eda113528c5257b58fac4ca685ee6c4f", "url" : "https://github.com/isaacs/node-glob/tree/f65f9eb7eda113528c5257b58fac4ca685ee6c4f" }, "projectWebsite" : "https://github.com/isaacs/node-glob#readme", "issueTracker" : "https://github.com/isaacs/node-glob/issues", "tools" : [ "clearlydefined/1.1.3", "scancode/2.9.2", "fossology/3.3.0" ], "toolScore" : { "total" : 100, "date" : 30, "source" : 70 }, "score" : { "total" : 100, "date" : 30, "source" : 70 } }, "licensed" : { "declared" : "ISC", "toolScore" : { "total" : 64, "declared" : 30, "discovered" : 4, "consistency" : 15, "spdx" : 15, "texts" : 0 }, "facets" : { "core" : { "attribution" : { "unknown" : 6, "parties" : [ "Copyright (c) Isaac Z. Schlueter and Contributors" ] }, "discovered" : { "unknown" : 5, "expressions" : [ "ISC" ] }, "files" : 7 } }, "score" : { "total" : 64, "declared" : 30, "discovered" : 4, "consistency" : 15, "spdx" : 15, "texts" : 0 } }, "coordinates" : { "type" : "npm", "provider" : "npmjs", "name" : "glob", "revision" : "7.1.0" }, "_meta" : { "schemaVersion" : "1.3.0", "updated" : "2019-01-10T21:43:52.112Z" } }]

docker-compose.yml

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
version: "3.8"
22
services:
3-
web:
4-
build:
5-
context: ../website
6-
dockerfile: DevDockerfile
7-
ports:
8-
- "3000:3000"
9-
env_file: .env
10-
stdin_open: true
3+
# web:
4+
# build:
5+
# context: ../website
6+
# dockerfile: DevDockerfile
7+
# ports:
8+
# - "3000:3000"
9+
# env_file: .env
10+
# stdin_open: true
1111
service:
1212
build:
1313
context: ../service
1414
dockerfile: DevDockerfile
15-
env_file: .env
1615
ports:
1716
- "4000:4000"
1817
env_file: .env
@@ -21,21 +20,32 @@ services:
2120
# env_file: .env
2221
# ports:
2322
# - "5000:5000"
24-
curations_mongo_db:
23+
# curations_mongo_db:
24+
# image: "mongo:latest"
25+
# ports:
26+
# - "27017:27017"
27+
# environment:
28+
# - MONGO_INITDB_DATABASE=curations-dev-docker
29+
# - MONGO_INITDB_ROOT_USERNAME=admin
30+
# - MONGO_INITDB_ROOT_PASSWORD=secret
31+
clearlydefined_mongo_db:
2532
image: "mongo:latest"
2633
ports:
2734
- "27017:27017"
35+
networks:
36+
- dev
2837
environment:
29-
- MONGO_INITDB_DATABASE=curations-dev-docker
38+
- MONGO_INITDB_DATABASE=clearlydefined
3039
- MONGO_INITDB_ROOT_USERNAME=admin
3140
- MONGO_INITDB_ROOT_PASSWORD=secret
32-
# definitions_mongo_db:
33-
# image: "mongo:latest"
34-
# ports:
35-
# - "27018:27018"
36-
# environment:
37-
# - MONGO_INITDB_DATABASE=definitions-dev-docker
38-
# - MONGO_INITDB_ROOT_USERNAME=admin
39-
# - MONGO_INITDB_ROOT_PASSWORD=secret
40-
41+
definitions_seed:
42+
build: ./definitions_seed
43+
networks:
44+
- dev
45+
depends_on:
46+
- clearlydefined_mongo_db
4147

48+
networks:
49+
dev:
50+
name: dev
51+
driver: bridge

0 commit comments

Comments
 (0)