-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_pulp_docker.sh
More file actions
executable file
·44 lines (36 loc) · 1.11 KB
/
update_pulp_docker.sh
File metadata and controls
executable file
·44 lines (36 loc) · 1.11 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh
echo "==installing the pub qa tools=="
echo "yum install -y dockpulp rh-dockpulp"
yum install -y dockpulp rh-dockpulp
echo "==writing the /etc/dockerpulp.conf=="
vim -c ":1,$ d" -c ":wq" /etc/dockpulp.conf
echo "
[pulps]
test = https://pulp-docker-wlin.usersys.redhat.com
[registries]
test = https://pulp-docker-wlin.usersys.redhat.com:8888
[filers]
test = http://10.73.67.150
[verify]
test = no
[redirect]
test = no
[distributors]
test = docker_web_distributor_name_cli,cdn_distributor,cdn_distributor_unprotected
[release_order]
test = cdn_distributor_no_extra,cdn_distributor_unprotected_no_extra,docker_web_distributor_name_cli,cdn_distributor_unprotected_no_content,cdn_distributor_no_content
[chunk_size]
test = 10
[timeout]
test = 5000
" >> /etc/dockpulp.conf
echo "==Outputting the dockerpulp.conf files"
cat /etc/dockerpulp.conf
echo "==creating some repos=="
echo "dock-pulp -s test login -u admin -p admin"
dock-pulp -s test login -u admin -p admin
for item in rhel7.3 rhel rhel7 rhel7-rhel
do
echo "dock-pulp -s test create --library ${item}"
dock-pulp -s test create --library ${item}
done