File tree Expand file tree Collapse file tree 4 files changed +92
-4
lines changed Expand file tree Collapse file tree 4 files changed +92
-4
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,6 @@ RUN chmod a+x /usr/local/bin/connect-slave.sh
57
57
COPY jenkins.sh /usr/local/bin/jenkins.sh
58
58
RUN chmod a+x /usr/local/bin/jenkins.sh
59
59
60
- COPY gitconfig $JENKINS_HOME/.gitconfig
61
- RUN chown jenkins:jenkins $JENKINS_HOME/.gitconfig
62
-
63
60
ENV REF_DIR /usr/share/jenkins/ref
64
61
ADD defaults.tgz $REF_DIR
65
62
COPY plugins.txt $REF_DIR/
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ MARATHON ?= localhost:8080
7
7
.PHONY = install push deploy clean
8
8
9
9
defaults.tgz :
10
- tar zcvf $(@ ) * .xml init.groovy.d/
10
+ tar zcvf $(@ ) * .xml gitconfig init.groovy.d/
11
11
12
12
install : defaults.tgz
13
13
docker build -t $(TAG ) .
Original file line number Diff line number Diff line change 41
41
touch $JENKINS_HOME /.USE_PERSISTANT_JENKINS_HOME
42
42
fi
43
43
fi
44
+ if [ [ ! -f $JENKINS_HOME /.gitconfig ] -a [ -f $JENKINS_HOME /gitconfig ]; then
45
+ mv -f $JENKINS_HOME /gitconfig $JENKINS_HOME /.gitconfig
46
+ fi
44
47
45
48
# if `docker run` first argument start with `--` the user is passing jenkins launcher arguments
46
49
if [[ $# -lt 1 ]] || [[ " $1 " == " --" * ]]; then
Original file line number Diff line number Diff line change
1
+ {
2
+ "id": "/jenkins/master",
3
+ "cmd": null,
4
+ "cpus": 2,
5
+ "mem": 4096,
6
+ "disk": 0,
7
+ "instances": 1,
8
+ "constraints": [
9
+ [
10
+ "hostname",
11
+ "CLUSTER",
12
+ "10.0.24.35"
13
+ ]
14
+ ],
15
+ "container": {
16
+ "type": "DOCKER",
17
+ "volumes": [
18
+ {
19
+ "containerPath": "/var/run/docker.sock",
20
+ "hostPath": "/var/run/docker.sock",
21
+ "mode": "RW"
22
+ }
23
+ ],
24
+ "docker": {
25
+ "image": "jenkins-mesos-local",
26
+ "network": "BRIDGE",
27
+ "portMappings": [
28
+ {
29
+ "containerPort": 8080,
30
+ "hostPort": 31325,
31
+ "servicePort": 10002,
32
+ "protocol": "tcp",
33
+ "labels": {}
34
+ },
35
+ {
36
+ "containerPort": 0,
37
+ "hostPort": 0,
38
+ "servicePort": 10003,
39
+ "protocol": "tcp",
40
+ "labels": {}
41
+ }
42
+ ],
43
+ "privileged": true,
44
+ "parameters": [],
45
+ "forcePullImage": false,
46
+ "parameters": [
47
+ { "key": "volumes-from", "value": "jenkins-home" }
48
+ ]
49
+ }
50
+ },
51
+ "env": {
52
+ "JENKINS_CONFIG_REPO": "jbrisbin/jenkins-mesos-softlayer",
53
+ "JENKINS_OPTS": "--prefix=/jenkins",
54
+ "USE_PERSISTANT_JENKINS_HOME": "yes"
55
+ },
56
+ "healthChecks": [
57
+ {
58
+ "path": "/jenkins/",
59
+ "protocol": "HTTP",
60
+ "portIndex": 0,
61
+ "gracePeriodSeconds": 300,
62
+ "intervalSeconds": 300,
63
+ "timeoutSeconds": 300,
64
+ "maxConsecutiveFailures": 25,
65
+ "ignoreHttp1xx": false
66
+ }
67
+ ],
68
+ "portDefinitions": [
69
+ {
70
+ "port": 10002,
71
+ "protocol": "tcp",
72
+ "labels": {}
73
+ },
74
+ {
75
+ "port": 10003,
76
+ "protocol": "tcp",
77
+ "labels": {}
78
+ }
79
+ ],
80
+ "fetch": [
81
+ {
82
+ "uri": "file:///home/jenkins/ssh.tar.gz",
83
+ "extract": true,
84
+ "executable": false,
85
+ "cache": false
86
+ }
87
+ ]
88
+ }
You can’t perform that action at this time.
0 commit comments