# Start Rosetta shell
arch -x86_64 $SHELL
# Install x86_64 Homebrew in /usr/local/bin (as opposed to /opt/homebrew/bin):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Create virtualenv for native macOS Python 2.7 (since we can't build vanilla Python 2.7 on M1):
# (Note: Due to the arm64e issue, we need to use x86_64 Python)
virtualenv -p python2.7 venv
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
docker run \ | |
{{- with .HostConfig}} | |
{{- if .Privileged}} | |
--privileged \ | |
{{- end}} | |
{{- if .AutoRemove}} | |
--rm \ | |
{{- end}} | |
{{- range $b := .Binds}} | |
--volume {{printf "%q" $b}} \ |
The following is based on this prompt to Claude:
Design a solution to build artifacts from several Git repos that all use the same compiler flags. We do not want to use a central makefile for this. The repos are all built using a specific Docker image that includes all the build tools. How should we store and cache the artifacts, and retrieve the relevant versions?
I'll design a solution that focuses on consistency, reusability, and efficient artifact management. Here's a comprehensive approach:
- Compiler Flags Management:
# compiler-config.yaml (stored in a separate config repo)
compiler:
OlderNewer