Skip to content

Instantly share code, notes, and snippets.

@D3f0
Created October 13, 2023 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save D3f0/cf88360bae09324ebe2f6fa42b093c44 to your computer and use it in GitHub Desktop.
Save D3f0/cf88360bae09324ebe2f6fa42b093c44 to your computer and use it in GitHub Desktop.
A Ubuntu 22.04 LTS lima VM with Python3 (3.10) and Invoke (for Apple Sillicon)
images:
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20231010/ubuntu-22.04-server-cloudimg-arm64.img"
arch: "aarch64"
digest: "sha256:5167c1b13cb33274955e36332ecb7b14f02b71fd19a37a9c1a3a0f8a805ab8e5"
mounts:
- location: "~"
- location: "/tmp/lima"
writable: true
provision:
- mode: system
script: |
#!/bin/bash
sudo apt install -yq python3-full python3-pip
- mode: user
script: |
#!/bin/bash
python3 -m pip install --user pipx
~/.local/bin/pipx ensurepath
pipx install invoke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment