Instalar imagen de docker con Oracle Express 11g R2 y Ubuntu 14.04.1 LTS

docker-oracle-xe-11g

Oracle Express Edition 11g Release 2 on Ubuntu 14.04.1 LTS
This Dockerfile is a trusted build of Docker Registry.

Installation

docker pull wnameless/oracle-xe-11g

Run with 22 and 1521 ports opened:

docker run -d -p 49160:22 -p 49161:1521 wnameless/oracle-xe-11g


Connect database with following setting:

hostname: localhost 
port: 49161 
sid: xe 
username: system 
password: oracle
Password for SYS & SYSTEM  oracle

Login by SSH
ssh root@localhost -p 49160 password: admin



El Dockerfile  seria:

FROM ubuntu:14.04.1 MAINTAINER Wei-Ming Wu <wnameless@gmail.com> ADD chkconfig /sbin/chkconfig ADD init.ora / ADD initXETemp.ora / ADD oracle-xe_11.2.0-1.0_amd64.debaa / ADD oracle-xe_11.2.0-1.0_amd64.debab / ADD oracle-xe_11.2.0-1.0_amd64.debac / # ADD oracle-xe_11.2.0-1.0_amd64.deb / RUN cat /oracle-xe_11.2.0-1.0_amd64.deba* > /oracle-xe_11.2.0-1.0_amd64.deb # Install sshd RUN apt-get install -y openssh-server RUN mkdir /var/run/sshd RUN echo 'root:admin' | chpasswd RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd RUN echo "export VISIBLE=now" >> /etc/profile # Prepare to install Oracle RUN apt-get install -y libaio1 net-tools bc RUN ln -s /usr/bin/awk /bin/awk RUN mkdir /var/lock/subsys RUN chmod 755 /sbin/chkconfig # Install Oracle RUN dpkg --install /oracle-xe_11.2.0-1.0_amd64.deb RUN mv /init.ora /u01/app/oracle/product/11.2.0/xe/config/scripts RUN mv /initXETemp.ora /u01/app/oracle/product/11.2.0/xe/config/scripts RUN printf 8080\\n1521\\noracle\\noracle\\ny\\n | /etc/init.d/oracle-xe configure RUN echo 'export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe' >> /etc/bash.bashrc RUN echo 'export PATH=$ORACLE_HOME/bin:$PATH' >> /etc/bash.bashrc RUN echo 'export ORACLE_SID=XE' >> /etc/bash.bashrc # Remove installation files RUN rm /oracle-xe_11.2.0-1.0_amd64.deb* EXPOSE 22 EXPOSE 1521 EXPOSE 8080 CMD sed -i -E "s/HOST = [^)]+/HOST = $HOSTNAME/g" /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora; \ service oracle-xe start; \ /usr/sbin/sshd -D

Comentarios

Publicar un comentario