-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
28 lines (22 loc) · 921 Bytes
/
setup.sh
File metadata and controls
28 lines (22 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
####################################################
# Don't run this script manually! #
# The parent script setup.sh will do that for you. #
####################################################
# make sure the package manager is up to date
apt-get update &&
# add entropy. this is needed for cloud instances
apt-get install -y haveged &&
# create directory for ssl certs
mkdir /root/certs &&
# create ssl certs
openssl req -subj '/CN=jenkins.livehen.com/O=Henry Johnson/C=CA' \
-new -newkey rsa:2048 -days 365 -nodes -x509 \
-keyout /root/certs/jenkins.livehen.com.key \
-out /root/certs/jenkins.livehen.com.crt &&
openssl req -subj '/CN=jira.livehen.com/O=Henry Johnson/C=CA' \
-new -newkey rsa:2048 -days 365 -nodes -x509 \
-keyout /root/certs/jira.livehen.com.key \
-out /root/certs/jira.livehen.com.crt &&
# install jenkins with docker
docker build -t jenkins-img .
docker-compose up -d