diff --git a/private-path-to-vpc-vsi/README.md b/private-path-to-vpc-vsi/README.md index b996dba1b..dd4582cb0 100644 --- a/private-path-to-vpc-vsi/README.md +++ b/private-path-to-vpc-vsi/README.md @@ -55,3 +55,9 @@ In order to connect to the VSI via ssh, you can specify the name of an VPC SSH k ``` VPC_SSH_KEY= DEBUG=true CLEANUP_ON_SUCCESS=false ./run ``` + +## Noteworthy + +Connecting a Private Path service with a Code Engine project opens up a wide variety of integration scenarios, including connecting to on-premise infrastructure. + +![](./docs/code-engine-private-path---component-diagram.all-integrations.png) \ No newline at end of file diff --git a/private-path-to-vpc-vsi/ce-job/Dockerfile b/private-path-to-vpc-vsi/ce-job/Dockerfile index dbe44d0ac..fb37acd2a 100644 --- a/private-path-to-vpc-vsi/ce-job/Dockerfile +++ b/private-path-to-vpc-vsi/ce-job/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.access.redhat.com/ubi9/nodejs-22:latest AS build-env +FROM registry.access.redhat.com/ubi9/nodejs-24:latest AS build-env WORKDIR /job # Define which files should be copied into the container image @@ -8,7 +8,7 @@ COPY --chown=default:root *.mjs *.json . RUN npm install # Use a small distroless image for as runtime image -FROM gcr.io/distroless/nodejs22 +FROM gcr.io/distroless/nodejs24 COPY --from=build-env /job /job WORKDIR /job CMD ["job.mjs"] diff --git a/private-path-to-vpc-vsi/docs/code-engine-private-path---component-diagram.all-integrations.png b/private-path-to-vpc-vsi/docs/code-engine-private-path---component-diagram.all-integrations.png new file mode 100644 index 000000000..2de279905 Binary files /dev/null and b/private-path-to-vpc-vsi/docs/code-engine-private-path---component-diagram.all-integrations.png differ diff --git a/private-path-to-vpc-vsi/docs/code-engine-private-path---component-diagram.drawio b/private-path-to-vpc-vsi/docs/code-engine-private-path---component-diagram.drawio index 4baa75b22..c873153f4 100644 --- a/private-path-to-vpc-vsi/docs/code-engine-private-path---component-diagram.drawio +++ b/private-path-to-vpc-vsi/docs/code-engine-private-path---component-diagram.drawio @@ -1,251 +1,733 @@ - + - - - + + + + + + + + - - + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + - - + + - + - + - - + + - - + + + + + + + + + + + + - - + + - + - + - - + + + + + + + + - - - + + + + + + + + + + + + + + + + + - + - - - + + + - + - - + + + + + + + + + + - + - - + + - - + + - - - + + + + + + + + + + + - - + + + + + - - + + - - + + - - + + + + - - + + - - - - - - - + + + + + + + + + - - - + + + + + + + + + - - - + + + + + + + + + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + - - + + - + + + + + + - - - + + - - - - + + + + + + + + + + + + + + + + + - - + + - + + + + + + - - - + + + + + + - - + + + + + + + + - - + + + + + + + - + - - + + + + + + + + + - - + + + + + + + + + - - + + + + + + + - - + + + + + + + + + + + + + + + + + + - - + + - + - + + + + + + + + + + + + - - + + - + + + + + + - - + + - - + + + + + - - - + + + - + - - + + + + + + - + - - + + + + + + + + - - + + + + + - + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/private-path-to-vpc-vsi/docs/code-engine-private-path---component-diagram.png b/private-path-to-vpc-vsi/docs/code-engine-private-path---component-diagram.png index f1c7801b5..d6f351c17 100644 Binary files a/private-path-to-vpc-vsi/docs/code-engine-private-path---component-diagram.png and b/private-path-to-vpc-vsi/docs/code-engine-private-path---component-diagram.png differ diff --git a/private-path-to-vpc-vsi/run b/private-path-to-vpc-vsi/run index f41f88ae8..4efab86d2 100755 --- a/private-path-to-vpc-vsi/run +++ b/private-path-to-vpc-vsi/run @@ -46,6 +46,12 @@ function check_prerequisites { print_error "'jq' tool is not installed" exit 1 fi + + # Ensure that openssl tool is installed + if ! command -v openssl &>/dev/null; then + print_error "'openssl' tool is not installed" + exit 1 + fi } # helper function to check whether IBM Cloud CLI plugins should get updated, or not @@ -380,33 +386,27 @@ if [ $? -ne 0 ]; then fi project_guid=$(ibmcloud ce project current --output json | jq -r '.guid') -# -# Obtain the kube context of the current project -print_msg "\nObtain the kube context of the Code Engine project '$ce_project_name' ..." -ibmcloud ce project select --name $ce_project_name --kubecfg - # # Create the private path integration + ce_vpegatewayconnection_name=guestbook-integration -kubectl apply -f - < 30)); then - kubectl get vpegatewayconnection $ce_vpegatewayconnection_name -o YAML - print_error "The Private Path integration does not became ready as expected. Perform 'kubectl get vpegatewayconnection $ce_vpegatewayconnection_name -o yaml' for further details." + ibmcloud ce connectivity outbound get -n $ce_vpegatewayconnection_name -o json + print_error "The Private Path integration does not became ready as expected. Perform 'ibmcloud ce connectivity outbound get -n $ce_vpegatewayconnection_name -o json' for further details." abortScript fi done