As a developer not in a startup, we do not have any proxy to setup. So we use to develop as usual in a beautiful world! But, when deploying for the first time in a particular production environment, we can often have some surprise!
Here my surprise was the squid proxy! Our API is behind a squid proxy…
But how to recreate the environment when coding/testing? Docker-compose is the solution!
Let’s create the docker-compose
extends: file: ./docker-compose.dev.yml
command: "npm run test"
no_proxy: localhost, 127.0.0.1, elasticsearch
Running this compose file, now I run my tests without changing my env var..
On my macbook pro with 128Gb, I’ve uninstall xcode (take almost 12Gb, 10% of the storage!).
Once removed, I’ve notice that homebrew is looking for xcode…
$> brew install dotnet
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist
sudo xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for command line developer tools, or use
xcode-select --install to install the standalone command line develo
man xcode-select for more details.
Wait! So when calling
$> xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Cool! I’m stuck…
In fact, I just have to switch to the CommandLine installed
$> sudo xcode-select --switch /Library/Developer/CommandLineTools
A way to monitor dd progress under macOS
As usual, when doing a dd under macOS (even on *nix system), we do not have any progress info… The normal way is to send INFO signal to the process.
killall -INFO dd
An alternative is to use pv, but that is not provided on macOS.
Continue reading dd progress under macOS