new release

This commit is contained in:
dcore94 2020-10-30 19:19:31 +01:00
parent 4526d0c999
commit d11b7d83ab
9 changed files with 68 additions and 2 deletions

10
build-base.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
if [ $# -eq 0 ]
then
tag='latest'
else
tag=$1
fi
docker build -t nubisware/nubisware-conductor-worker-py-base:$tag -f docker/base/Dockerfile .
docker push nubisware/nubisware-conductor-worker-py-base:$tag

10
build-provisioning.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
if [ $# -eq 0 ]
then
tag='latest'
else
tag=$1
fi
docker build -t nubisware/nubisware-conductor-worker-py-provisioning:$tag -f docker/provisioning/Dockerfile .
#docker push nubisware/nubisware-conductor-worker-py-provisioning:$tag

View File

@ -1,11 +1,10 @@
[common]
loglevel = info
loglevel = debug
server = http://conductorserver:8080/api
#server = http://localhost:8080/api
threads = 3
pollrate = .1
#domain = comma separated list of task domains to be applied to all task types as fallback
domain = marco
[pyexec]
#domain = comma separated list of task domains to be applied to pyexec task type

8
docker/base/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM python:3.7
COPY ./docker/base/requirements.txt /app/
RUN pip install -r /app/requirements.txt
COPY conductor/ /app/conductor
COPY pyexecplugins/ /app/pyexecplugins
COPY ./docker/base/requirements.txt PyExec.py config.cfg ./docker/base/entrypoint.sh /app/
WORKDIR /app
ENTRYPOINT ["/app/entrypoint.sh"]

14
docker/base/entrypoint.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
export BASE=${CONDUCTOR_SERVER:-http://conductorserver:8080/api}
echo 'Waiting for Conductor at ' $BASE '...'
while [[ "$(curl -s -o /dev/null -L -w ''%{http_code}'' $BASE/health)" != 200 ]]; do
echo 'still waiting ...'
sleep 5
done
echo 'Starting default workers...'
python3 PyExec.py Http Shell Eval

View File

@ -0,0 +1,2 @@
requests >= 2.19.1

View File

@ -0,0 +1,8 @@
FROM nubisware/nubisware-conductor-worker-py-base:latest
COPY ./docker/provisioning/requirements.txt /app/
RUN pip install -r /app/requirements.txt
RUN apt-get update
RUN apt-get -y install packer
WORKDIR /app
COPY ./docker/base/entrypoint.sh /app/
ENTRYPOINT ["/app/entrypoint.sh"]

View File

@ -0,0 +1,14 @@
#!/bin/bash
export BASE=${CONDUCTOR_SERVER:-http://conductorserver:8080/api}
echo 'Waiting for Conductor ...'
while [[ "$(curl -s -o /dev/null -L -w ''%{http_code}'' $BASE/health)" != 200 ]]; do
echo 'still waiting ...'
sleep 5
done
echo 'Starting provisioning workers...'
python3 PyExec.py Ansible Packer

View File

@ -0,0 +1 @@
ansible >= 2.8