This directory contains files & scripts to test env-setup on a Tart VM when using Apple Silicon.
The scripts
directory has a few scripts to test the running VM:
- scripts/create-tart-vms: create a 20GB ubuntu & 60GB macos VM.
- scripts/env-setup: test the env-setup script.
- scripts/init: test the init script.
- scripts/scp: scp file/dir into the VM.
- scripts/ssh: ssh into the VM.
- scripts/start: start the VM
- scripts/stop: stop the VM
See the Tart quickstart guide for how to start up a linux VM.
# Create a 20GB ubuntu & 60GB macos VMs:
./scripts/create-tart-vms
# Start VM
./scripts/start ubuntu
# test the init script that's hosted on https://example.com/env-setup
./scripts/init https://example.com/env-setup
# run/setup env-setup with an interactive prompt for the playbook
./scripts/env-setup
# run 01-config env-setup playbook
./scripts/env-setup 01-config
# copy config.yml to VM
./scripts/scp config.yml /Users/admin/env-setup/config.yml
# SSH into VM
./scripts/ssh
# Stop VM
./scripts/stop ubuntu
See the Tart quickstart guide for how to start up a macos VM.
# Create a 20GB ubuntu & 60GB macos VMs:
./scripts/create-tart-vms
# Start VM
./scripts/start sonoma-vanilla
# test the init script that's hosted on https://example.com/env-setup
./scripts/init https://example.com/env-setup
# run/setup env-setup with an interactive prompt for the playbook
./scripts/env-setup
# run 01-config env-setup playbook
./scripts/env-setup 01-config
# copy config.yml to VM
./scripts/scp config.yml /Users/admin/env-setup/config.yml
# SSH into VM
./scripts/ssh
# Stop VM
./scripts/stop sonoma-vanilla
- A mac running on Apple Silicon
- The
tart
&&sshpass
tools installed (brew install cirruslabs/cli/tart && brew install cirruslabs/cli/sshpass
)