diff --git a/examples/cloud/.gitignore b/examples/cloud/.gitignore index 6354e20..123b577 100644 --- a/examples/cloud/.gitignore +++ b/examples/cloud/.gitignore @@ -1,2 +1,3 @@ +opack-cloud opack_deploy_* opack_installer_* diff --git a/examples/cloud/Makefile b/examples/cloud/Makefile index 641267d..d6c3e8b 100644 --- a/examples/cloud/Makefile +++ b/examples/cloud/Makefile @@ -1,11 +1,17 @@ -OPACK_TARGET=testopack-cloud -OPACK_SYS_HEADLESS=false -OPACK_SYS_DISK_SIZE=10000 -OPACK_SYS_VERSION=snapshots -OPACK_GCE_PROJECT=testopack -OPACK_GCE_JSON_KEY=testopack-d1757c226a45.json -OPACK_GCE_BUCKET=testopack +OPACK_TARGET= testopack-cloud +OPACK_SYS_VERSION= snapshots +OPACK_SYS_DISK_SIZE= 10000 + +OPACK_GCE_PROJECT= testopack +OPACK_GCE_JSON_KEY= testopack-342b60ffed47.json + +OPACK_AUTODISKLABEL_FILE= $(shell realpath ./autodisklabel) include ../../src/opack.mk all: opack-cloud + ssh -i $(OPACK_SYS_SSH_PRIVATE_KEY) \ + -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \ + $(OPACK_SYS_USER)@$(shell cat opack-cloud) \ + "sysctl -n kern.version; uptime;" 2> /dev/null + diff --git a/examples/cloud/autodisklabel b/examples/cloud/autodisklabel new file mode 100644 index 0000000..a896e72 --- /dev/null +++ b/examples/cloud/autodisklabel @@ -0,0 +1,5 @@ +/ 1G-* 80% +swap 1G-2G 2% +/tmp 1G-4G 4% +/usr 1G-* 4% +/usr/local 2G-* 10% diff --git a/examples/overrides/Makefile b/examples/overrides/Makefile new file mode 100644 index 0000000..5fef85e --- /dev/null +++ b/examples/overrides/Makefile @@ -0,0 +1,10 @@ +OPACK_TARGET= run-current +OPACK_SYS_VERSION= snapshots +OPACK_SYS_CPU= 4 +OPACK_SYS_MEMORY= 1024 + +include ../../src/opack.mk + +all: opack + vagrant ssh -c "uname -a; sysctl -n kern.version" +