Sign inSign up

mruckman/ubuntu1804-sqlplus

By mruckman

Updated about 7 years ago

Ubuntu 18.04 with with SQL*Plus for instantclient19.3

Image
1

153

mruckman/ubuntu1804-sqlplus repository overview

Create Local Container

docker create --name ubuntu1804-sqlplus \
  -it mruckman/ubuntu1804-sqlplus:193101

Start Container

docker start ubuntu1804-sqlplus

Start Container and Hop Inside of It

docker exec -it ubuntu1804-sqlplus /bin/bash

Sample Usage

sqlplus username/password@//dbhost:1521/SID

Dockerfile

FROM ubuntu:18.04
LABEL maintainer="Maurice Ruckman"
RUN echo 'Acquire { http::User-Agent "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36"; };' >> /etc/apt/apt.conf
WORKDIR /home

# BASIC SETUP
RUN apt-get -y update
RUN apt-get -y install
RUN apt-get -y upgrade
RUN apt-get -y dist-upgrade
RUN apt-get -y autoremove

# INSTALL SQL PLUS
RUN apt-get update
RUN apt-get -y install alien

COPY oracle-instantclient19.3-basic-19.3.0.0.0-1.x86_64.rpm .
COPY oracle-instantclient19.3-sqlplus-19.3.0.0.0-1.x86_64.rpm .
COPY oracle-instantclient19.3-devel-19.3.0.0.0-1.x86_64.rpm .

RUN alien -i --scripts oracle-instantclient19.3-basic-19.3.0.0.0-1.x86_64.rpm
RUN alien -i --scripts oracle-instantclient19.3-sqlplus-19.3.0.0.0-1.x86_64.rpm
RUN alien -i --scripts oracle-instantclient19.3-devel-19.3.0.0.0-1.x86_64.rpm
RUN apt-get install libaio1

RUN rm oracle-instantclient19.3-basic-19.3.0.0.0-1.x86_64.rpm
RUN rm oracle-instantclient19.3-sqlplus-19.3.0.0.0-1.x86_64.rpm
RUN rm oracle-instantclient19.3-devel-19.3.0.0.0-1.x86_64.rpm

# SET TIMEZONE
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update
RUN echo "America/Los_Angeles" > /etc/timezone
RUN apt-get install -y tzdata
RUN ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
RUN dpkg-reconfigure -f noninteractive tzdata

# ENTRY POINT
CMD ["/bin/bash"]

Tag summary

Content type

Image

Digest

Size

282.1 MB

Last updated

about 7 years ago

docker pull mruckman/ubuntu1804-sqlplus:193101