mirror of
https://github.com/ublue-os/forge.git
synced 2025-07-04 16:55:45 +03:00
feat(main): ditch ansible-semaphore and use ansible directly
This commit is contained in:
parent
22a4db5835
commit
2e8cc2f51a
30 changed files with 940 additions and 1440 deletions
20
ansible/Containerfile
Normal file
20
ansible/Containerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Source Image
|
||||
FROM docker.io/library/python:3.11-alpine3.19
|
||||
|
||||
# Environment vars
|
||||
ENV PIPX_BIN_DIR="/usr/local/py-utils"
|
||||
ENV PIPX_HOME="/usr/local/pipx"
|
||||
ENV POETRY_VERSION="1.8.2"
|
||||
ENV POETRY_VIRTUALENVS_CREATE="true"
|
||||
ENV POETRY_VIRTUALENVS_IN_PROJECT="true"
|
||||
ENV PATH="${PATH}:${PIPX_BIN_DIR}:${PIPX_HOME}/venvs/poetry/bin:/ansible/.venv/bin"
|
||||
|
||||
# Install system dependencies
|
||||
RUN apk --no-cache add pipx openssh bash
|
||||
RUN pipx install poetry==${POETRY_VERSION}
|
||||
|
||||
# Install ansible and dependencies
|
||||
WORKDIR /ansible
|
||||
COPY . .
|
||||
RUN poetry install --no-root
|
||||
CMD poetry env use .venv/bin/python
|
Loading…
Add table
Add a link
Reference in a new issue