Open Nanotech2023 opened 4 years ago
Created Jenkinsfile for Mobile App repository https://github.com/Uber-coffee/Mobile-app/blob/master/Jenkinsfile
Dockerfile:
FROM jenkins:2.235.1 RUN apt-get update && apt-get -y install sudo RUN useradd -m jenkins && echo "jenkins:jenkins" | chpasswd && adduser jenkins sudo USER jenkins RUN apt-get update && apt-get -y install libltdl-dev ansible git RUN wget -P /tmp/ https://download.docker.com/linux/static/stable/x86_64/docker-19.03.12.tgz && \ tar -xvf /tmp/docker-19.03.12.tgz --directory /tmp/ && \ mv /tmp/docker/docker /usr/local/bin ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/jenkins.sh"] jenkins ALL=NOPASSWD: ALL