get shell for docker vm on mac
For setting values on the docker vm on your mac you need to get a shell. Elastic has some statements online that don’t work on latest MacOS (14.1.1 + docker desktop 24.0.6). To get a shell you can use this command:
For setting values on the docker vm on your mac you need to get a shell. Elastic has some statements online that don’t work on latest MacOS (14.1.1 + docker desktop 24.0.6). To get a shell you can use this command:
These two commands result in a file containing a list of all files included in the container image. You can also export the complete container into a tar file:
To allow requests against a Spring Boot REST API from a website it is necessary to configure CORS properly. In case you don’t know your client URLs you can allow all clients by adding a mapping like the following in your Kotlin project: This allows access to all endpoints from all origins via GET, POST …
CORS configuration for REST api accessed from browser Read More »
Docker images from quay.io/keycloak/keycloak don’t contain any commands for a usual healthcheck and installing software is also not trivial. In a discussion on https://github.com/keycloak/keycloak/issues/17273 I found a solution that checks /proc/net/tcp for an open port 8080. That file contains all open ports in hex format. cat and grep are included in the image. So a …
After upgrading to macOS 14.1 my docker installation stopped woring and when I tried to pull an image it answered with the following error message: 192.168.65.0/24 is the configured docker internal network of Docker Desktop. It was running on defaults and I wasn’t aware of any manual changes. DNS of my host system worked properly: …
spritpreisrechner.at is a project from e-control and Austrian government to gather fuel prices all over the country. There is a Swagger 2 specification of the API by e-control to use the data. But the host used in that spec doesn’t exist anymore nor should you use swagger 2 for a project in 2023. I updated …
I’m using PostgreSQL in a lot of projects and in my dev environments I always run it with docker-compose. But configuring it properly isn’t so clear if you want to use proper time zone and a health check. Attached the config with a custom database name “db” and an admin user. With this pg_isready is …
Start PostgreSQL correctly with docker-compose.yml Read More »
I was looking for an easy way to create scheduled posts on facebook. Though I didn’t find a fully automated way I was able to create a process that only needs manual steps every 60 days. With the app created on facebook developer pages I first need the clientId (appId) and clientSecret (appSecret). The first …
There is no need for extra software for converting video files as long as you’re not afraid of using the shell of your Linux or MacOS. ffpmeg can do a lot for you. For streaming and uploading videos, WebM is the better option because it’s highly compatible with modern browsers and popular for HTML5. For higher-quality …
My intellij 2023.2 continued to repeatedly index something and it was obvious that it was the same again and again. The typical suggestions to invalidate caches plus restart didn’t work. Then I found the suggestion to edit the custom properties file via Help > Edit Custom Properties and add the following: Taken from https://www.jetbrains.com/help/objc/configuring-file-size-limit.html this …