From 9badb913857f961f55973c82bc15fe871fcf32f3 Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Wed, 13 Jan 2021 00:00:33 +0100 Subject: [PATCH] cmake(ci): Update vagrant management --- cmake/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/cmake/Makefile b/cmake/Makefile index e5bab2b042..64161b4ad5 100644 --- a/cmake/Makefile +++ b/cmake/Makefile @@ -23,6 +23,7 @@ help: @echo -e "\t${BOLD}save_${RESET}: Save docker images for ALL DISTROS." @echo -e "\t${BOLD}save__${RESET}: Save the docker image for a specific distro." @echo -e "\t${BOLD}sh__${RESET}: run a container using the docker image specified (debug purpose)." + @echo -e "\t${BOLD}clean__${RESET}: Remove the docker image (and the save archive if any) for a specific distro." @echo @echo -e "\t${BOLD}${RESET}: build docker images for ALL DISTROS and ALL LANGUAGES." @echo -e "\t${BOLD}_${RESET}: build docker images for a specific distro for ALL LANGUAGES." @@ -33,6 +34,7 @@ help: @echo -e "\t${BOLD}save__${RESET}: Save docker images for ALL DISTRO for a specific language." @echo -e "\t${BOLD}save___${RESET}: Save the docker image for a specific distro for a specific language." @echo -e "\t${BOLD}sh___${RESET}: run a container using the docker image specified (debug purpose)." + @echo -e "\t${BOLD}clean___${RESET}: Remove the docker image (and the save archive if any) for a specific distro." @echo @echo -e "\tWith ${BOLD}${RESET}:" @echo -e "\t\t${BOLD}alpine${RESET} (edge)" @@ -76,8 +78,15 @@ help: @echo -e "\t\t${BOLD}freebsd${RESET} (FreeBSD)" @echo @echo - @echo -e "\t${BOLD}glop_${RESET}: build for glop using an ubuntu docker." - @echo -e "\t${BOLD}arm__${RESET}: cross build docker image for for aarch64." + @echo -e "\t${BOLD}glop_${RESET}: Build Glop using an Ubuntu:rolling docker image." + @echo -e "\t${BOLD}save_glop_${RESET}: Save Glop using an Ubuntu:rolling docker image." + @echo -e "\t${BOLD}sh_glop_${RESET}: Run a Glop container using an Ubuntu:rolling docker image (debug purpose)." + @echo -e "\t${BOLD}clean_glop_${RESET}: Remove the Glop docker image (and the save archive if any) for a specific distro." + @echo + @echo + @echo -e "\t${BOLD}arm__${RESET}: cross build for aarch64 the docker image." + @echo -e "\t${BOLD}save_arm__${RESET}: Save for aarch64 the docker images." + @echo -e "\t${BOLD}clean_arm__${RESET}: Remove for aarch64 the docker image (and the save archive if any)." @echo @echo -e "\tWith ${BOLD}${RESET}:" @echo -e "\t\t${BOLD}glop${RESET} Build libglop" @@ -323,12 +332,14 @@ targets_freebsd = $(addprefix freebsd_, $(LANGUAGES)) freebsd: $(targets_freebsd) $(targets_freebsd): freebsd_%: vagrant/freebsd/%/Vagrantfile @cd vagrant/freebsd/$* && vagrant destroy -f + cd vagrant/freebsd/$* && vagrant box update cd vagrant/freebsd/$* && vagrant up # SSH to a freebsd_ vagrant machine (debug). targets_freebsd = $(addprefix sh_freebsd_, $(LANGUAGES)) .PHONY: $(targets_freebsd) $(targets_freebsd): sh_freebsd_%: + cd vagrant/freebsd/$* && vagrant up cd vagrant/freebsd/$* && vagrant ssh # Clean FreeBSD vagrant machine