Skip to content

Commit aae7279

Browse files
authored
Merge pull request #4 from KnowWhereGraph/feature-docker-compose
Feature docker compose
2 parents cea3a70 + 279517d commit aae7279

File tree

5 files changed

+57
-1
lines changed

5 files changed

+57
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ Production deployments should deploy the application by building and serving the
4040
To build the node explorer,
4141

4242
```
43-
ng build --configuration=prod
43+
ng build --configuration=production
44+
```
45+
46+
This can also be done by using the Dockerfile for a more reliable build environment with
47+
48+
```
49+
docker-compose -f docker-compose.prod.yaml up
50+
4451
```
4552

4653
### Staging
@@ -51,6 +58,27 @@ Staging builds are done similarly to production with
5158
ng build --configuration=stage
5259
```
5360

61+
This can also be done by using the Dockerfile for a more reliable build environment with
62+
63+
```
64+
docker-compose -f docker-compose.stage.yaml up
65+
```
66+
67+
### Local
68+
69+
Builds that point to local GraphDB can be achieved with
70+
71+
72+
```
73+
ng build --configuration=local
74+
```
75+
76+
This can also be done by using the Dockerfile for a more reliable build environment with
77+
78+
```
79+
docker-compose -f docker-compose.local.yaml up
80+
```
81+
5482
## Developing
5583

5684
The standard Git Flow: create a feature branch off of the `develop` branch and make pull requests into it. For full releases, merge from the `develop` branch into `main`.

node-browser/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM amd64/node:lts-buster-slim
2+
3+
RUN mkdir /app
4+
WORKDIR /app
5+
6+
COPY package.json package-lock.json ./
7+
RUN npm i
8+
RUN npm install -g @angular/cli
9+
10+
COPY . .
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
node-explorer:
3+
build: '.'
4+
volumes:
5+
- ./dist/:/app/dist/
6+
entrypoint: ["ng","build","--configuration=local"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
node-explorer:
3+
build: '.'
4+
volumes:
5+
- ./dist/:/app/dist/
6+
entrypoint: ["ng","build","--configuration=stage"]

node-browser/docker-compose.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
node-explorer:
3+
build: '.'
4+
volumes:
5+
- ./dist/:/app/dist/
6+
entrypoint: ["ng","build","--configuration=production"]

0 commit comments

Comments
 (0)