Skip to content

Commit e42969b

Browse files
committed
Rebuild from Ubuntu 14.04.1 LTS
1 parent 386cbf7 commit e42969b

File tree

5 files changed

+27
-5
lines changed

5 files changed

+27
-5
lines changed

Dockerfile

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1-
FROM wnameless/xe-temp
1+
FROM ubuntu:14.04.1
22

33
MAINTAINER Wei-Ming Wu <wnameless@gmail.com>
44

55
ADD chkconfig /sbin/chkconfig
66
ADD init.ora /
77
ADD initXETemp.ora /
8-
8+
ADD oracle-xe_11.2.0-1.0_amd64.debaa /
9+
ADD oracle-xe_11.2.0-1.0_amd64.debab /
10+
ADD oracle-xe_11.2.0-1.0_amd64.debac /
11+
# ADD oracle-xe_11.2.0-1.0_amd64.deb /
12+
RUN cat /oracle-xe_11.2.0-1.0_amd64.deba* > /oracle-xe_11.2.0-1.0_amd64.deb
13+
14+
# Install sshd
15+
RUN apt-get install -y openssh-server
16+
RUN mkdir /var/run/sshd
17+
RUN echo 'root:admin' | chpasswd
18+
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
19+
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
20+
RUN echo "export VISIBLE=now" >> /etc/profile
21+
22+
# Prepare to install Oracle
923
RUN apt-get install -y libaio1 net-tools bc
1024
RUN ln -s /usr/bin/awk /bin/awk
1125
RUN mkdir /var/lock/subsys
1226
RUN chmod 755 /sbin/chkconfig
13-
RUN ln -s /proc/mounts /etc/mtab
1427

15-
RUN dpkg --install /tmp/oracle-xe_11.2.0-1.0_amd64.deb
28+
# Install Oracle
29+
RUN dpkg --install /oracle-xe_11.2.0-1.0_amd64.deb
1630

1731
RUN mv /init.ora /u01/app/oracle/product/11.2.0/xe/config/scripts
1832
RUN mv /initXETemp.ora /u01/app/oracle/product/11.2.0/xe/config/scripts
@@ -23,6 +37,9 @@ RUN echo 'export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe' >> /etc/bash.bas
2337
RUN echo 'export PATH=$ORACLE_HOME/bin:$PATH' >> /etc/bash.bashrc
2438
RUN echo 'export ORACLE_SID=XE' >> /etc/bash.bashrc
2539

40+
# Remove installation files
41+
RUN rm /oracle-xe_11.2.0-1.0_amd64.deb*
42+
2643
EXPOSE 22
2744
EXPOSE 1521
2845
EXPOSE 8080

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
docker-oracle-xe-11g
22
============================
33

4+
Oracle Express Edition 11g Release 2 on Ubuntu 14.04.1 LTS
5+
6+
This **Dockerfile** is a [trusted build](https://registry.hub.docker.com/u/wnameless/oracle-xe-11g/) of [Docker Registry](https://registry.hub.docker.com/).
7+
8+
### Installation
49
```
510
docker pull wnameless/oracle-xe-11g
611
```
@@ -19,7 +24,7 @@ username: system
1924
password: oracle
2025
```
2126

22-
Password for SYS
27+
Password for SYS & SYSTEM
2328
```
2429
oracle
2530
```

oracle-xe_11.2.0-1.0_amd64.debaa

99 MB
Binary file not shown.

oracle-xe_11.2.0-1.0_amd64.debab

99 MB
Binary file not shown.

oracle-xe_11.2.0-1.0_amd64.debac

65 MB
Binary file not shown.

0 commit comments

Comments
 (0)