jenkins-docker-slave's Issues
it's time to upgrade to jdk8
From my testing, it seems that jdk7 is not compatible with jenkins 2.73.2 + docker plugin 1.0.2, maybe it's time to update to jkd 8?
Line 24 of the Docker file
ADD settings.xml /home/jenkins/.m2/
Thats where docker build bombs out for me. Can you explain where did settings.xml come from?
Thank you
Trying to use own Dockerfile fails
Hello,
I went through your blog on setting up docker slaves and got everything working great when I pull your image from https://hub.docker.com/r/bibinwilson/jenkins-slave/.
However, when creating my own Dockerimage following what you have in this repo, i cannot get Jenkins to connect to the slaves.
Here is my Dockerfile. Its almost identical to the one in this repo.
FROM ubuntu:18.04
LABEL maintainer="[email protected]>"
#needed for ansible install
ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && \
apt-get -qy full-upgrade && \
apt-get install -qy git && \
apt-get install -qy openssh-server && \
apt install -qy ansible &&\
sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/pam.d/sshd && \
mkdir -p /var/run/sshd && \
apt-get install -qy openjdk-8-jdk && \
apt-get -qy autoremove && \
useradd -ms /bin/bash jenkins && \
echo "jenkins:jenkins" | chpasswd
COPY .ssh/authorized_keys /home/jenkins/.ssh/authorized_keys
RUN chown -R jenkins:jenkins /home/jenkins/.ssh/
# Standard SSH port
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
I have a .ssh/authorized_keys
directory/file with my Dockerfile and then run docker build -t ubuntu_ansible_slave:latest .
After updating Jenkins to use that Docker image, i begin getting authentication errors in jenkins logs. (assuming its failing to authenticate to the slave, but im not sure.)
I just dont understand why it works with your image, but wont with one built with an almost identical Dockerfile? What am i missing?
Any help would be greatly appreciated. Been bashing my head against the desk for far to long on this one.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.