Skip to content

Commit

Permalink
Xe Dockerfile cleanup (oracle#1218)
Browse files Browse the repository at this point in the history
* Cleanup 18c XE Dockerfile

Signed-off-by: Gerald Venzl <[email protected]>
  • Loading branch information
gvenzl authored and Djelibeybi committed Apr 8, 2019
1 parent 81a82b5 commit eb240f4
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions OracleDatabase/SingleInstance/dockerfiles/18.4.0/Dockerfile.xe
Original file line number Diff line number Diff line change
Expand Up @@ -45,26 +45,24 @@ ENV PATH=$ORACLE_HOME/bin:$PATH

# Copy binaries
# -------------
COPY $INSTALL_FILE_1 $RUN_FILE $PWD_FILE $CHECK_DB_FILE $INSTALL_DIR/
COPY $CONF_FILE $INSTALL_DIR/
COPY $INSTALL_FILE_1 $RUN_FILE $PWD_FILE $CHECK_DB_FILE $CONF_FILE $INSTALL_DIR/

RUN cd $INSTALL_DIR && \
yum -y install oracle-database-preinstall-18c file openssl $INSTALL_FILE_1 && \
yum -y install openssl oracle-database-preinstall-18c && \
yum -y install $INSTALL_FILE_1 && \
rm -rf /var/cache/yum && \
mkdir -p $ORACLE_BASE/scripts/setup && \
mkdir $ORACLE_BASE/scripts/startup && \
ln -s $ORACLE_BASE/scripts /docker-entrypoint-initdb.d && \
mkdir -p $ORACLE_BASE/oradata /home/oracle && \
chown -R oracle:oinstall $ORACLE_BASE/oradata /home/oracle && \
chown -R oracle:oinstall $ORACLE_BASE /home/oracle && \
mv $INSTALL_DIR/$RUN_FILE $ORACLE_BASE/ && \
mv $INSTALL_DIR/$PWD_FILE $ORACLE_BASE/ && \
mv $INSTALL_DIR/$CHECK_DB_FILE $ORACLE_BASE/ && \
mv $INSTALL_DIR/$CONF_FILE /etc/sysconfig/ && \
ln -s $ORACLE_BASE/$PWD_FILE / && \
cd $HOME && \
rm -rf $INSTALL_DIR && \
target_txt=$(cat /etc/security/limits.d/oracle-database-preinstall-18c.conf | grep -e 'oracle *hard *memlock*') && \
sed -i "/^$target_txt/ c#$target_txt" /etc/security/limits.d/oracle-database-preinstall-18c.conf && \
chmod ug+x $ORACLE_BASE/*.sh

VOLUME ["$ORACLE_BASE/oradata"]
Expand Down

0 comments on commit eb240f4

Please sign in to comment.