vagrant up
on nomad-server- replace ip
script.sh
andnomad.d/*.hcl
- if changing IP,
vagrant reload --provision
- replace ip
vagrant up
on nomad-client- replace ip
script.sh
andnomad.d/*.hcl
- if changing IP,
vagrant reload --provision
- replace ip
- Check the UI
- Nomad UI - http://[nomad-server]:4646
- Consul UI - http://[nomad-server]:8500
- Create a S3 Bucket
- Replace
s3://gs-mysql-dump/
to your bucket name in thedump-mysql.sh
,init.sh
, andperiodic-backup.hcl
.
nomad job run mysql.hcl
- when the first time,
mysql -h ${MYSQL_HOST} -u root -prooooot -D handson -e "drop table if exists animals"
mysql -h ${MYSQL_HOST} -u root -prooooot -D handson -e "create table animals (animal varchar(100));"
- when the first time,
nomad job run ui-java.hcl
- Open the browser.
http://[nomad-client]:8080/
- Open the browser.
./insert-dog.sh
nomad job run parameterized-toupper.hcl
echo "cat" | nomad job dispatch r2-parameterized-toUpper -
nomad job run front-api-go.hcl
curl [nomad-client]:8888/animal/pig
nomad job run periodic-backup.hcl
nomad job run periodic-curl.hcl
./init.sh