How to use Java 17 on IBM Cloud Code Engine

In the previous articles here I used IBM Cloud Code Engine do deploy a Quarkus REST web service, but on Java 11. Now it’s the time to use Java 17. First, let’s update pom.xml to Java 17: <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> Then create a new file in the root of the project with the name .buildenv and set the content: BP_JVM_VERSION=17 There are more variables to be set in the documentation. Then, commit, push the change to GIT, and rebuild the image and deploy it to IBM Cloud....

February 7, 2023 · 1 min · Alex Popescu

How to investigate Code Engine problems

Let’s say that the build proccess is successfull, but the deploy is not. As a result, the IBM Cloud portal is not very helpfull. The error is Revision failed You may wonder why ? Well, the IBM Cloud portal is not all that helpful in this regard. In order to investigate, you need to install and configure IBM Cloud console - or use the one from IBM Cloud portal. First, let’s see if we can get any more informations about our app:...

January 12, 2023 · 4 min · Alex Popescu

How to deploy a quarkus rest service in IBM Cloud Code Engine

This is a guide about deploying a Quarkus REST service in IBM Cloud Code Engine Create a simple Quarkus REST service First we create a sample Quarkus maven project : mvn io.quarkus.platform:quarkus-maven-plugin:2.15.3.Final:create \ -DprojectGroupId=org.acme \ -DprojectArtifactId=rest-json-quickstart \ -Dextensions='resteasy-reactive-jackson' \ -DnoCode cd rest-json-quickstart First, let’s create a Fruit domain model : package org.acme.rest.json; public class Fruit { public String name; public String description; public Fruit() { } public Fruit(String name, String description) { this....

January 11, 2023 · 3 min · Alex Popescu

How to ingest a JSON log file in Azure Log Analytics

This is a guide about ingesting a JSON log file into Azure Log Analytics Workspace Linux Agent Install First we install the Azure Log Analytics agent on the target linux computer: If everything is ok, the we can check the agent health from Azure: Input plugin configuration Next we configure the configure input plugin by creating a file named log4j_json.conf in location /etc/opt/microsoft/omsagent/<workspace id>/conf/omsagent.d/ The content should be similar with the one bellow:...

July 1, 2022 · 2 min · Alex Popescu

OpenVMS networking install notes

This is not a guide, but a collection of notes about installing OpenVMS and configure networking. In order to install OpenVMS wth AXPbox follow the guide of here, until you get to the networking part. Now for the fun part VirtualBox network configuration: Also, in es40.cfg you need to configure the network interface: pci0.4 = dec21143 { adapter = "enp0s3" mac = "08-00-DE-AD-BE-EF"; } where enp0s3 is the NAT interface of the VirtualBox....

March 26, 2022 · 1 min · Alex Popescu