-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"registry-mirrors": ["http://registry-proxy.czy21-internal.com"], | ||
"insecure-registries": ["registry.czy21-internal.com", "registry-proxy.czy21-internal.com"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: "3.9" | ||
|
||
services: | ||
|
||
docker: | ||
image: "docker:27.2.0-dind" | ||
pull_policy: always | ||
container_name: docker | ||
hostname: docker | ||
privileged: true | ||
volumes: | ||
- {{ param_docker_data }}/{{ param_role_name }}/conf/daemon.json:/etc/docker/daemon.json | ||
- {{ param_docker_data }}/{{ param_role_name }}/conf/certs/:/certs/client | ||
- {{ param_docker_data }}/{{ param_role_name }}/data/:/var/lib/docker | ||
environment: | ||
DOCKER_TLS_CERTDIR: /certs | ||
restart: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
FROM jenkins/ssh-agent:5.46.0-jdk17 | ||
|
||
USER root | ||
RUN apt update && apt install git sudo curl -y | ||
RUN curl -L "https://github.com/docker/compose/releases/download/v{{ param_compose_version }}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
RUN chmod +x /usr/local/bin/docker-compose | ||
RUN ln -sf /usr/local/bin/docker-compose /usr/bin/docker-compose | ||
RUN echo -n "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/99-custom | ||
RUN usermod -aG sudo 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
FROM jenkins/jenkins:2.474-jdk17 | ||
FROM jenkins/jenkins:2.475-jdk17 | ||
|
||
USER root | ||
RUN apt update && apt install sudo -y | ||
RUN curl -L "https://github.com/docker/compose/releases/download/v{{ param_compose_version }}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
RUN chmod +x /usr/local/bin/docker-compose | ||
RUN ln -sf /usr/local/bin/docker-compose /usr/bin/docker-compose | ||
RUN echo -n "%sudo ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/99-custom | ||
RUN usermod -aG sudo 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters