This commit is contained in:
Ionel Andrei Cataon
2026-02-12 14:50:33 +02:00
parent 2566b0d036
commit 7960479684
2 changed files with 17 additions and 1 deletions

View File

@@ -1,7 +1,9 @@
services:
jenkins:
container_name: my_jenkins_01
image: jenkins/jenkins:latest
build:
context: .
dockerfile: dockerfile.jenkins
environment:
TZ: "Europe/Bucharest"
ports:

View File

@@ -0,0 +1,14 @@
FROM jenkins/jenkins:latest
USER root
# Instalăm clientul de Docker în interiorul imaginii Jenkins
RUN apt-get update && apt-get install -y lsb-release
RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \
https://download.docker.com/linux/debian/gpg
RUN echo "deb [arch=$(dpkg --print-architecture) \
signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \
https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
RUN apt-get update && apt-get install -y docker-ce-cli
USER jenkins