add digital ocean image
This commit is contained in:
parent
ee74d2f776
commit
35762fb11a
@ -63,6 +63,25 @@ local PipelineNotifications(depends_on=[]) = {
|
||||
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",
|
||||
image: "plugins/webhook",
|
||||
|
39
docker/Dockerfile.do.linux.amd64
Normal file
39
docker/Dockerfile.do.linux.amd64
Normal 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"]
|
@ -16,7 +16,3 @@ if [ "${MOLECULE_CUSTOM_FILTERS_REPO}" ]; then
|
||||
mkdir -p ./plugins/filters/
|
||||
git clone "$MOLECULE_CUSTOM_FILTERS_REPO" ./plugins/filters/
|
||||
fi
|
||||
|
||||
if [ -f "$MOLECULE_REQUIREMENTS_FILE" ]; then
|
||||
ansible-galaxy install --force -r "$MOLECULE_REQUIREMENTS_FILE" -p "$ANSIBLE_ROLES_PATH"
|
||||
fi
|
||||
|
@ -27,7 +27,3 @@ if [ "${MOLECULE_CUSTOM_FILTERS_REPO}" ]; then
|
||||
mkdir -p ./plugins/filters/
|
||||
git clone "$MOLECULE_CUSTOM_FILTERS_REPO" ./plugins/filters/
|
||||
fi
|
||||
|
||||
if [ -f "$MOLECULE_REQUIREMENTS_FILE" ]; then
|
||||
ansible-galaxy install --force -r "$MOLECULE_REQUIREMENTS_FILE" -p "$ANSIBLE_ROLES_PATH"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user