Rename the image to organic-test since I am going to specialize it with the software needed for running organic-specific tests.
Some checks failed
semver Build semver has succeeded
build-cargo-fmt Build build-cargo-fmt has failed
build-organic-test Build build-organic-test has failed
cargo-fmt Build cargo-fmt has failed
organic-test Build organic-test has failed

This commit is contained in:
Tom Alexander
2023-07-12 23:27:27 -04:00
parent e8a7b50fda
commit e129c29007
3 changed files with 8 additions and 10 deletions

View File

@@ -0,0 +1,3 @@
FROM harbor.fizz.buzz/dockerhub/rustlang/rust:nightly-alpine3.17
RUN apk add --no-cache musl-dev

View File

@@ -0,0 +1,35 @@
IMAGE_NAME:=organic-test
# REMOTE_REPO:=harbor.fizz.buzz/private
.PHONY: all
all: build push
.PHONY: build
build:
docker build -t $(IMAGE_NAME) -f Dockerfile ../
.PHONY: push
push:
ifdef REMOTE_REPO
docker tag $(IMAGE_NAME) $(REMOTE_REPO)/$(IMAGE_NAME)
docker push $(REMOTE_REPO)/$(IMAGE_NAME)
else
@echo "REMOTE_REPO not defined, not pushing to a remote repo."
endif
.PHONY: clean
clean:
docker rmi $(IMAGE_NAME)
ifdef REMOTE_REPO
docker rmi $(REMOTE_REPO)/$(IMAGE_NAME)
else
@echo "REMOTE_REPO not defined, not removing from remote repo."
endif
.PHONY: run
run:
docker run --rm -i -t $(IMAGE_NAME)
.PHONY: shell
shell:
docker run --rm -i -t --entrypoint /bin/bash $(IMAGE_NAME)