When building an Elixir application docker image on an arm64 platform, the process crashes with a variety of errors:
- Segmentation fault
- Error code 139
- Error code 143
- Memory request of some enormous size
When building an Elixir application docker image on an arm64 platform, the process crashes with a variety of errors:
Ubuntu Studio only offers amd64 downloads. These can run in a VM in emulation mode which is slow. The sequence to install an equivalent system in arm64 is the following:
sudo apt update && sudo apt upgrade
Disable:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Enable:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
=== | |
Create a raw image | |
=== | |
# Find the drive identifier | |
diskutil list | |
# Unmount the cached drive representation | |
diskutil unmountDisk <disk> |
In zsh
theme file:
# Dm: docker machine
prompt_dm() {
local dm="$DOCKER_MACHINE_NAME"
if [[ -n $dm ]]; then
prompt_segment 020 159 $dm
fi
}
Note that this setup may be a moot point as there are important issues when running RT under WSL. One is the overall low performance compared to a Linux in a Virtual Box setup. Another is repeatable freezes of the VM when the contents of the directory currently open in RT are modified on the host. For these and other reasons the Virtual Box setup turned out to be superior to the WSL.
The credit for WSL setup for graphical apps belongs to https://medium.com/@jeffborch/running-the-scenic-elixir-gui-framework-on-windows-10-using-wsl-f9c01fd276f6.
# Install llvm 10 | |
brew install llvm | |
# or brew install llvm@10 if it is not the last one anymore | |
# Clone the repo | |
cd <some directory> | |
git clone [email protected]:Beep6581/RawTherapee.git | |
cd RawTherapee |
# Install llvm@8 | |
brew install llvm@8 | |
# Clone the repo | |
cd <some directory> | |
git clone [email protected]:Beep6581/RawTherapee.git | |
cd RawTherapee |
noindex () { | |
mdutil -i off . | |
sudo rm -rf .{,_.}{fseventsd,Spotlight-V*,Trashes,DocumentRevisions-V*} | |
mkdir .fseventsd | |
touch .fseventsd/no_log .metadata_never_index .Trashes | |
echo "Done" | |
} |