Skip to content

Commit

Permalink
Docker image is now based on latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaupu committed Nov 5, 2017
1 parent d347043 commit d0e7eb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.scratch
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM scratch
COPY bin/freenas-provisioner /
CMD ["/freenas-provisioner"]
COPY tmp/freenas-provisioner /
ENTRYPOINT ["/freenas-provisioner"]
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
BIN=bin

IMAGE_NAME=freenas-provisioner
IMAGE_VERSION=1.0
REMOTE_NAME=$(DOCKER_ID_USER)/$(IMAGE_NAME)

all: build
Expand All @@ -11,7 +12,8 @@ fmt:
tmp:
mkdir -p tmp/

image: tmp $(BIN)/freenas-provisioner check-docker-hub
image: tmp check-docker-hub
wget -O tmp/freenas-provisioner https://github.com/nmaupu/freenas-provisioner/releases/download/v$(IMAGE_VERSION)/freenas-provisioner_linux-amd64
docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) -f Dockerfile.scratch .

tag: image
Expand Down

0 comments on commit d0e7eb6

Please sign in to comment.