Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating Seismic sensor simulator makefile
- Loading branch information
Showing
1 changed file
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
## Build with version number for test purposes | ||
DOCKER_IMAGE_VERSION=1.0 | ||
DOCKER_IMAGE_NAME=iofog/seismic-sensor-simulator | ||
DOCKER_IMAGE_NAME_ARM=iofog/seismic-sensor-simulator-arm | ||
DOCKER_IMAGE_TAGNAME=$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_VERSION) | ||
DOCKER_IMAGE_TAGNAME_ARM=$(DOCKER_IMAGE_NAME_ARM):$(DOCKER_IMAGE_VERSION) | ||
|
||
default: build | ||
|
||
build: | ||
sudo docker build -t iofog/seismic-sensor-simulator:$(TAG) . | ||
## Push with version number for test purposes | ||
docker build -t $(DOCKER_IMAGE_TAGNAME) . | ||
docker tag $(DOCKER_IMAGE_TAGNAME) $(DOCKER_IMAGE_NAME):latest | ||
|
||
push:build | ||
sudo docker push iofog/seismic-sensor-simulator:$(TAG) | ||
## Tag latest to verified version number | ||
latest: | ||
sudo docker tag iofog/seismic-sensor-simulator:$(TAG) iofog/seismic-sensor-simulator | ||
## Push latest | ||
push-latest:latest | ||
sudo docker push iofog/seismic-sensor-simulator | ||
docker push $(DOCKER_IMAGE_TAGNAME) | ||
docker push $(DOCKER_IMAGE_NAME) | ||
|
||
## Same cmds for arm | ||
build-arm: | ||
sudo docker build -t iofog/seismic-sensor-simulator-arm:$(TAG) -f Dockerfile-arm . | ||
docker build -t $(DOCKER_IMAGE_TAGNAME_ARM) -f Dockerfile-arm . | ||
docker tag $(DOCKER_IMAGE_TAGNAME_ARM) $(DOCKER_IMAGE_NAME_ARM):latest | ||
push-arm:build-arm | ||
sudo docker push iofog/seismic-sensor-simulator-arm:$(TAG) | ||
latest-arm: | ||
sudo docker tag iofog/seismic-sensor-simulator-arm:$(TAG) iofog/seismic-sensor-simulator-arm | ||
push-latest-arm:latest-arm | ||
sudo docker push iofog/seismic-sensor-simulator-arm | ||
docker push $(DOCKER_IMAGE_TAGNAME_ARM) | ||
docker push $(DOCKER_IMAGE_NAME_ARM) |