Repo hkjninfra holds infrastructure configs for hkjn.me and other projects.
A dockerized Terraform alias tf
can be added to our shell by:
source tf_dockerized.sh
After this, we can use tf plan
, tf apply
and other commands.
An alias for working with a dockerized set of gcloud
tools can be
added by the command:
source gcloud_dockerized.sh
After this, the gcd
command enters an interactive container which
can work towards the GCE project.
The user-data
field for CoreOS machines is in Ignition format:
The ignite.py
script generates the Ignition .json
configs, which
tells the instances what tasks should be done on first boot:
python ignite.py
The run_tests
script runs all relevant tests. It can be added to git
pre-push and pre-commit hooks by doing:
cd .git/hooks
ln -s ../../run_tests pre-commit
ln -s ../../run_tests pre-push