add digital ocean image

This commit is contained in:
Robert Kaussow 2019-09-23 08:29:40 +02:00
parent ee74d2f776
commit 35762fb11a
4 changed files with 59 additions and 9 deletions

View File

@ -63,6 +63,25 @@ local PipelineNotifications(depends_on=[]) = {
branch: [ "master" ], branch: [ "master" ],
}, },
}, },
{
name: "readme",
image: "sheogorath/readme-to-dockerhub",
pull: "always",
environment: {
DOCKERHUB_USERNAME: { from_secret: "docker_username" },
DOCKERHUB_PASSWORD: { from_secret: "docker_password" },
DOCKERHUB_REPO_PREFIX: "xoxys",
DOCKERHUB_REPO_NAME: "molecule",
README_PATH: "README.md",
SHORT_DESCRIPTION: "Molecule - Automated Ansible roles testing"
},
when: {
ref: [
'refs/heads/master',
'refs/tags/**',
],
},
},
{ {
name: "microbadger", name: "microbadger",
image: "plugins/webhook", image: "plugins/webhook",

View File

@ -0,0 +1,39 @@
FROM python:3.7-alpine
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
org.label-schema.name="molecule" \
org.label-schema.vcs-url="https://gitea.rknet.org/docker/molecule" \
org.label-schema.vendor="Robert Kaussow" \
org.label-schema.schema-version="1.0"
ENV PACKAGES="\
gcc \
make \
bash \
libffi-dev \
musl-dev \
openssl-dev \
python-dev \
git \
openssh-client \
"
ENV PIP_PACKAGES="\
ansible~=2.7.0 \
molecule[digitalocean] \
virtualenv \
pycrypto \
"
COPY ./ec2-entrypoint.sh /docker-entrypoint.sh
RUN \
apk update \
&& apk add --update --no-cache ${PACKAGES} \
&& rm -rf /var/cache/apk/* \
&& pip install --upgrade pip \
&& pip install --no-cache-dir ${PIP_PACKAGES} \
&& rm -rf /root/.cache \
USER root
ENTRYPOINT ["/docker-entrypoint.sh"]

View File

@ -13,10 +13,6 @@ if [ "${MOLECULE_CUSTOM_MODULES_REPO}" ]; then
fi fi
if [ "${MOLECULE_CUSTOM_FILTERS_REPO}" ]; then if [ "${MOLECULE_CUSTOM_FILTERS_REPO}" ]; then
mkdir -p ./plugins/filters/ mkdir -p ./plugins/filters/
git clone "$MOLECULE_CUSTOM_FILTERS_REPO" ./plugins/filters/ git clone "$MOLECULE_CUSTOM_FILTERS_REPO" ./plugins/filters/
fi fi
if [ -f "$MOLECULE_REQUIREMENTS_FILE" ]; then
ansible-galaxy install --force -r "$MOLECULE_REQUIREMENTS_FILE" -p "$ANSIBLE_ROLES_PATH"
fi

View File

@ -27,7 +27,3 @@ if [ "${MOLECULE_CUSTOM_FILTERS_REPO}" ]; then
mkdir -p ./plugins/filters/ mkdir -p ./plugins/filters/
git clone "$MOLECULE_CUSTOM_FILTERS_REPO" ./plugins/filters/ git clone "$MOLECULE_CUSTOM_FILTERS_REPO" ./plugins/filters/
fi fi
if [ -f "$MOLECULE_REQUIREMENTS_FILE" ]; then
ansible-galaxy install --force -r "$MOLECULE_REQUIREMENTS_FILE" -p "$ANSIBLE_ROLES_PATH"
fi