Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ccc799a

Browse files
committed
first try
1 parent 7cceac3 commit ccc799a

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ env:
3535
matrix:
3636
- ORACLE_VERSION="12c-se-r1" CONNECTION_STR='127.0.0.1:1521/ORCLPDB1'
3737
- ORACLE_VERSION="11g-xe-r2" CONNECTION_STR='127.0.0.1:1521/XE' DOCKER_OPTIONS='--shm-size=1g'
38-
- ORACLE_VERSION="12c-se2-r2-v2" CONNECTION_STR='127.0.0.1:1521/ORCLPDB1'
38+
- ORACLE_VERSION="12c-se2-r2-v2" CONNECTION_STR='127.0.0.1:1521/ORCLPDB1' $DOCKER_OPTIONS="-v /dev/pdbs:/opt/oracle/oradata/pdbs"
3939

4040
cache:
4141
pip: true

.travis/start_db.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,8 @@ else
1212
mkdir -p $HOME/.docker && cp $CACHE_DIR/.docker/config.json $HOME/.docker/
1313
fi
1414

15-
16-
if [ "$ORACLE_VERSION" == "12c-se2-r2" ]; then
1715
mkdir -p /dev/pdbs
18-
docker pull $DOCKER_BASE_TAG:$ORACLE_VERSION
19-
docker run -d --name $ORACLE_VERSION $DOCKER_OPTIONS -p 1521:1521 -v /dev/pdbs:/opt/oracle/oradata/pdbs $DOCKER_BASE_TAG:$ORACLE_VERSION
20-
else
16+
2117
docker pull $DOCKER_BASE_TAG:$ORACLE_VERSION
2218
docker run -d --name $ORACLE_VERSION $DOCKER_OPTIONS -p 1521:1521 $DOCKER_BASE_TAG:$ORACLE_VERSION
23-
fi
2419
docker logs -f $ORACLE_VERSION | grep -m 1 "DATABASE IS READY TO USE!" --line-buffered

0 commit comments

Comments
 (0)