From 394126f1abd09f1fa2bd88d5c3e7c4fc201134e4 Mon Sep 17 00:00:00 2001 From: Jan Vales Date: Fri, 2 Nov 2018 19:38:58 +0100 Subject: [PATCH] docker-composify setup and create base (docker) directories for our services. --- Vagrantfile | 7 +++++++ camunda-aic-overlay/Dockerfile | 6 ++++++ docker-compose.yml | 36 ++++++++++++++++++++++++++++++++++ provision.sh | 7 +++---- service-analysis/Dockerfile | 1 + service-fallback/Dockerfile | 1 + service-reporting/Dockerfile | 1 + service-twitter/Dockerfile | 1 + 8 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 docker-compose.yml create mode 100644 service-analysis/Dockerfile create mode 100644 service-fallback/Dockerfile create mode 100644 service-reporting/Dockerfile create mode 100644 service-twitter/Dockerfile diff --git a/Vagrantfile b/Vagrantfile index 9152723..d3d641b 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -10,4 +10,11 @@ Vagrant.configure("2") do |config| config.vm.provision "shell", inline: "/vagrant/provision.sh" config.vm.network "forwarded_port", guest: 8080, host: 8080 + + # only for debugging reasons? + config.vm.network "forwarded_port", guest: 8081, host: 8081 + config.vm.network "forwarded_port", guest: 8081, host: 8082 + config.vm.network "forwarded_port", guest: 8082, host: 8083 + config.vm.network "forwarded_port", guest: 8083, host: 8084 + end diff --git a/camunda-aic-overlay/Dockerfile b/camunda-aic-overlay/Dockerfile index 8fd58a3..a840279 100644 --- a/camunda-aic-overlay/Dockerfile +++ b/camunda-aic-overlay/Dockerfile @@ -2,3 +2,9 @@ FROM camunda/camunda-bpm-platform:tomcat-latest # We can/should do some magic here #-> e.g. change config to make another user/pw combinations. + +RUN rm -r /camunda/webapps/camunda-invoice +#RUN rm -r /camunda/webapps/h2 +RUN rm -r /camunda/webapps/examples + +COPY aic.bpmn /camunda/webapps/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..edd6b9f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,36 @@ +version: '2' +services: + camunda: + build: ./camunda-aic-overlay + ports: + - "8080:8080" + restart: always + depends_on: + - service-analysis + - service-fallback + - service-reporting + - service-twitter + + service-analysis: + build: ./service-analysis + ports: + - "8081:8081" + restart: always + + service-fallback: + build: ./service-fallback + ports: + - "8082:8082" + restart: always + + service-reporting: + build: ./service-reporting + ports: + - "8083:8083" + restart: always + + service-twitter: + build: ./service-twitter + ports: + - "8084:8084" + restart: always diff --git a/provision.sh b/provision.sh index fa746ed..7b3179e 100755 --- a/provision.sh +++ b/provision.sh @@ -6,8 +6,7 @@ apt update apt install -y docker.io docker-compose # camunda install -docker build -t camunda-aic-overlay camunda-aic-overlay -docker run -d --name camunda -p 8080:8080 camunda-aic-overlay:latest - -# docker-compose up +#docker build -t camunda-aic-overlay camunda-aic-overlay +#docker run -d --name camunda -p 8080:8080 camunda-aic-overlay:latest +docker-compose up --build diff --git a/service-analysis/Dockerfile b/service-analysis/Dockerfile new file mode 100644 index 0000000..b09b037 --- /dev/null +++ b/service-analysis/Dockerfile @@ -0,0 +1 @@ +FROM alpine:latest diff --git a/service-fallback/Dockerfile b/service-fallback/Dockerfile new file mode 100644 index 0000000..b09b037 --- /dev/null +++ b/service-fallback/Dockerfile @@ -0,0 +1 @@ +FROM alpine:latest diff --git a/service-reporting/Dockerfile b/service-reporting/Dockerfile new file mode 100644 index 0000000..b09b037 --- /dev/null +++ b/service-reporting/Dockerfile @@ -0,0 +1 @@ +FROM alpine:latest diff --git a/service-twitter/Dockerfile b/service-twitter/Dockerfile new file mode 100644 index 0000000..b09b037 --- /dev/null +++ b/service-twitter/Dockerfile @@ -0,0 +1 @@ +FROM alpine:latest -- 2.43.0