-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add OCNE 2 tool images. #2998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add OCNE 2 tool images. #2998
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright (c) 2024 Oracle and/or its affiliates. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
|
||
# hadolint ignore=DL3007 | ||
FROM ghcr.io/oracle/oci-cli:latest | ||
|
||
USER root | ||
|
||
RUN dnf install -y oracle-olcne-release-el8 && \ | ||
dnf config-manager --enable ol8_ocne ol8_addons ol8_baseos_latest ol8_appstream && \ | ||
dnf install -y helm kubectl && \ | ||
rm -rf /var/cache/dnf | ||
|
||
COPY help.sh /opt/help.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should probably either be |
||
|
||
USER oracle | ||
|
||
ENTRYPOINT [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be removeed. |
||
|
||
CMD ["/bin/bash", "/opt/help.sh"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2024 Oracle and/or its affiliates. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs to be 2025 |
||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. | ||
|
||
echo "OCNE/OKE Tools" | ||
|
||
echo "oci-cli version: $(oci --version)" | ||
helm version --template='helm version: {{.Version}}' | ||
echo '' | ||
echo "kubectl versions: " | ||
kubectl version --client | ||
Comment on lines
+7
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suggest storing each version in a variable first, then printing them, ie. something like: OCI_CLI_VERSION="$(oci --version)"
HELM_VERSION="$(helm version)"
KUBECTL_VERSION="$(kubectl version --client)"
echo "oci-cli version: $OCI_CLI_VERSION"
echo "helm version: $HELM_VERSION"
echo "kubectl version: $KUBECTL_VERSION" It would be better to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be 2025