Automation coding Containers

Debug a Java Spring Boot application in Docker from IntelliJ

You have a Java Spring Boot application built with Gradle in a Docker container and you need to debug it from your favorite IDE on your host machine (IntelliJ). You can do it by attaching the remote debugger in IntelliJ to your Java application running in Docker. Steps Open port :5005 in the container In […]

coding Software

Golang: be careful with slices

Slices are a great tool in Go, but sometimes they can be confused with arrays. A small reminder: slices are a pointer into an underline array. Let’s take this example: array := []int{1, 2, 3, 4, 5, 6} slice := array[1:3] // let’s print both fmt.Println(“array: “, array) fmt.Println(“slice: “, slice) // array: [1 2 3 […]