Skip to content

Commit 6ecfe41

Browse files
authored
Merge pull request wnameless#45 from bpneumann/master
Reverting Support For Volumes
2 parents 3ddd0a5 + 042aa79 commit 6ecfe41

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ MAINTAINER Wei-Ming Wu <wnameless@gmail.com>
55
ADD assets /assets
66
RUN /assets/setup.sh
77

8-
RUN mv /u01/app/oracle/oradata /u01/app/oracle/oradata.orig
9-
VOLUME /u01/app/oracle/oradata
10-
118
EXPOSE 22
129
EXPOSE 1521
1310
EXPOSE 8080

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ Run this, if you want the database to be connected remotely:
2525
docker run -d -p 49160:22 -p 49161:1521 -e ORACLE_ALLOW_REMOTE=true wnameless/oracle-xe-11g
2626
```
2727

28-
Run this to store data in a volume outside the docker container:
29-
```
30-
docker run -d -p 49160:22 -p 49161:1521 -v /my/data/folder:/u01/app/oracle/oradata wnameless/oracle-xe-11g
31-
```
32-
3328
Connect database with following setting:
3429
```
3530
hostname: localhost

assets/startup.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
11
#!/bin/bash
2-
3-
# Initialize the host's data volume, leaving a trace when finished.
4-
if [ ! -e /u01/app/oracle/oradata/dataloaded ]
5-
then
6-
cp -a /u01/app/oracle/oradata.orig/* /u01/app/oracle/oradata/
7-
touch /u01/app/oracle/oradata/dataloaded
8-
echo "Host data volume was initialized."
9-
else
10-
echo "Data was loaded from the host."
11-
fi
12-
132
LISTENER_ORA=/u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
143
TNSNAMES_ORA=/u01/app/oracle/product/11.2.0/xe/network/admin/tnsnames.ora
154

0 commit comments

Comments
 (0)