Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.08 KB

README.md

File metadata and controls

54 lines (34 loc) · 1.08 KB

docker-sqlcl

Oracle SQLcl docker container

Install

Download Oracle SQLcl

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

cd docker-sqlcl

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

docker build -t ricardona/docker-sqlcl .

Run

The following is focused on MacOS / Linux users.

  • Create alias
alias sqlcl="docker run -it --rm \
  --network="host" \
  -v `pwd`:/sqlcl \
  ricardona/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