rewrite php Jenkinsfile

This commit is contained in:
2020-04-05 13:32:42 -04:00
parent 7d969cb7ae
commit 42b5ffd95a
4 changed files with 64 additions and 27 deletions

View File

@@ -0,0 +1,9 @@
# php Robo task runner container
#
FROM dkregistry.xai-corp.net:5000/xaicorp/php:7.2-dev
MAINTAINER Richard Morgan <r_morgan@sympatico.ca>
RUN wget http://robo.li/robo.phar \
&& chmod +x robo.phar && sudo mv robo.phar /usr/bin/robo
ENTRYPOINT ['/usr/bin/robo']

12
dockerfiles/tasks/robo/build.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
#if [[ -z "${DKREGISTRY_PASS}" ]]; then
# docker login -u richard -p $DKREGISTRY_PASS $DKREGISTRY
#fi
docker build --rm -f Dockerfile -t xaicorp/php-robo .
docker run --rm xaicorp/php-robo --version | grep 'ansible 2.0.'
docker tag xaicorp/php-robo dkregistry.xai-corp.net:5000/xaicorp/php-robo
#docker push dkregistry.xai-corp.net:5000/xaicorp/php-robo