Skip to content

Commit

Permalink
Merge pull request #2 from RedPillAnalytics/develop
Browse files Browse the repository at this point in the history
Added .bashrc and JAVA_HOME
  • Loading branch information
stewartbryson authored Oct 6, 2021
2 parents 4de981d + 5f1da0f commit 3bc98e8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions
export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which javac))))
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM oraclelinux:7-slim AS base

RUN yum update -y && \
yum install -y oracle-database-preinstall-19c wget vim-minimal sudo java-11-openjdk-devel
yum install -y oracle-database-preinstall-19c wget vim-minimal sudo java-11-openjdk-devel which && \
yum clean all

COPY .bashrc /home/oracle/

USER oracle

Expand Down

0 comments on commit 3bc98e8

Please sign in to comment.