Bash Scripts In recent years, with the rise of DevOps practice, shell scripting is more and more important. As most popular shell is Bash, when we talk about scripting we are thinking of Bash scripts. For sure it lacks higher-level constructs like data structures or JSON support but it makes...
[Read More]
Squashing Docker Images
Using docker --squash to shrink image size
Docker Image Layers When building Docker image it is build in layers. Each line in the Dockerfile is potentially a new read only layer containing the difference from the last one. There are a lot of rules and best practices how to write efficient Dockerfiles. Multi-stage builds is for sure...
[Read More]
Enabling Docker Experimental Features for Docker Desktop
And using it from Windows and WSL CLI
Turning On Experimental Features Docker has some nice and useful experimental features. Unfortunately some of those, like squash are experimental since Docker 1.13. By default, Docker Desktop (Windows Client) doesn’t have those features turned on. To turn them on, you need to go to Settings page. But Command Line option...
[Read More]
Installing IBM API Connect v2018.x into Single Virtual Machine
Want to Run API Connect Locally?
I’ve written comprehensive blog post how API Connect 2018 can be installed on the local machine.
Blog entry is available here
GitHub repository to automate the process
Video tutorial of the same
[Read More]
How Do You Exit SSH Connection When Exit or Ctrl+D Doesn't Work?
Keyboard sequence to terminate SSH connection
Communication Breakdown Recently I had an issue connecting to the remote server via SSH that for some reason was not responding to commands. Communication looked like this: miro@mresetar:~$ ssh -l root 10.99.98.136 root@10.99.98.136's password: Last login: Wed Feb 26 08:52:20 2020 from 192.168.126.233 exit Connection to 10.99.98.136 closed. Did you...
[Read More]
Being Your Own Certificate Authority
Useful openssl commands to create certificates
Originally posted on Medium. Generating Self-Signed Certificates From time to time there is a need to generate X.509 certificates. In some cases it is enough to generate self signed certificates. This can be achieved by one-line command such as: openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key...
[Read More]