mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-28 09:41:20 +00:00
update jenkins
This commit is contained in:
parent
9967914d4a
commit
f6aec954f6
@ -3,24 +3,11 @@ jenkins
|
|||||||
|
|
||||||
![](https://badge.imagelayers.io/jenkinsci/jenkins:latest.svg)
|
![](https://badge.imagelayers.io/jenkinsci/jenkins:latest.svg)
|
||||||
|
|
||||||
In a nutshell, [Jenkins][1] is the leading open source automation server. Built
|
[Jenkins][1] is the leading open source automation server. Built with Java,
|
||||||
with Java, it provides hundreds of plugins to support building, testing,
|
it provides hundreds of plugins to support building, testing, deploying and
|
||||||
deploying and automation for virtually any project.
|
automation for virtually any project.
|
||||||
|
|
||||||
## docker-compose.yml
|
Read [more](https://github.com/jenkinsci/docker) about this docker image.
|
||||||
|
|
||||||
```yaml
|
|
||||||
jenkins:
|
|
||||||
image: jenkins/jenkins:lts-alpine
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
- "50000:50000"
|
|
||||||
volumes:
|
|
||||||
- ./data:/var/jenkins_home
|
|
||||||
environment:
|
|
||||||
- JAVA_OPTS=-Dhudson.footerURL=http://jenkins.easypi.pro
|
|
||||||
restart: always
|
|
||||||
```
|
|
||||||
|
|
||||||
## up and running
|
## up and running
|
||||||
|
|
||||||
@ -37,18 +24,18 @@ $ docker-compose exec jenkins bash
|
|||||||
......
|
......
|
||||||
>>> exit
|
>>> exit
|
||||||
$ docker-compose exec --user root jenkins apk add -U git
|
$ docker-compose exec --user root jenkins apk add -U git
|
||||||
$ firefox http://localhost:8080/
|
$ curl http://localhost:8080/
|
||||||
```
|
```
|
||||||
|
|
||||||
## fix slow network
|
## fix slow network
|
||||||
|
|
||||||
```
|
```bash
|
||||||
$ vim data/war/jsbundles/pluginSetupWizard.js
|
$ vim data/war/jsbundles/pluginSetupWizard.js
|
||||||
// default 10 seconds for AJAX responses to return before triggering an error condition
|
// default 10 seconds for AJAX responses to return before triggering an error condition
|
||||||
var pluginManagerErrorTimeoutMillis = 10 * 1000;
|
var pluginManagerErrorTimeoutMillis = 10 * 1000;
|
||||||
```
|
```
|
||||||
|
|
||||||
> Chinese users may add `-Dhudson.model.DownloadService.noSignatureCheck=true` option to use [plugin update mirror site][2].
|
> :cn: Chinese users may add `-Dhudson.model.DownloadService.noSignatureCheck=true` option to use [plugin update mirror site][2].
|
||||||
|
|
||||||
[1]: https://jenkins.io/index.html
|
[1]: https://jenkins.io/index.html
|
||||||
[2]: https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/current/update-center.json
|
[2]: https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/current/update-center.json
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
jenkins/inbound-agent
|
jenkins/inbound-agent
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
|
[inbound-agent][1] is for Jenkins agents using TCP or WebSockets to establish
|
||||||
|
inbound connection to the Jenkins controller. This agent is powered by the
|
||||||
|
Jenkins Remoting library, which version is being taken from the base Docker
|
||||||
|
Agent image.
|
||||||
|
|
||||||
## how to
|
## how to
|
||||||
|
|
||||||
- Enable TCP port 50000 for inbound agents: http://jenkins:8080/configureSecurity/
|
- Enable TCP port 50000 for inbound agents: http://jenkins:8080/configureSecurity/
|
||||||
@ -54,3 +59,5 @@ File: ~/.gitconfig
|
|||||||
[http "https://github.com"]
|
[http "https://github.com"]
|
||||||
proxy = http://x.x.x.x:8123
|
proxy = http://x.x.x.x:8123
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[1]: https://hub.docker.com/r/jenkins/inbound-agent
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
agent:
|
||||||
inbound-agent:
|
image: jenkins/inbound-agent:alpine-jdk21
|
||||||
image: jenkins/inbound-agent
|
|
||||||
init: true
|
init: true
|
||||||
container_name: docker-inbound-agent
|
container_name: docker-inbound-agent
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/home/jenkins
|
- ./data:/home/jenkins
|
||||||
- ./data/agent:/home/jenkins/agent
|
- ./data/agent:/home/jenkins/agent
|
||||||
environment:
|
environment:
|
||||||
- JENKINS_URL=http://jenkins.easypi.pro:8080
|
- JENKINS_URL=http://jenkins.easypi.duckdns.org:8080
|
||||||
- JENKINS_SECRET=***************************
|
- JENKINS_SECRET=***************************
|
||||||
- JENKINS_AGENT_NAME=docker-inbound-agent
|
- JENKINS_AGENT_NAME=docker-inbound-agent
|
||||||
- JENKINS_AGENT_WORKDIR=/home/jenkins/agent
|
- JENKINS_AGENT_WORKDIR=/home/jenkins/agent
|
||||||
|
- TZ=Etc/UTC
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
#
|
|
||||||
# Dockerfile for jenkins-arm
|
|
||||||
#
|
|
||||||
|
|
||||||
FROM arm32v7/alpine:3
|
|
||||||
MAINTAINER EasyPi Software Foundation
|
|
||||||
|
|
||||||
ENV JENKINS_HOME /var/jenkins_home
|
|
||||||
|
|
||||||
RUN set -xe \
|
|
||||||
&& apk add --no-cache \
|
|
||||||
bash \
|
|
||||||
coreutils \
|
|
||||||
curl \
|
|
||||||
git \
|
|
||||||
openjdk8 \
|
|
||||||
openssh-client \
|
|
||||||
ttf-dejavu \
|
|
||||||
unzip \
|
|
||||||
zip \
|
|
||||||
&& addgroup -g 1000 jenkins \
|
|
||||||
&& adduser -h $JENKINS_HOME -u 1000 -G jenkins -s /bin/bash -D jenkins \
|
|
||||||
&& mkdir -p /usr/share/jenkins \
|
|
||||||
&& cd /usr/share/jenkins \
|
|
||||||
&& wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war
|
|
||||||
|
|
||||||
VOLUME $JENKINS_HOME
|
|
||||||
WORKDIR $JENKINS_HOME
|
|
||||||
|
|
||||||
USER jenkins
|
|
||||||
|
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
CMD ["java", "-Djava.awt.headless=true", "-jar", "/usr/share/jenkins/jenkins.war"]
|
|
@ -1,4 +0,0 @@
|
|||||||
jenkins-arm
|
|
||||||
===========
|
|
||||||
|
|
||||||
WARNING: TOO SLOW, DO NOT USE!
|
|
@ -1,7 +0,0 @@
|
|||||||
jenkins:
|
|
||||||
image: easypi/jenkins-arm
|
|
||||||
ports:
|
|
||||||
- "8080:8080"
|
|
||||||
volumes:
|
|
||||||
- ./data:/var/jenkins_home
|
|
||||||
restart: always
|
|
@ -1,10 +1,12 @@
|
|||||||
jenkins:
|
version: "3.8"
|
||||||
image: jenkins/jenkins:lts-alpine
|
services:
|
||||||
ports:
|
jenkins:
|
||||||
- "8080:8080"
|
image: jenkins/jenkins:lts-alpine-jdk21
|
||||||
- "50000:50000"
|
ports:
|
||||||
volumes:
|
- "8080:8080"
|
||||||
- ./data:/var/jenkins_home
|
- "50000:50000"
|
||||||
environment:
|
volumes:
|
||||||
- JAVA_OPTS=-Dhudson.footerURL=http://jenkins.easypi.pro
|
- ./data:/var/jenkins_home
|
||||||
restart: always
|
environment:
|
||||||
|
- JAVA_OPTS=-Dhudson.footerURL=http://jenkins.easypi.duckdns.org
|
||||||
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user