Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS EKS - Jenkins & slave - Docker in docker #278

Closed
micemuni opened this issue Mar 23, 2022 · 1 comment
Closed

AWS EKS - Jenkins & slave - Docker in docker #278

micemuni opened this issue Mar 23, 2022 · 1 comment

Comments

@micemuni
Copy link

micemuni commented Mar 23, 2022

Hi Team,
I have deployed AWS EKS cluster, deployed Jenkins as Master POD, By using configuration as plugin i have create yaml file and there i mentioned worker-docker label.
When ever jenkins job running then new additional worker POD will create and destroy after job completed.

As per requirement, Inside worker i need to run cmd - docker run -v $(pwd)/reports:/usr/src/app/reports docker-images --> this docker run will generate some files and located in /usr/src/app/reports
I can see those files are present in /usr/src/app/reports but I don't see the files on source path of worker POD $(pwd)/reports.

--- Findings:
In worker POD - I don't see the /var/lib/docker files when i tried with volume mound
Here is worker-docker POD Dockerfile :

FROM openjdk:8-jdk

RUN apt-get update -y && apt-get install -y curl sudo

#Install docker
RUN curl -sSL https://get.docker.com/ | sh

RUN curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose \
    && chmod +x /usr/local/bin/docker-compose

# Download the Jenkins Slave JAR
RUN curl --create-dirs -sSLo /usr/share/jenkins/slave.jar https://repo.jenkins-ci.org/public/org/jenkins-ci/main/remoting/3.9/remoting-3.9.jar \
	&& chmod 755 /usr/share/jenkins \
	&& chmod 644 /usr/share/jenkins/slave.jar

# Download the Jenkins Slave StartUp Script
RUN curl --create-dirs -sSLo /usr/local/bin/jenkins-slave https://raw.githubusercontent.com/jenkinsci/docker-jnlp-slave/3.27-1/jenkins-slave \
	&& chmod a+x /usr/local/bin/jenkins-slave

ENTRYPOINT ["jenkins-slave"]

Please help me to fix --> why /var/lib/docker folder not created ..???
How can i get those files to worker POD path..???

@thaJeztah
Copy link
Member

This issue tracker is meant for reporting issues with the "install" script at download.docker.com.

This ticket looks unrelated to that, and more a general support question. For such questions, consider using one of;

I'm closing this ticket because this is not a bug, but feel free to continue the conversation 👍

@thaJeztah thaJeztah closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants