lib/pinject/docker.rb in pinject-0.1.6 vs lib/pinject/docker.rb in pinject-0.1.7

- old
+ new

@@ -103,10 +103,17 @@ r = case dist when 'ubuntu', 'debian' ['apt-get update -qqy', 'apt-get upgrade -qqy', 'apt-get clean', 'rm -rf /var/lib/apt/lists/*'] when 'alpine' ['apk update', 'apk upgrade --no-cache'] + when 'oracle' + case version + when '7' + ['yum update -y'] + when '8' + ['microdnf update -y'] + end when 'centos' case version when '5', '6' nil else @@ -124,9 +131,12 @@ OS=$DISTRIB_ID VER=`echo $DISTRIB_RELEASE | awk -F. '{ print $1 }'` elif [ -f /etc/debian_version ]; then OS=debian VER=`cat /etc/debian_version | awk -F. '{ print $1 }'` + elif [ -f /etc/oracle-release ]; then + OS=oracle + VER=`cat /etc/oracle-release | sed -e 's/.*\\s\\([0-9]\\)\\..*/\\1/'` elif [ -f /etc/redhat-release ]; then OS=centos VER=`cat /etc/redhat-release | sed -e 's/.*\\s\\([0-9]\\)\\..*/\\1/'` elif [ -f /etc/alpine-release ]; then OS=alpine