1
This commit is contained in:
commit
72c4d16448
37 files changed
+1126
No files matched your search
@@ -0,0 +1,39 @@
|
||||
FROM almalinux:9
|
||||
|
||||
ENV container=docker
|
||||
|
||||
# Install requirements.
|
||||
RUN yum -y install rpm dnf-plugins-core \
|
||||
&& yum -y config-manager --set-enabled crb \
|
||||
&& yum -y update \
|
||||
&& yum -y install --allowerasing \
|
||||
epel-release \
|
||||
sudo \
|
||||
which \
|
||||
hostname \
|
||||
libyaml-devel \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-pyyaml \
|
||||
rsync \
|
||||
wget \
|
||||
curl \
|
||||
git \
|
||||
ruby \
|
||||
&& yum clean all
|
||||
|
||||
RUN python3 -m pip install --no-cache-dir --upgrade pip \
|
||||
&& pip3 install --no-cache-dir ansible
|
||||
|
||||
RUN ansible-galaxy collection install community.general && \
|
||||
ansible-galaxy collection install ansible.posix && \
|
||||
ansible-galaxy collection install community.docker && \
|
||||
ansible-galaxy collection list
|
||||
|
||||
RUN mkdir -p /root/.ssh
|
||||
|
||||
# Disable requiretty.
|
||||
RUN sed -i -e 's/^\(Defaults\s*requiretty\)/#--- \1/' /etc/sudoers
|
||||
|
||||
CMD ["ansible-playbook"]
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
collections:
|
||||
- community.general
|
||||
- ansible.posix
|
||||
- community.docker
|
||||
@@ -0,0 +1,19 @@
|
||||
FROM debian:bullseye
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y gnupg2 python3 python3-pip curl wget && \
|
||||
apt update && \
|
||||
apt install -y ansible && \
|
||||
pip3 install "ansible-lint[community,yamllint]" && \
|
||||
pip3 install --upgrade docker && \
|
||||
pip3 install --upgrade docker-compose && \
|
||||
rm -rf /var/cache/apk/*
|
||||
|
||||
RUN ansible-galaxy collection install \
|
||||
community.docker
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
CMD ["ansible-playbook"]
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
## Do whatever you need with env vars here ...
|
||||
|
||||
chmod 0600 ${PROJECT_SSH_KEY}
|
||||
|
||||
# Hand off to the CMD
|
||||
exec "$@"
|
||||
@@ -0,0 +1,18 @@
|
||||
FROM python:3.10
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install sshpass rsync curl wget ruby socat netcat git -y && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip install --upgrade pip --no-cache-dir && \
|
||||
pip install ansible --no-cache-dir
|
||||
|
||||
RUN ansible-galaxy collection install community.general && \
|
||||
ansible-galaxy collection install ansible.posix && \
|
||||
ansible-galaxy collection install community.docker && \
|
||||
ansible-galaxy collection list
|
||||
|
||||
RUN mkdir -p /root/.ssh
|
||||
|
||||
CMD ["ansible-playbook"]
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
collections:
|
||||
- community.general
|
||||
- ansible.posix
|
||||
- community.docker
|
||||
Reference in new issue
Block a user