Oracle SQLcl docker container
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 .
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>
Volume | Description |
---|---|
/sqlcl |
This is the folder that SQLcl will |