forked from informix/informix-server-dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
executable file
·29 lines (19 loc) · 683 Bytes
/
build
File metadata and controls
executable file
·29 lines (19 loc) · 683 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
#!/bin/bash
TAG_OS=os-ubi
TAG_IFX=informix-de
### Build os-ubi
docker build -t ${TAG_OS} -f Dockerfile.os .
sed -i 's/hcl/ibm/g' Dockerfile.prune
sed -i 's/hcl/ibm/g' Dockerfile.base
sed -i 's/hcl/ibm/g' informix_prune.sh
sed -i 's/hcl/ibm/g' informix_inf.env
sed -i 's/hcl/ibm/g' informix_install.properties
### Build Prune Phase
docker build -t ${TAG_IFX}-prune -f Dockerfile.prune .
### Pull out Informix Only.
docker run --name temp-ifx-prune ${TAG_IFX}-prune /bin/true
docker cp temp-ifx-prune:/tmp/informix.prune.tar .
docker cp temp-ifx-prune:/opt/ibm/scripts/dinit .
docker rm temp-ifx-prune
### Build Final Image
docker build -t ${TAG_IFX} -f Dockerfile.base .