commit 576e61867c497c36326f4a0a8a02c1b545276ad4 Author: djpbessems Date: Sat Apr 23 12:36:25 2022 +0200 Initial commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..42200ef --- /dev/null +++ b/.drone.yml @@ -0,0 +1,51 @@ +kind: pipeline +type: kubernetes +name: Harbor + +steps: +- name: build & publish + image: plugins/docker + context: . + settings: + repo: bv11-cr01.bessems.eu/library/ansible-extended + registry: bv11-cr01.bessems.eu + tags: latest + mtu: 1450 + username: + from_secret: harbor_username + password: + from_secret: harbor_password + build_args_from_env: + - REPO_USERNAME + - REPO_PASSWORD + environment: + REPO_USERNAME: + from_secret: repo_username + REPO_PASSWORD: + from_secret: repo_password + +--- +kind: pipeline +type: kubernetes +name: Dockerhub + +steps: +- name: build & publish + image: plugins/docker + context: . + settings: + repo: djpbessems/ansible-extended + tags: latest + mtu: 1450 + username: + from_secret: docker_username + password: + from_secret: docker_password + build_args_from_env: + - REPO_USERNAME + - REPO_PASSWORD + environment: + REPO_USERNAME: + from_secret: repo_username + REPO_PASSWORD: + from_secret: repo_password diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e319d13 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,40 @@ +#FROM alpine:latest AS download + +FROM debian:11-slim + +ENV LANG en_US.UTF-8 +ENV LANGUAGE en_US:en +ENV LC_ALL en_US.UTF-8 + +RUN apt-get upgrade -y && apt-get install -y --no-install-recommends \ + curl \ + git \ + jq \ + locales \ + netcat-openbsd \ + openssh-client \ + # (python3-*) Dependency for installation of Ansible + python3-pip \ + python3-setuptools \ + python3-wheel \ + yamllint && \ + sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen && \ + pip3 install --upgrade pip && \ + pip3 install \ + ansible-core \ + # (jmespath) Dependency for Ansible 'json_query' filter + jmespath \ + # (netaddr) Dependency for Ansible 'ipaddr' filter + netaddr \ + # (pyvmomi & requests) Dependency for Ansible 'vmware_guest' module + pyvmomi \ + requests && \ + apt-get remove -y \ + curl && \ + apt-get autoremove -y && \ + rm -rf /var/lib/apt/lists/* && \ + rm -f /tmp/ovftool-installer + +ENTRYPOINT [] +CMD [] diff --git a/README.md b/README.md new file mode 100644 index 0000000..c216af7 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# ContainerImage.AnsibleExtended [![Build Status](https://ci.spamasaurus.com/api/badges/djpbessems/ContainerImage.AnsibleExtended/status.svg)](https://code.spamasaurus.com/djpbessems/ContainerImage.AnsibleExtended) +