knalli / docker-sqlcl

SQLcl docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-sqlcl

Oracle SQLcl docker container

Install

Download Oracle SQLcl

git clone https://github.com/martindsouza/docker-sqlcl

cd docker-sqlcl

# *** Copy the downloaded sqlcl.zip file into this directory ***

docker build -t martindsouza/docker-sqlcl .

Run

The following is focused on MacOS / Linux users.

  • Create alias
alias sqlcl="docker run -it --rm \
  --network="host" \
  -v `pwd`:/sqlcl \
  martindsouza/docker-sqlcl"

A few things about the parameters:

Parameter Description
--network="host" This will mimic the current host networking (with the goal of acting like a binary)
-v pwd:/sqlcl This will set the current directory that sqlcl is run to the one that the container is looking at
  • Then to run execute: sqlcl <connection string>

Volumes

Volume Description
/sqlcl This is the folder that SQLcl will

About

SQLcl docker container

License:MIT License


Languages

Language:Dockerfile 70.9%Language:Shell 29.1%