I work on a Chromebook (it’s generally awesome, except for local development)
Running a (premptable) big server for even 40 hours a month is much cheaper than buying a good
dev workstation
It forces me to make things as simple as possible, which means lower barriers to entry to anyone
who wants to help.
Disclaimer
This is not an official Google product.
Key steps to set this up
Basic setup
GCE Ubuntu 16 comes with curl and git and bash. If you don’t have those, add them.
External IP / Synamic DNS integration
Preemptable instances habe ephemeral external IPs - the IP goes away when the instance is shut down.
To make it easier to use, use a dynamic DNS service - like DuckDNS (which is free).
To setup DuckDNS - get the Curl URL from your DuckDNS page, and put the hostname and the token in
/etc/duckdns.env. It should look like this, but with your values:
Setting up this instance
Why
Because:
Disclaimer
This is not an official Google product.
Key steps to set this up
Basic setup
GCE Ubuntu 16 comes with
curlandgitandbash. If you don’t have those, add them.External IP / Synamic DNS integration
Preemptable instances habe ephemeral external IPs - the IP goes away when the instance is shut down.
To make it easier to use, use a dynamic DNS service - like DuckDNS (which is free).
To setup DuckDNS - get the Curl URL from your DuckDNS page, and put the hostname and the token in
/etc/duckdns.env. It should look like this, but with your values:Then set up the service:
In case you want to check the IP from the machine itself:
Install Docker
Install the Docker repos and Docker, which are generally much more recent than the Ubuntu maintained docker.io package:
Add your user to the docker group - makes life easyier:
Thin logout and log back in.
Install docker-compose
A script to just get the latest non-rc version of docker-compose:
Setup an ssh key
Because you’re on GCE (just guessing…):
Add the public SSH key to your code repo of choice.
Setup GIT
Let git know who you are:
Auto Shutdown
If you want to automatically shutdown the server instance so you’re not charged for time you’re not using: