Base repo for custom alpine docker container, with nodejs and chromium
make [...] to control the project workflow
docker build \
-f "Dockerfile" \
--compress \
--build-arg VCS_REF=$(VCS_REF) \
--build-arg BUILD_DATE=$(BUILD_DATE) \
--build-arg VERSION=v$(VERSION) \
-t $(TARGET):$(LATEST) .
@docker build \
-f "Dockerfile" \
--no-cache \
--rm \
--compress \
--build-arg VCS_REF=$(VCS_REF) \
--build-arg BUILD_DATE=$(BUILD_DATE) \
--build-arg VERSION=$(VERSION) \
-t $(TARGET):$(LATEST) .
@docker build \
-f "Dockerfile" \
--no-cache \
--rm \
--squash \
--compress \
--build-arg VCS_REF=$(VCS_REF) \
--build-arg BUILD_DATE=$(BUILD_DATE) \
--build-arg VERSION=$(VERSION)-$(SQUASH) \
-t $(TARGET):$(VERSION)-$(SQUASH) .
docker run $(TARGET):$(LATEST)
[shell]$ make run-d -- run latest version demonized with prod conf (#TODO: add seccom policy and low lev sys users outside at the host level)
docker run -d -p 3100:3100 --restart always --name $(IMAGE) $(TARGET):$(LATEST)
docker run -it $(TARGET):$(LATEST) $(SHELL_INT)
docker build --rm -f "Dockerfile" -t $(TARGET):$(TEST) .
docker run --rm $(TARGET):$(TEST)
[shell]$ make build-tag -- Make local build from scratch and tag it with latest and version number from file VERSION
docker logs -f $(IMAGE)
[shell]$ make push-repo -- !!!TO BE USED ON LOCAL DEV ENV!!! Add and commit all changes and push them to the origin master
git add . && git commit -m "Commit: $(VCS_REF) - Release: $(TARGET):$(VERSION)" && git push origin master
docker tag $(TARGET):$(LATEST) $(TARGET):$(VERSION)