created start files for development runs

This commit is contained in:
dcore94 2020-10-02 14:59:21 +02:00
parent 527b22d6d3
commit 1580912117
3 changed files with 65 additions and 0 deletions

25
docker-compose-bare.yml Normal file
View File

@ -0,0 +1,25 @@
version: '3'
services:
conductor:
image: "nubisware/netflixoss-conductor:latest"
container_name: conductorserver
ports:
- "5000:5000"
- "8080:8080"
environment:
- "loadExample=false"
networks:
- orchestrator
init:
build: .
image: init
networks:
- orchestrator
volumes:
- ./resources:/var/resources:ro
- ./scripts:/var/scripts:ro
entrypoint: /var/scripts/entrypoint-noworkflows.sh
networks:
- orchestrator
networks:
orchestrator:

View File

@ -0,0 +1,26 @@
version: '3'
services:
conductor:
image: "nubisware/netflixoss-conductor:latest"
container_name: conductorserver
ports:
- "5000:5000"
- "8080:8080"
environment:
- "loadExample=false"
- "log4j2.debug=true"
networks:
- orchestrator
init:
build: .
image: init
networks:
- orchestrator
volumes:
- ./resources:/var/resources:ro
- ./scripts:/var/scripts:ro
entrypoint: /var/scripts/entrypoint.sh
networks:
- orchestrator
networks:
orchestrator:

View File

@ -0,0 +1,14 @@
#!/bin/sh
export BASE="http://conductorserver:8080/api"
echo "Waiting for conductor ..."
until $(curl --output /dev/null --silent --fail $BASE/health); do
echo 'still waiting ...'
sleep 5
done
echo 'Contact ... starting upload'
curl -s -o /dev/null -w "%{http_code}\n" -X POST -H 'Content-Type: application/json' -d @/var/resources/tasks/pytasks.json $BASE/metadata/taskdefs
#curl -s -o /dev/null -w "%{http_code}\n" -X POST -H 'Content-Type: application/json' -d @/var/resources/workflows/portal/group_deleted.json $BASE/metadata/workflow