- vagrant up (coreos-vagrant)
$ git clone https://github.com/coreos/coreos-vagrant.git
$ cd coreos-vagrant
$ vagrant up
$ vagrant ssh
If you are currently in Linux environment, pass this step.
- Please set base centos image
$ base_docker_image=ttekun/centos:6-oraclexerpm
Other base centos image
ttekun/centos:5-oraclexerpm
ttekun/centos:7-oraclexerpm
- Please enter your email address
- Remove all containers
$ docker rm $(docker ps -aq)
- build
$ git clone https://gist.github.com/c42c0703cb3512994ee1b6335c8afa2d.git
$ cd c42c0703cb3512994ee1b6335c8afa2d
$ chmod 755 *.sh
$ ./build.sh MemTotal ${base_docker_image} ${email_address}
- oraclexe11g install
[root@oraclexe11g tmp]# ./oraclexe11g-install.sh
- oracle-xe configure
[root@oraclexe11g tmp]# /etc/init.d/oracle-xe configure
🚨 1️⃣ Please input oracle
initial configuration:
Confirm the password:
🚨 2️⃣ Please input n
Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:n
- oracle-xe stop
[root@oraclexe11g tmp]# /etc/init.d/oracle-xe stop
- exit
[root@oraclexe11g tmp]# exit
-
docker commit -> docker build
-
docker run
$ docker run -itd --name db -h oraclexe11g -p 8089:8080 -p 1521:1521 [DOCKER IMAGE]
port: 1521
sid: XE
username: system
password: oracle