springjunky / docker-local-build-environment Goto Github PK
View Code? Open in Web Editor NEWA local Build Environment with Jenkins, Sonar, Gitlab, Nexus, Docker registry and Portainer
A local Build Environment with Jenkins, Sonar, Gitlab, Nexus, Docker registry and Portainer
Nice work on your project.
The most important thing for a local build environment is swarm support.
Cause I have a bunch of different computers. Sometimes I want to perform a heavy build on a small laptop.
root@bpi-x:/home/bpi-x/docker-bpi-master#
root@bpi-x:/home/bpi-x/docker-bpi-master# docker-compose up --build -d
Building postgres
Step 1/3 : FROM postgres
---> 30121e967865
Step 2/3 : COPY createSonar.sql /docker-entrypoint-initdb.d/
---> Using cache
---> 08bc8779f1dc
Step 3/3 : COPY createKeycloak.sql /docker-entrypoint-initdb.d/
---> Using cache
---> d3c5179dbbe4
Successfully built d3c5179dbbe4
Successfully tagged dockerbpimaster_postgres:latest
Building gitlabrunner
Step 1/5 : FROM gitlab/gitlab-runner
---> b3476023f6bd
Step 2/5 : ADD entrypointAutoregister /
---> Using cache
---> c2f438e1aa49
Step 3/5 : RUN chmod +x /entrypointAutoregister
---> Using cache
---> 33a918a00b66
Step 4/5 : ENTRYPOINT ["/usr/bin/dumb-init", "/entrypointAutoregister"]
---> Using cache
---> 4d902c3fdbf6
Step 5/5 : CMD ["run", "--user=gitlab-runner", "--working-directory=/home/gitlab-runner"]
---> Using cache
---> 3ca2ec60809c
Successfully built 3ca2ec60809c
Successfully tagged dockerbpimaster_gitlabrunner:latest
Building jenkins
Step 1/55 : FROM ubuntu:17.10
---> 1af812152d85
Step 2/55 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> 7216ce270244
Step 3/55 : ENV JAVA_VERSION=8 JAVA_UPDATE=131 JAVA_BUILD=11 JAVA_HOME="/usr/lib/jvm/default-jvm"
---> Using cache
---> 46242aa81feb
Step 4/55 : RUN apt-get update
---> Using cache
---> 2fd20655b6fa
Step 5/55 : RUN apt-get install -y openjdk-8-jdk
---> Running in e2adf32f5ea2
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package openjdk-8-jdk
ERROR: Service 'jenkins' failed to build: The command '/bin/sh -c apt-get install -y openjdk-8-jdk' returned a non-zero code: 100
root@bpi-x:/home/bpi-x/docker-bpi-master# cd jenkins-fat/
Step 37/52 : RUN echo Download from ${JENKINS_URL} && curl -fL ${JENKINS_URL} -o /usr/share/jenkins/jenkins.war && echo "${JENKINS_SHA} /usr/share/jenkins/jenkins.war" | sha1sum -c -
---> Running in dc9bc88b029b
Download from http://updates.jenkins-ci.org/download/war/2.190.3/jenkins.war
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 244 100 244 0 0 628 0 --:--:-- --:--:-- --:--:-- 628
100 252 100 252 0 0 292 0 --:--:-- --:--:-- --:--:-- 0
100 74.6M 100 74.6M 0 0 139k 0 0:09:08 0:09:08 --:--:-- 41527
/usr/share/jenkins/jenkins.war: FAILED
sha1sum: WARNING: 1 computed checksum did NOT match
ERROR: Service 'jenkins' failed to build: The command '/bin/sh -c echo Download from ${JENKINS_URL} && curl -fL ${JENKINS_URL} -o /usr/share/jenkins/jenkins.war && echo "${JENKINS_SHA} /usr/share/jenkins/jenkins.war" | sha1sum -c -' returned a non-zero code: 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.