Uber-coffee / Mobile-app

0 stars 3 forks source link

[1pt]Create a jenkinsfile and a dockerfile #44

Open Nanotech2023 opened 4 years ago

Nanotech2023 commented 4 years ago
  1. Write pipeline for repository
  2. Write the installation of sudo, ansible, docker-cli
  3. Write a connection to repositories
Nanotech2023 commented 4 years ago

Created Jenkinsfile for Mobile App repository image https://github.com/Uber-coffee/Mobile-app/blob/master/Jenkinsfile

Nanotech2023 commented 4 years ago

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