new release
This commit is contained in:
parent
4526d0c999
commit
d11b7d83ab
|
@ -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
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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"]
|
|
@ -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
|
|
@ -0,0 +1,2 @@
|
|||
requests >= 2.19.1
|
||||
|
|
@ -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"]
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
ansible >= 2.8
|
Loading…
Reference in New Issue