Skip to content

Commit

Permalink
the images are pushed to dockerhub. Docker compose is not building an…
Browse files Browse the repository at this point in the history
…y images anymore
  • Loading branch information
lext committed Dec 14, 2019
1 parent 4bdc08f commit 0fc7ed4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 22 deletions.
12 changes: 3 additions & 9 deletions docker/docker-compose-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ services:
depends_on:
- kneel
- deepknee-backend
build:
context: ../deepknee-backend-broker
dockerfile: ../docker/BrokerDockerfile
image: "miptmloulu/deepknee:broker"
container_name: backend-broker
ports:
- "5002:5002"
Expand All @@ -62,13 +60,9 @@ services:
- kneel
- deepknee-backend
- backend-broker
build:
context: ../deepknee-frontend
dockerfile: ../docker/UIDockerfile
args:
- REACT_APP_BROKER_PORT=5002
image: "miptmloulu/deepknee:ui"
container_name: ui
ports:
- "5003:5003"
working_dir: /usr/src/app/
entrypoint: ["react-scripts", "start"] ##["serve", "-l", "5003", "-s", "/usr/src/app/build"]
entrypoint: ["serve", "-l", "5003", "-s", "/usr/src/app/build"]
17 changes: 5 additions & 12 deletions docker/docker-compose-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ services:
"--lc_snapshot_path", "/snapshots/lext-devbox_2019_07_14_16_04_41",
"--hc_snapshot_path", "/snapshots/lext-devbox_2019_07_14_19_25_40",
"--refine", "True", "--mean_std_path", "/snapshots/mean_std.npy",
"--deploy", "True", "--device", "cuda", "--port", "5000", "--logs", "/logs/kneel-gpu.log"]
"--deploy", "True", "--device", "cuda",
"--port", "5000", "--logs", "/logs/kneel-gpu.log"]
deepknee-backend:
runtime: nvidia
depends_on:
Expand Down Expand Up @@ -46,9 +47,7 @@ services:
depends_on:
- kneel
- deepknee-backend
build:
context: ../deepknee-backend-broker
dockerfile: ../docker/BrokerDockerfile
image: "miptmloulu/deepknee:broker"
container_name: backend-broker
ports:
- "5002:5002"
Expand All @@ -65,14 +64,8 @@ services:
- kneel
- deepknee-backend
- backend-broker
build:
context: ../deepknee-frontend
dockerfile: ../docker/UIDockerfile
args:
- REACT_APP_BROKER_PORT=5002
environment:
- PORT=5003
image: "miptmloulu/deepknee:ui"
container_name: ui
ports:
- "5003:5003"
entrypoint: ["react-scripts", "start"] ##["serve", "-l", "5003", "-s", "/usr/src/app/build"]
entrypoint: ["serve", "-l", "5003", "-s", "/usr/src/app/build"]
8 changes: 7 additions & 1 deletion rebuild_docker_images.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
#!/usr/bin/env bash
# This script must be built on a linux machine

# DeepKnee REST microservice images
docker build -t miptmloulu/deepknee:gpu -f docker/Dockerfile.gpu .
docker build -t miptmloulu/deepknee:cpu -f docker/Dockerfile.cpu .
docker build --build-arg REACT_APP_BROKER_PORT=5002 -t miptmloulu/deepknee:ui -f docker/UIDockerfile deepknee-frontend
docker build -t miptmloulu/deepknee:broker -f docker/BrokerDockerfile deepknee-backend-broker

# Frontend and Backend
docker push miptmloulu/deepknee:cpu && docker push miptmloulu/deepknee:gpu
docker push miptmloulu/deepknee:broker && docker push miptmloulu/deepknee:ui

# Frontend and Backend broker

0 comments on commit 0fc7ed4

Please sign in to comment.