init commit
This commit is contained in:
commit
053c80e015
2 changed files with 34 additions and 0 deletions
0
.forgejo/workflows/build.yml
Normal file
0
.forgejo/workflows/build.yml
Normal file
34
Dockerfile
Normal file
34
Dockerfile
Normal file
|
@ -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" ]
|
Loading…
Add table
Reference in a new issue