Unverified Commit e0c65376 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

initial commit

parents
Pipeline #7764 canceled with stage
---
default:
image: $CI_REGISTRY/ansgar/ansible-containers/podman:latest
tags:
- podman
before_script:
- podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
build-podman: &build
script:
- podman build -t ${image_name}:latest containers/${image_name}
- podman push ${image_name}:latest
variables:
image_name: podman
build-ansible:
<<: *build
dependencies:
- build-podman
variables:
image_name: ansible
build-host:
<<: *build
variables:
image_name: host
all:
buildah bud --tag base:latest base
FROM gitlab.mn.tu-dresden.de/ansible-containers/podman:latest
RUN virtualenv /srv/venv
RUN . /srv/venv/bin/activate && pip install ansible ansible-lint "molecule[podman]"
FROM quay.io/official-images/debian:11
RUN apt-get update \
&& apt-get install --no-install-recommends --yes \
acl \
ca-certificates \
dbus \
iproute2 \
iputils-ping \
libpam-systemd \
openssh-server \
procps \
python3 \
python3-apt \
python3-cryptography \
systemd \
&& apt-get clean && rm -rf /var/cache/apt/* /var/lib/apt/lists/* \
&& rm -f /etc/ssh/ssh_host_*_key* /usr/sbin/policy-rc.d
COPY ssh-keygen.service /etc/systemd/system/
RUN systemctl enable ssh-keygen.service
ENTRYPOINT ["/lib/systemd/systemd"]
[Unit]
Description=Generate SSH host keys
Documentation=man:ssh-keygen(1)
ConditionPathExists=!/etc/ssh/ssh_host_ed25519_key
Before=ssh.service
[Service]
ExecStart=/usr/bin/ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -t ed25519 -N ""
Type=oneshot
[Install]
WantedBy=ssh.service
FROM quay.io/official-images/debian:11
RUN apt-get update \
&& apt-get install --no-install-recommends --yes \
acl \
buildah \
ca-certificates \
flake8 \
iproute2 \
iputils-ping \
openssh-client \
podman \
procps \
python3 \
python3-apt \
python3-cryptography \
python3-virtualenv \
yamllint \
&& apt-get clean && rm -rf /var/cache/apt/* /var/lib/apt/lists/*
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment