Docker automate in Jenkinsfile (fix 6)
BOT_open_sesam/pipeline/head There was a failure building this commit Details

main
dl 2026-02-04 12:43:05 +05:00
parent 8f8b5d18d1
commit dc021f6802
2 changed files with 6 additions and 4 deletions

5
Jenkinsfile vendored
View File

@ -1,5 +1,8 @@
pipeline { pipeline {
agent { dockerfile true } agent {
image "python:3.11-slim-bookworm"
args "-v /var/run/docker.sock:/var/run/docker.sock"
}
environment { environment {
REGISTRY_URL = "https://proxy.docker.dataekb.ru/harbor/projects/3/repositories" REGISTRY_URL = "https://proxy.docker.dataekb.ru/harbor/projects/3/repositories"

View File

@ -1,10 +1,9 @@
FROM docker:dind FROM python:3.11-slim-bookworm
# FROM python:3.11-slim-bookworm
WORKDIR /bot/open_sesam WORKDIR /bot/open_sesam
COPY requirements.txt . COPY requirements.txt .
RUN apk add --no-cache docker-compose python3 py3-pip && pip install --upgrade pip && pip install -r requirements.txt RUN pip install --upgrade pip && pip install -r requirements.txt
COPY . . COPY . .