Skip to content

Latest commit

 

History

History

vm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

env-setup test vm scripts

This directory contains files & scripts to test env-setup on a Tart VM when using Apple Silicon.

test scripts

The scripts directory has a few scripts to test the running VM:

linux

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

macos

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

Prerequisites

  • A mac running on Apple Silicon
  • The tart && sshpass tools installed (brew install cirruslabs/cli/tart && brew install cirruslabs/cli/sshpass)

Notes