8000 Testing image build process. · utPLSQL/docker-scripts@f43a905 · GitHub
[go: up one dir, main page]

Skip to content

Commit f43a905

Browse files
committed
Testing image build process.
1 parent 25bcd6e commit f43a905

File tree

2 files changed

+34
-9
lines changed

2 files changed

+34
-9
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ env:
1818

1919
jobs:
2020
- ORACLE_VERSION="11g-r2-xe" DOCKER_DIR='11.2.0.2-xe-small' DOWNLOAD_NAME='xe11g' CONNECTION_STR='127.0.0.1:1521/XE' DOCKER_VOLUME="/mnt/host" DOCKER_OPTIONS='--shm-size=1g'
21-
- ORACLE_VERSION="12c-r1-se2-small" DOCKER_DIR='12.1.0.2-small' DOWNLOAD_NAME='se12c' CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
21+
# - ORACLE_VERSION="12c-r1-se2-small" DOCKER_DIR='12.1.0.2-small' DOWNLOAD_NAME='se12c' CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
22+
# - ORACLE_VERSION="12c-r2-se2-small" DOCKER_DIR='12.1.0.2-small' DOWNLOAD_NAME='se12c' CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
23+
# - ORACLE_VERSION="18c-se2-small" DOCKER_DIR='18.3-small' DOWNLOAD_NAME='18.3' CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
24+
# - ORACLE_VERSION="19c-se2-small" DOCKER_DIR='19.3-small' DOWNLOAD_NAME='19.3' CONNECTION_STR='127.0.0.1:1521/ORCLCDB'
2225

2326
before_install:
2427

@@ -40,7 +43,5 @@ install:
4043
- cd ${DOCKER_DIR} && ../.travis/download.sh -p ${DOWNLOAD_NAME}
4144

4245
script:
43-
- pwd && ls -l && docker build --no-cache --force-rm --squash -t ${ORACLE_VERSION} .
44-
- docker image ls
45-
- docker save ${ORACLE_VERSION} | gzip > ${ORACLE_VERSION}.gz
46-
- ls -ltr
46+
- pwd && ls -l && docker build --no-cache --force-rm --squash -t ${DOCKHER_HUB_REPO}:${ORACLE_VERSION} .
47+
- docker push ${DOCKHER_HUB_REPO}:${ORACLE_VERSION}

.travis/download.sh

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ while getopts "p:" OPTNAME; do
3030
esac
3131
done
3232

33+
if [ "$PRODUCT" == "xe11g" ]; then
34+
agreementUrl="http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html"
35+
downloadUrl="https://edelivery.oracle.com/akam/otn/linux/oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip"
36+
outputFile=oracle-xe-11.2.0-1.0.x86_64.rpm.zip
37+
downloadFile $agreementUrl $downloadUrl $outputFile
38+
exit 0
39+
fi
40+
3341
if [ "$PRODUCT" == "se12c" ]; then
3442
agreementUrl="http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html"
3543
downloadUrl="http://download.oracle.com/otn/linux/oracle12c/121020/linuxamd64_12102_database_se2_1of2.zip"
@@ -54,10 +62,26 @@ if [ "$PRODUCT" == "ee12c" ]; then
5462
exit 0
5563
fi
5664

57-
if [ "$PRODUCT" == "xe11g" ]; then
58-
agreementUrl="http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html"
59-
downloadUrl="https://edelivery.oracle.com/akam/otn/linux/oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip"
60-
outputFile=oracle-xe-11.2.0-1.0.x86_64.rpm.zip
65+
if [ "$PRODUCT" == "12.2" ]; then
66+
agreementUrl="http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html"
67+
downloadUrl="https://download.oracle.com/otn/linux/oracle12c/122010/linuxx64_12201_database.zip"
68+
outputFile=linuxx64_12201_database.zip
69+
downloadFile $agreementUrl $downloadUrl $outputFile
70+
exit 0
71+
fi
72+
73+
if [ "$PRODUCT" == "18.3" ]; then
74+
agreementUrl="http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html"
75+
downloadUrl="https://download.oracle.com/otn/linux/oracle18c/180000/LINUX.X64_180000_db_home.zip"
76+
outputFile=LINUX.X64_180000_db_home.zip
77+
downloadFile $agreementUrl $downloadUrl $outputFile
78+
exit 0
79+
fi
80+
81+
if [ "$PRODUCT" == "19.3" ]; then
82+
agreementUrl="http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html"
83+
downloadUrl="https://download.oracle.com/otn/linux/oracle19c/190000/LINUX.X64_193000_db_home.zip"
84+
outputFile=LINUX.X64_193000_db_home.zip
6185
downloadFile $agreementUrl $downloadUrl $outputFile
6286
exit 0
6387
fi

0 commit comments

Comments
 (0)
0