I try to create a make task which do fig up
and install fig and docker in case when they don't installed. Problem which I try to address is a easy way to work with a project for newcomers.
I finished with something like this:
.PHONY: up
up:
command -v docker >/dev/null 2>&1 || {\
curl -sSL https://get.docker.com/ubuntu/ | sudo sh;\
};\
command -v fig >/dev/null 2>&1 || {\
curl -L https://github.com/docker/fig/releases/download/1.0.1/fig-`uname -s`-`uname -m` > /usr/local/bin/fig; chmod +x /usr/local/bin/fig;\
};
fig up;
and realized that it's not a simple task. Is there a community adopted way to install and run docker and fig with make?