File tree Expand file tree Collapse file tree 4 files changed +106
-0
lines changed Expand file tree Collapse file tree 4 files changed +106
-0
lines changed Original file line number Diff line number Diff line change 1+ dist : bionic
2+ sudo : required
3+ cache : bundler
4+
5+ env :
6+ global :
7+ - ORACLE_FILE=oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
8+ - ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
9+ - TNS_ADMIN=$ORACLE_HOME/network/admin
10+ - NLS_LANG=AMERICAN_AMERICA.AL32UTF8
11+ - ORACLE_BASE=/u01/app/oracle
12+ - LD_LIBRARY_PATH=$ORACLE_HOME/lib
13+ - PATH=$PATH:$ORACLE_HOME/jdbc/lib
14+ - DATABASE_VERSION=11.2.0.1
15+ - ORACLE_SID=XE
16+ - DATABASE_NAME=XE
17+ - ORA_SDTZ='Europe/Riga' # Needed as a client parameter
18+ - TZ='Europe/Riga' # Needed as a DB Server parameter
19+ - " JRUBY_OPTS='--debug --dev -J-Xmx1024M'"
20+
21+ before_install :
22+ - chmod +x .travis/oracle/download.sh
23+ - chmod +x .travis/oracle/install.sh
24+ - chmod +x .travis/setup_accounts.sh
25+
26+ install :
27+ - .travis/oracle/download.sh
28+ - .travis/oracle/install.sh
29+ - .travis/setup_accounts.sh
30+ - ruby -v
31+ - bundle install
32+
33+ script :
34+ - bundle exec rake spec
35+ - rm Gemfile.lock
36+ - ruby guides/bug_report_templates/active_record_gem.rb
37+ - ruby guides/bug_report_templates/active_record_gem_spec.rb
38+
39+ language : ruby
40+ rvm :
41+ - 2.7.2
42+ - 2.6.6
43+ - 2.5.8
44+ - jruby-9.2.13.0
45+ - ruby-head
46+ - jruby-head
47+
48+ notifications :
49+ email : false
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ cd " $( dirname " $( readlink -f " $0 " ) " ) "
4+
5+ deb_file=oracle-xe_11.2.0-1.0_amd64.deb
6+
7+ git clone https://github.com/wnameless/docker-oracle-xe-11g.git
8+
9+ cd docker-oracle-xe-11g/assets &&
10+ cat " ${deb_file} aa" " ${deb_file} ab" " ${deb_file} ac" > " ${deb_file} "
11+
12+ pwd
13+
14+ ls -lAh " ${deb_file} "
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ [ -n " $ORACLE_FILE " ] || { echo " Missing ORACLE_FILE environment variable!" ; exit 1; }
4+ [ -n " $ORACLE_HOME " ] || { echo " Missing ORACLE_HOME environment variable!" ; exit 1; }
5+
6+ cd " $( dirname " $( readlink -f " $0 " ) " ) "
7+
8+ ORACLE_DEB=docker-oracle-xe-11g/assets/oracle-xe_11.2.0-1.0_amd64.deb
9+
10+ sudo apt-get -qq update
11+ sudo apt-get --no-install-recommends -qq install bc libaio1
12+
13+ df -B1 /dev/shm | awk ' END { if ($1 != "shmfs" && $1 != "tmpfs" || $2 < 2147483648) exit 1 }' ||
14+ ( sudo rm -r /dev/shm && sudo mkdir /dev/shm && sudo mount -t tmpfs shmfs -o size=2G /dev/shm )
15+
16+ test -f /sbin/chkconfig ||
17+ ( echo ' #!/bin/sh' | sudo tee /sbin/chkconfig > /dev/null && sudo chmod u+x /sbin/chkconfig )
18+
19+ test -d /var/lock/subsys || sudo mkdir /var/lock/subsys
20+
21+ sudo dpkg -i " ${ORACLE_DEB} "
22+
23+ echo ' OS_AUTHENT_PREFIX=""' | sudo tee -a " $ORACLE_HOME /config/scripts/init.ora" > /dev/null
24+ echo ' disk_asynch_io=false' | sudo tee -a " $ORACLE_HOME /config/scripts/init.ora" > /dev/null
25+
26+ sudo usermod -aG dba $USER
27+
28+ ( echo ; echo ; echo travis ; echo travis ; echo n ) | sudo AWK=' /usr/bin/awk' /etc/init.d/oracle-xe configure
29+
30+ " $ORACLE_HOME /bin/sqlplus" -L -S / AS SYSDBA << SQL
31+ CREATE USER $USER IDENTIFIED EXTERNALLY;
32+ GRANT CONNECT, RESOURCE TO $USER ;
33+ SQL
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -ev
4+
5+ " $ORACLE_HOME /bin/sqlplus" -L -S / AS SYSDBA << SQL
6+ @@spec/support/alter_system_user_password.sql
7+ @@spec/support/alter_system_set_open_cursors.sql
8+ @@spec/support/create_oracle_enhanced_users.sql
9+ exit
10+ SQL
You can’t perform that action at this time.
0 commit comments