-
Notifications
You must be signed in to change notification settings - Fork 6
/
make_containers.sh
executable file
·66 lines (54 loc) · 2.17 KB
/
make_containers.sh
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
ARCH=$(uname -m)
pushd abf-createrepo/
if [ "$ARCH" != "x86_64" ]; then
sed -i -e '/ENV RARCH x86_64/d' Dockerfile.createrepo
fi
docker build --tag=openmandriva/createrepo:${ARCH} --file Dockerfile.createrepo .
git checkout Dockerfile.createrepo
popd
pushd publisher
docker build --tag=openmandriva/publisher:${ARCH} --file Dockerfile.publisher .
popd
#pushd abf-genhdlists
# docker build --tag=openmandriva/genhdlists2:${ARCH} --file Dockerfile.genhdlists2 .
#popd
pushd abf-nginx
docker build --tag=openmandriva/nginx:${ARCH} --file Dockerfile.nginx .
popd
pushd abf-repoclosure
docker build --tag=openmandriva/repoclosure:${ARCH} --file Dockerfile.repoclosure .
popd
pushd abf-service
docker build --tag=openmandriva/abf:${ARCH} --file Dockerfile .
popd
pushd abf-service-sidekiq
docker build --tag=openmandriva/abf-service-sidekiq-worker:${ARCH} --file Dockerfile .
popd
pushd iso-builder
sed -i -e "s,FROM.*,FROM openmandriva/cooker:${ARCH},g" Dockerfile.isobuilder
docker build --tag=openmandriva/isobuilder:${ARCH} --file Dockerfile.isobuilder .
popd
pushd oma-file-store
docker build --tag=openmandriva/file-store:${ARCH} --file Dockerfile .
popd
pushd abf-redis
docker build --tag=openmandriva/redis:${ARCH} --file Dockerfile.redis .
popd
docker push openmandriva/createrepo:${ARCH}
docker push openmandriva/publisher:${ARCH}
#docker push openmandriva/genhdlists2:${ARCH}
docker push openmandriva/nginx:${ARCH}
docker push openmandriva/repoclosure:${ARCH}
docker push openmandriva/abf:${ARCH}
docker push openmandriva/abf-service-sidekiq-worker:${ARCH}
docker push openmandriva/isobuilder:${ARCH}
docker push openmandriva/file-store:${ARCH}
docker push openmandriva/redis:${ARCH}
for i in createrepo publisher nginx repoclosure abf abf-service-sidekiq-worker isobuilder file-store redis; do
docker manifest create openmandriva/$i:latest \
--amend openmandriva/$i:x86_64 \
--amend openmandriva/$i:aarch64
docker manifest annotate openmandriva/$i:latest openmandriva/$i:x86_64 --os linux --arch amd64
docker manifest annotate openmandriva/$i:latest openmandriva/$i:aarch64 --os linux --arch arm64
docker manifest push openmandriva/$i:latest
done