Skip to content

Change base image to Alpine#47

Open
jimsihk wants to merge 153 commits intomainfrom
feature/alpine
Open

Change base image to Alpine#47
jimsihk wants to merge 153 commits intomainfrom
feature/alpine

Conversation

@jimsihk
Copy link
Copy Markdown
Owner

@jimsihk jimsihk commented Oct 19, 2025

Summary

Updated the Dockerfile to use Alpine as the base image and added necessary packages for Kubernetes and OCI CLI.

Key highlights:

  • use Alpine Linux as base image for minimal size and dependencies
  • install packages from source for latest version (remove dependency on community build)
  • set custom scripts as alias for easier access

About oci-cli installation:

  1. install from source install.py
  • total build time: ~15min
  • run time: ~0.6s
  1. use uv instead of pip for oci-cli for smaller image size (require patching of the script):
  • total build time ~5min
  • run time: ~2s
  1. install from alpine package
  • total build time: ~3min
  • run time: ~0.6s
  • version may lag behind

TODO:

  1. find best way for oci-cli installation
  2. setup renovate to trigger auto PR
  3. setup auto complete of oci commands

Updated the Dockerfile to use Alpine as the base image and added necessary packages for Kubernetes and OCI CLI.
@jimsihk jimsihk changed the title Change base image to Alpine and install required tools Change base image to Alpine Oct 19, 2025
@github-actions
Copy link
Copy Markdown

Tool Version
oci 3.56.0
kubectl 1.33.1
helm 3.18.4
git 2.49.1
k9s �[0m 0.50.6
kdash 0.6.2
python 3.12.12
rwxr-xr-x 1 oracle oracle 987 Oct 19 07 57 check-oke-connection.sh
rwxr-xr-x 1 oracle oracle 2946 Oct 19 07 57 init-local-oci.sh
rwxr-xr-x 1 oracle oracle 415 Oct 19 07 57 oapply
rwxr-xr-x 1 oracle oracle 416 Oct 19 07 57 odelete
rwxr-xr-x 1 oracle oracle 102 Oct 19 07 57 ohelm
rwxr-xr-x 1 oracle oracle 4326 Oct 19 07 57 oke-tunnel.sh
rwxr-xr-x 1 oracle oracle 105 Oct 19 07 57 okectl

Uncompressed image size: 854MB
Compressed image size: 176.77MiB

Updated Dockerfile to add aliases for okeutil commands and removed commented-out installation steps.
@github-actions
Copy link
Copy Markdown

Tool Version
oci 3.56.0
kubectl 1.33.1
helm 3.18.4
git 2.49.1
k9s �[0m 0.50.6
kdash 0.6.2
python 3.12.12

Uncompressed image size: 854MB
Compressed image size: 176.78MiB

1 similar comment
@github-actions
Copy link
Copy Markdown

Tool Version
oci 3.56.0
kubectl 1.33.1
helm 3.18.4
git 2.49.1
k9s �[0m 0.50.6
kdash 0.6.2
python 3.12.12

Uncompressed image size: 854MB
Compressed image size: 176.78MiB

Added tests for aliases 'okectl' and 'ohelm' in the script.
@github-actions
Copy link
Copy Markdown

Tool Version
oci 3.56.0
kubectl 1.33.1
helm 3.18.4
git 2.49.1
k9s �[0m 0.50.6
kdash 0.6.2
python 3.12.12

Uncompressed image size: 854MB
Compressed image size: 176.78MiB

@github-actions
Copy link
Copy Markdown

Tool Version
oci 3.56.0
kubectl 1.33.1
helm 3.18.4
git 2.49.1
k9s �[0m
kdash 0.6.2
python 3.12.12

Uncompressed image size: 854MB
Compressed image size: 176.77MiB

@github-actions
Copy link
Copy Markdown

Tool Version
oci 3.56.0
kubectl 1.33.1
helm 3.18.4
git 2.49.1
k9s 0m
kdash 0.6.2
python 3.12.12

Uncompressed image size: 854MB
Compressed image size: 176.77MiB

Updated regex cleaning to remove non-alphanumeric characters instead of replacing with space.
@github-actions
Copy link
Copy Markdown

Tool Version
oci 3.56.0
kubectl 1.33.1
helm 3.18.4
git 2.49.1
k9s 0m0.50.6
kdash 0.6.2
python 3.12.12

Uncompressed image size: 854MB
Compressed image size: 176.77MiB

@github-actions
Copy link
Copy Markdown

Tool Version
oci 3.71.4
kubectl 1.35.0
helm 3.19.4
git 2.52.0
k9s 0.50.16
kdash 0.6.2
python 3.12.12

Uncompressed image size: 675MB
Compressed image size: 142.90MiB

1 similar comment
@github-actions
Copy link
Copy Markdown

Tool Version
oci 3.71.4
kubectl 1.35.0
helm 3.19.4
git 2.52.0
k9s 0.50.16
kdash 0.6.2
python 3.12.12

Uncompressed image size: 675MB
Compressed image size: 142.90MiB

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 1, 2026

Tool Version
oci 3.73.1
kubectl 1.35.0
helm 3.20.0
git 2.52.0
k9s 0.50.18
kdash 0.6.2
python 3.12.12

Uncompressed image size: 676MB
Compressed image size: 142.43MiB

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 5, 2026

Tool Version
oci 3.75.0
kubectl 1.35.2
helm 3.20.0
git 2.52.0
k9s 0.50.18
kdash 0.6.2
python 3.12.12

Uncompressed image size: 680MB
Compressed image size: 142.78MiB

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 8, 2026

Tool Version
oci 3.75.0
kubectl 1.35.2
helm 3.20.0
git 2.52.0
k9s 0.50.18
kdash 0.6.2
python 3.12.12

Uncompressed image size: 680MB
Compressed image size: 142.79MiB

@github-actions
Copy link
Copy Markdown

Tool Version
oci 3.75.0
kubectl 1.35.2
helm 3.20.0
git 2.52.0
k9s 0.50.18
kdash 0.6.2
python 3.12.12

Uncompressed image size: 680MB
Compressed image size: 142.79MiB

@github-actions
Copy link
Copy Markdown

Tool Version
oci 3.75.0
kubectl 1.35.2
helm 3.20.0
git 2.52.0
k9s 0.50.18
kdash 0.6.2
python 3.12.12

Uncompressed image size: 680MB
Compressed image size: 142.78MiB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant