Skip to content

Instantly share code, notes, and snippets.

View oehrlis's full-sized avatar
🏡
Working from home

Stefan Oehrli oehrlis

🏡
Working from home
View GitHub Profile
@EscVector
EscVector / oci-cli-commands.txt
Last active June 3, 2020 07:42
Oci Commands
## Query syntax
## http://jmespath.org/examples.html#filters-and-multiselect-lists
#list all tenancy ACTIVE compartments [name,ocid]
oci iam compartment list --all --output table --compartment-id-in-subtree true --query "data [?\"lifecycle-state\" =='ACTIVE'].{Name:name,OCID:id}"
#list all tenancy DELETED compartments [name,ocid]
oci iam compartment list --all --output table --compartment-id-in-subtree true --query "data [?\"lifecycle-state\" =='DELETED'].{Name:name,OCID:id}"
#image list
@oehrlis
oehrlis / build_docker_tools.md
Last active May 3, 2021 10:15
Just an other bash for loop....

Build my local docker tools using a loop

docker pull oraclelinux:7-slim
docker pull 06kellyjac/markdownlint-cli
docker pull treeder/bump
docker pull markdownlint/markdownlint
docker pull alpine
docker pull busybox
for i in $HOME/Development/github.com/oehrlis/docker-*/Dockerfile; do 
@oehrlis
oehrlis / docker_build_orarepo.md
Created November 27, 2018 17:47
Docker build using local software repository

Oracle Software usually can not be downloaded during build without providing some credentials. If the binaries are downloaded using curl or wget the credentials will remain in the docker image. One solution would be to keep the binaries in the docker build context and use squash or multi stage builds. Alternatively it is also possible to use a local web server (docker container) to download the files locally.

  • Start a simple web server to locally share the software during docker build.
docker run -dit \
  --hostname orarepo \
  --name orarepo \
  -p 80:80 \
 -v /data/docker/volumes/orarepo:/www \