- Purpose: Set up a WireGuard VPN Docker bridge network to route specific Docker containers' traffic through a VPN without affecting the host or other containers.
| Based on https://gist.github.com/tadast/8827699: | |
| - remove duplicates | |
| - striped and no unecessary double quotes | |
| - floating point values instead of strings |
Let's say you receive an app (e.g. MyApp.ipa) from another developer, and you want to be able to install and run it on your devices (by using ideviceinstaller, for example).
Or your certificates and provision profiles have expired and you want to provide a new build to your clients without having to make a new build on the latest XCode or iOS SDK.
The first step is to attain a Provisioning Profile which includes all of the devices you wish to install and run on. Ensure that the profile contains a certificate that you have installed in your Keychain Access (e.g. iPhone Developer: Some Body (XXXXXXXXXX) ). Download the profile (MyProfile.mobileprovision) so you can replace the profile embedded in the app.
| #!/bin/bash | |
| killall Xcode | |
| xcrun -k | |
| xcodebuild -alltargets clean | |
| rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
| rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
| sudo rm -rf /Applications/Xcode.app | |
| rm -rf ~/Library/Caches/com.apple.dt.Xcode | |
| rm -rf ~/Library/Developer | |
| rm -rf ~/Library/MobileDevice |
| # Configuration | |
| export PUBLIC_DNS=<public hostname> | |
| export PUBLIC_IP=<public host IP> | |
| export PRIVATE_IP=<private host IP> | |
| mkdir docker-ca | |
| chmod 0700 docker-ca/ | |
| cd docker-ca/ | |
| # CA key |
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.