Skip to content

Bash library for deployment to Google Compute Engine from Arch Linux.

License

Notifications You must be signed in to change notification settings

geoffhill-zz/archgce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

archgce

archgce is a bash shell script library for lightweight deployment to Google Compute Engine from Arch Linux. It provides functions to create a raw disk with Arch Linux installed, and to upload it as a GCE image. Between those steps, the script can install packages and enable services.

It is heavily customized for myself, with my preferred packages, username, GS bucket and some public keys hardcoded.

Requirements

Usage

Create a deployment script (deploy.sh by convention).

#!/bin/bash

. ./archgce/archgce.sh

export ROOT=$PWD/root

SIZE=4G IMAGEHOSTNAME=example.com gce_create

# Install the program and run any configuration...
sudo make install PREFIX=$ROOT/usr/local
sudo arch-chroot $ROOT pacman -S libbsd
sudo arch-chroot $ROOT systemctl enable program.service

gce_unmount_all
IMAGENAME=example gce_publish

Then authenticate and run it:

$ gcloud auth login
$ gcloud config set project example-id
$ ./deploy.sh

This would create a timestamped GCE image in the example-id project:

example.gfrh.net-2016-02-21-1456028317

About

Bash library for deployment to Google Compute Engine from Arch Linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages