forked from hashicorp/consul
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CONSUL-441] Update windows dockerfile with version
- Loading branch information
Showing
6 changed files
with
33 additions
and
33 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,5 +1,5 @@ | ||
FROM mcr.microsoft.com/windows/servercore:1809 | ||
ENV VERSION=1.12.0 | ||
ARG VERSION=1.13.1 | ||
|
||
LABEL org.opencontainers.image.authors="Consul Team <[email protected]>" \ | ||
org.opencontainers.image.url="https://www.consul.io/" \ | ||
|
@@ -8,7 +8,8 @@ LABEL org.opencontainers.image.authors="Consul Team <[email protected]>" \ | |
org.opencontainers.image.version=$VERSION \ | ||
org.opencontainers.image.vendor="HashiCorp" \ | ||
org.opencontainers.image.title="consul" \ | ||
org.opencontainers.image.description="Consul is a datacenter runtime that provides service discovery, configuration, and orchestration." | ||
org.opencontainers.image.description="Consul is a datacenter runtime that provides service discovery, configuration, and orchestration." \ | ||
version=${VERSION} | ||
|
||
RUN ["powershell", "Set-ExecutionPolicy", "Bypass", "-Scope", "Process", "-Force;"] | ||
RUN ["powershell", "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"] | ||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ARG VERSION=1.13.1 | ||
|
||
FROM windows/consul:${VERSION}-local | ||
COPY dist/ C:\\consul |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd ../ | ||
rm -rf dist | ||
|
||
export GOOS=windows GOARCH=amd64 | ||
VERSION=1.13.1 | ||
CONSUL_BUILDDATE=$(date +"%Y-%m-%dT%H:%M:%SZ") | ||
GIT_IMPORT=github.com/hashicorp/consul/version | ||
GOLDFLAGS=" -X $GIT_IMPORT.Version=$VERSION -X $GIT_IMPORT.VersionPrerelease=dev -X $GIT_IMPORT.BuildDate=$CONSUL_BUILDDATE " | ||
|
||
go build -ldflags "$GOLDFLAGS" -o ./dist/ . | ||
|
||
docker build -t windows/consul:${VERSION}-dev -f ./build-support-windows/Dockerfile-consul-dev-windows . --build-arg VERSION=${VERSION} |
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
This file was deleted.
Oops, something went wrong.
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