onevcat / objc-image-packer

Book build image for ObjCCN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Packer for ObjCCN books

Install Packer to get started.

Ref: tart templates

Init

packer init config.pkr.hcl

Build Xcode image

packer build -var-file="variables.pkrvars.hcl" templates/xcode.pkr.hcl

Build LaTex image

packer build -var-file="variables.pkrvars.hcl" templates/latex.pkr.hcl

Push an image

# Set user name and personal access token in .env
export $(cat .env | xargs) && tart push ventura-xcode-14.3-latex:latest ghcr.io/onevcat/ventura-xcode-14.3-latex:latest

Clone and Use VM

tart clone ghcr.io/onevcat/ventura-xcode-14.3-latex:latest my_vm
tart run --dir=src:~/Documents/somefolder my_vm

# Headless mode
# tart run --no-graphics --dir=src:~/Documents/somefolder my_vm

# Connect with SSH
ssh admin@$(tart ip my_vm)

About

Book build image for ObjCCN


Languages

Language:HCL 100.0%