-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #93 from atc0005/i92-add-cross-platform-debian-bui…
…ld-image Add cross-platform Debian build image
- Loading branch information
Showing
3 changed files
with
66 additions
and
0 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
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 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,45 @@ | ||
# Copyright 2020 Adam Chalkley | ||
# | ||
# https://github.com/atc0005/go-ci | ||
# | ||
# Licensed under the MIT License. See LICENSE file in the project root for | ||
# full license information. | ||
|
||
# https://hub.docker.com/_/golang | ||
|
||
FROM golang:1.15.2 | ||
|
||
ENV GOLANGCI_LINT_VERSION v1.31.0 | ||
ENV STATICCHECK_VERSION 2020.1.6 | ||
ENV APT_BSDMAINUTILS_VERSION 11.1.2+b1 | ||
ENV APT_TREE_VERSION 1.8.0-1 | ||
ENV APT_GCC_MULTILIB_VERSION 4:8.3.0-1 | ||
ENV APT_GCC_MINGW_W64_VERSION 8.3.0-6+21.3~deb10u1 | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
bsdmainutils=${APT_BSDMAINUTILS_VERSION} \ | ||
tree=${APT_TREE_VERSION} \ | ||
gcc-multilib=${APT_GCC_MULTILIB_VERSION} \ | ||
gcc-mingw-w64=${APT_GCC_MINGW_W64_VERSION} \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN GO111MODULE="on" go get honnef.co/go/tools/cmd/staticcheck@${STATICCHECK_VERSION} \ | ||
&& staticcheck --version \ | ||
&& go clean -cache -modcache \ | ||
&& curl -sSfLO https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh \ | ||
&& sh install.sh -b "$(go env GOPATH)/bin" ${GOLANGCI_LINT_VERSION} \ | ||
&& golangci-lint --version | ||
|
||
# Copy over linting config files to root of container to serve as a default. | ||
# Projects bringing their own config files (e.g., via GitHub Actions) can | ||
# easily override these files, while projects choosing to use these config | ||
# files exclusively can omit their copy. | ||
# | ||
# These files are copied from the root of this repo alongside this Dockerfile | ||
# via Makefile `build` recipe. This allows for maintaining a single copy of | ||
# either file in this repo vs each Dockerfile build "context" having their own | ||
# separate copy. | ||
COPY .markdownlint.yml / | ||
COPY .golangci.yml / |