From 053c80e0155dd7335b97ca1dc2e34da27510f8f6 Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Sun, 12 Jan 2025 17:01:22 -0500 Subject: [PATCH] init commit --- .forgejo/workflows/build.yml | 0 Dockerfile | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .forgejo/workflows/build.yml create mode 100644 Dockerfile diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..e69de29 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f3df69e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,34 @@ +FROM willhallonline/ansible:2.17-ubuntu-24.04 + +# Remove externally managed Python restriction +RUN rm -rf /usr/lib/python3.12/EXTERNALLY-MANAGED + +# Install Python dependencies for Bitwarden and Docker +RUN pip install --no-cache-dir bitwarden-sdk + +# Install Ansible collections +RUN ansible-galaxy collection install bitwarden.secrets +RUN ansible-galaxy collection install community.docker + +# Install required packages and dependencies +RUN apt-get update && apt-get install -y \ + libssl3 \ + curl \ + git \ + nodejs \ + && apt-get clean + +# Install Rust using rustup +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + +# Ensure Rust binaries are added to the PATH +ENV PATH="/root/.cargo/bin:${PATH}" + +# Install the bws tool using Cargo +RUN cargo install bws + +ENV PYTHONPATH=/usr/local/lib/python3.12/dist-packages:${PYTHONPATH} + +WORKDIR /ansible + +CMD [ "ansible-playbook", "--version" ]