This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: "3.7" | |
services: | |
tailscale: | |
image: tailscale/tailscale:latest | |
container_name: tailscale | |
hostname: tailscale-nas | |
environment: | |
- TS_AUTHKEY=<AUTHKEY HERE...> | |
- TS_STATE_DIR=/var/lib/tailscale |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Running NPM install in a Docker container which is running on a KubeVirt VM (based on debian) | |
NPM install fails, if you have below libs in package.json | |
@pact-foundation/pact | |
@pact-foundation/pact-node | |
canvas | |
image-webpack-loader | |
Fix: | |
These libs need additional dependencies to be installed at the system level. | |
Add below script to your Dockerfile. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A console.assert which actually stop the exectution. | |
* default console.assert() is a plain display, such as console.log() or console.error(); | |
* It doesnt stop the execution like assert() is meant to do. This is a little code to | |
* "workaround this limitation" :) thanks @jensarp | |
* | |
* Usage: | |
* console.assert(foo === bar); // Will throw if not equal | |
* console.assert(foo === bar, 'Dude, foo does not equal bar'); // Will throw with custom error message | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This issue was due to xcode-select developer directory pointing to /Library/Developer, which only contained the folder CommandLineTools. To this end, the error message is complaining about not the directory not being the same as Xcode. | |
Two tested solutions: | |
(Re) Install Xcode. | |
Point xcode-select to the Xcode Developer Directory using the following command: | |
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer |