chore: Setup virtual python environment for ansible
All checks were successful
/ build-docker (push) Successful in 2m58s
All checks were successful
/ build-docker (push) Successful in 2m58s
This commit is contained in:
24
Dockerfile
24
Dockerfile
@ -4,37 +4,37 @@ FROM debian:trixie-slim
|
|||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
ENV DEBIAN_FRONTEND=noninteractive \
|
||||||
LANG=C.UTF-8 \
|
LANG=C.UTF-8 \
|
||||||
PATH=/usr/local/bundle/bin:$PATH
|
PATH=/usr/local/bundle/bin:/opt/venv/bin:$PATH
|
||||||
|
|
||||||
# Install dependencies
|
# Install system dependencies
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
bash \
|
bash \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
python3 \
|
python3 \
|
||||||
python3-pip \
|
python3-venv \
|
||||||
build-essential \
|
build-essential \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
|
ruby-full \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Node.js 22
|
# Install Node.js 22
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
||||||
&& apt-get install -y nodejs \
|
&& apt-get install -y nodejs \
|
||||||
&& npm install -g npm
|
&& npm install -g npm \
|
||||||
|
|
||||||
# Install Ansible via pip
|
|
||||||
RUN pip3 install --no-cache-dir ansible
|
|
||||||
|
|
||||||
# Install Ruby and Jekyll
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
||||||
ruby-full \
|
|
||||||
&& gem install bundler jekyll \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install Jekyll and Bundler
|
||||||
|
RUN gem install bundler jekyll
|
||||||
|
|
||||||
|
# Create Python virtual environment for Ansible
|
||||||
|
RUN python3 -m venv /opt/venv \
|
||||||
|
&& /opt/venv/bin/pip install --no-cache-dir --upgrade pip ansible
|
||||||
|
|
||||||
# Create workspace
|
# Create workspace
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user