Initial commit

This commit is contained in:
Danny Bessems 2022-04-23 12:36:25 +02:00
commit 576e61867c
3 changed files with 93 additions and 0 deletions

51
.drone.yml Normal file
View File

@ -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

40
Dockerfile Normal file
View File

@ -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 []

2
README.md Normal file
View File

@ -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)