diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..fb9323d --- /dev/null +++ b/.drone.yml @@ -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 }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message: {{ build.message }}" + # username: + # from_secret: matrix_username + # password: + # from_secret: matrix_password + # when: + # status: + # - success + # - failure diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2b169b6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,51 @@ +FROM python:3.7-alpine +LABEL maintainer "Robert Kaussow " + +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