Browse Source

enables sharing volumes between host and container.

Signed-off-by: Nicholas Tan Jerome <nicholas.jerome@kit.edu>
Nicholas Tan Jerome 6 years ago
parent
commit
1c2bd4339c
3 changed files with 5 additions and 3 deletions
  1. 2 2
      Dockerfile
  2. 2 0
      docker-compose.yaml
  3. 1 1
      trigger.sh

+ 2 - 2
Dockerfile

@@ -2,8 +2,8 @@ FROM alpine:3.1
 
 RUN apk add --update python py-pip
 
-COPY . /APP
-WORKDIR /APP
+COPY . /tmp
+WORKDIR /tmp
 RUN pip install -r requirements.txt
 
 EXPOSE  8001

+ 2 - 0
docker-compose.yaml

@@ -4,5 +4,7 @@ services:
     build: .
     ports:
      - "8001:8001"
+    volumes:
+        - /Users/ntj/Development/BORA/CPS:/tmp
   redis:
     image: "redis:alpine"

+ 1 - 1
trigger.sh

@@ -1,3 +1,3 @@
 # This is a manual trigger to the CPS pod at the OpenShift platform.
 # Only run this when the webhook is not working.
-curl -X POST -k https://kaas.kit.edu:8443/oapi/v1/namespaces/bora/buildconfigs/cps/webhooks/46b5d3683ec5f1db/generic
+curl -X POST -k https://kaas.kit.edu:8443/oapi/v1/namespaces/bora/buildconfigs/cps/webhooks/<SECRET>/generic