Last active
January 9, 2019 17:31
-
-
Save xschildw/5ffbf4e811d8314f0e7a76380ad30153 to your computer and use it in GitHub Desktop.
docker-jenkins-portal-deploy
This file contains hidden or 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
| FROM jenkins/jenkins:lts | |
| LABEL maintainer="[email protected]" | |
| USER root | |
| # Basic deps | |
| RUN apt update && apt install -y apt-transport-https curl software-properties-common python3-pip groff | |
| # To install latest versions | |
| RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - | |
| RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
| RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
| # Setup | |
| RUN apt update && apt install -y nodejs yarn && pip3 install awscli | |
| RUN mkdir /var/log/jenkins && mkdir /var/cache/jenkins && chown -R jenkins:jenkins /var/log/jenkins && chown -R jenkins:jenkins /var/cache/jenkins | |
| # React and dependencies | |
| # | |
| USER jenkins | |
| ENV JAVA_OPTS="-Xmx512m" | |
| ENV JENKINS_OPTS="--logfile=/var/log/jenkins/jenkins.log --webroot=/var/cache/jenkins/war" |
This file contains hidden or 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
| sudo apt update | |
| sudo apt upgrade | |
| sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo apt-key fingerprint 0EBFCD88 | |
| lsb_release -cs | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable" | |
| sudo apt-get update | |
| sudo apt install docker-ce | |
| sudo docker container run hello-world | |
| sudo systemctl enable docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment