This is a simplified makefile for making it easy to to rebuild whatever needs rebuilding when touching any of the protocol buffer files or other source files for either the server or the cli.
For convenience, I use an alias:
$ alias m="make -f amp.makefile"
Then I just invoke m
to make all
, and then m deploy
to update the stack,
then restart logs in another terminal (docker service logs -f amplifier_amplifier
).
The deploy
rule depends on stacksamples/amplifier-lite.yml
under cluster/agent
,
and disables registration and notifications. It uses configs and secrets stored under
cluster/agent/defaults
, but registration and notifications are overridden by
environment variables in the compose file. Note that the deploy
rule ensures
that the current version from the repo's VERSION file is supplied as the image TAG
to the compose file.