initial commit
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-02-28 10:34:14 +01:00
parent b2d26d193f
commit 9dfd8fcbaf
2 changed files with 101 additions and 0 deletions

50
.drone.yml Normal file
View File

@ -0,0 +1,50 @@
---
kind: pipeline
name: default
steps:
- name: dryrun
pull: always
image: plugins/docker:linux-amd64
settings:
dry_run: true
password:
from_secret: docker_password
repo: xoxys/molecule-gce
tags: linux-amd64
username:
from_secret: docker_username
when:
event:
- push
- tag
- name: publish
pull: always
image: plugins/docker:linux-amd64
settings:
auto_tag: true
password:
from_secret: docker_password
repo: xoxys/molecule-gce
username:
from_secret: docker_username
when:
event:
- push
- tag
# - name: notify
# image: plugins/matrix
# settings:
# homeserver: https://matrix.rknet.org
# roomid: MtidqQXWWAtQcByBhH:rknet.org
# template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> Message: {{ build.message }}"
# username:
# from_secret: matrix_username
# password:
# from_secret: matrix_password
# when:
# status:
# - success
# - failure

51
Dockerfile Normal file
View File

@ -0,0 +1,51 @@
FROM python:3.7-alpine
LABEL maintainer "Robert Kaussow <mail@geeklabor.de>"
ENV PACKAGES="\
gcc \
make \
bash \
shadow \
libffi-dev \
musl-dev \
openssl-dev \
py-pip \
python \
python-dev \
linux-headers \
sudo \
rsync \
curl \
ruby \
ruby-dev \
ruby-etc \
ruby-rdoc \
ruby-irb \
git \
openssh-client \
"
ENV PIP_PACKAGES="\
molecule[azure,docker,docs,ec2,gce,lxc,openstack,vagrant,windows] \
virtualenv \
apache-libcloud \
pycrypto
"
ENV GEM_PACKAGES="\
rubocop \
"
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 \
&& mkdir /root/.ssh \
&& chmod 700 /root/.ssh \
&& gem install ${GEM_PACKAGES}
USER root
ENV SHELL /bin/bash