Verbindung mit dem VPN der FH Dortmund aufbauen unter Ubuntu
sudo apt-get install -y openconnect iptables expect
sudo openconnect vpngate.fh-dortmund.de
Verbindung mit dem VPN der FH Dortmund aufbauen unter Ubuntu
sudo apt-get install -y openconnect iptables expect
sudo openconnect vpngate.fh-dortmund.de
This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.
First be sure to enable the Docker Remote API on the remote host.
This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.
Nginx can be configured to route to a backend, based on the server's domain name, which is included in the SSL/TLS handshake (Server Name Indication, SNI).
This works for http upstream servers, but also for other protocols, that can be secured with TLS.
nginx -V
for the following:
...
TLS SNI support enabled
This is not running yet, but nearly almost
First install a WSL2 with Ubuntu 20.04 as described at Microsoft
Enter wsl shell
This is tested with Traefik 1.7
This is how to redirect the root or base path to a sub path in Traefik using Docker labels:
Goals
https://example.com
-> https://example.com/abc/xyz/
https://example.com/
-> https://example.com/abc/xyz/
https://example.com/something
-> no redirectWith Docker (especially with Buildkit) you have the ability to share your images as build cache for other computers.
When running the following docker build command, Buildkit will download cache information from the images, referenced with --cache-from
.
export IMAGE="my-registry.example.com/myproject/myapp:feature-1234"
export IMAGE_LATEST="my-registry.example.com/myproject/myapp:latest"
export DOCKER_BUILDKIT=1
This is how to copy your files from a given git branch to a new empty branch, using a squash merge.
This example will copy files from branch old-branch
to target-branch
# First be sure, that you don't have uncommitted working changes. They will be deleted
# Checkout a new empty branch without history
git checkout --orphan target-branch
Hibernate 4 introduced a new Audit API for event listening.
org.hibernate.envers.event.AuditEventListener
was replaced by org.hibernate.event.spi.*
,
for example org.hibernate.event.spi.PostDeleteEventListener
.
First create your custom listener. Example: You want do disable auditing for delete operations.
import org.hibernate.envers.event.spi.EnversPostDeleteEventListenerImpl;
import org.hibernate.event.spi.PostDeleteEvent;
public class MyAuditListener extends EnversPostDeleteEventListenerImpl {