-
Notifications
You must be signed in to change notification settings - Fork 18
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 #416 from qlik-oss/bump-alpine-golang
Go 1.19
- Loading branch information
Showing
6 changed files
with
149 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
FROM hairyhenderson/gomplate:v3.10.0-slim AS gomplate | ||
FROM docker:23.0.1 AS docker | ||
FROM docker/compose:1.29.2 AS compose | ||
FROM vault:1.9.3 AS vault | ||
FROM hashicorp/terraform:1.1.5 AS terraform | ||
FROM hashicorp/packer:1.7.10 AS packer | ||
FROM prom/prometheus:v2.33.1 AS prometheus | ||
FROM prom/alertmanager:v0.23.0 AS alertmanager | ||
FROM mikefarah/yq:4.18.1 AS yq | ||
FROM lachlanevenson/k8s-kubectl:v1.21.9 AS kubectl | ||
FROM lachlanevenson/k8s-helm:v3.10.2 AS helm2 | ||
FROM lachlanevenson/k8s-helm:v3.8.0 AS helm | ||
FROM golangci/golangci-lint:v1.44.0-alpine AS golangci-lint | ||
|
||
FROM alpine:3.18 AS cc-test-reporter | ||
|
||
RUN wget -q -O /bin/cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 | ||
RUN chmod +x /bin/cc-test-reporter | ||
|
||
FROM alpine:3.18 AS packages | ||
|
||
RUN apk add --no-cache \ | ||
zip \ | ||
unzip \ | ||
bats \ | ||
bash \ | ||
grep \ | ||
sed \ | ||
make \ | ||
jq \ | ||
curl \ | ||
git \ | ||
python3 \ | ||
py3-pip \ | ||
openssh-client \ | ||
openssl \ | ||
libgcc \ | ||
build-base | ||
|
||
ENV GLIBC=2.35-r1 | ||
|
||
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub | ||
|
||
COPY awscli-requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt | ||
RUN rm -rf requirements.txt ~/.cache | ||
|
||
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/$GLIBC/glibc-$GLIBC.apk \ | ||
&& apk add --no-cache glibc-$GLIBC.apk \ | ||
&& rm glibc-$GLIBC.apk \ | ||
&& ln -s /lib/libz.so.1 /usr/glibc-compat/lib \ | ||
&& ln -s /lib/libc.musl-x86_64.so.1 /usr/glibc-compat/lib \ | ||
&& ln -s /usr/lib/libgcc_s.so.1 /usr/glibc-compat/lib | ||
|
||
FROM golang:1.18.1-alpine AS build | ||
|
||
COPY --from=gomplate /gomplate /bin/gomplate | ||
COPY --from=docker /usr/local/bin/docker /bin/docker | ||
COPY --from=vault /bin/vault /bin/vault | ||
COPY --from=terraform /bin/terraform /bin/terraform | ||
COPY --from=packer /bin/packer /bin/packer | ||
COPY --from=prometheus /bin/promtool /bin/promtool | ||
COPY --from=alertmanager /bin/amtool /bin/amtool | ||
COPY --from=yq /usr/bin/yq /usr/bin/yq | ||
COPY --from=compose /usr/local/bin/docker-compose /bin/docker-compose | ||
COPY --from=kubectl /usr/local/bin/kubectl /usr/local/bin/kubectl | ||
COPY --from=helm2 /usr/local/bin/helm /usr/local/bin/helm2 | ||
COPY --from=helm /usr/local/bin/helm /usr/local/bin/helm | ||
COPY --from=cc-test-reporter /bin/cc-test-reporter /bin/cc-test-reporter | ||
COPY --from=golangci-lint /usr/bin/golangci-lint /bin/ | ||
|
||
COPY --from=packages / / |
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,21 @@ | ||
# qlik/go-build-1.18 | ||
|
||
This image is built to support building Go-based projects in CircleCI. It comes | ||
populated with software generally useful for building and deploying. See the | ||
`Dockerfile` in this folder for details. | ||
|
||
**This image is a backward compatibility image avaiable for Go 1.18 only.** | ||
|
||
## Third-Party Licenses | ||
|
||
See the git repository for the source code information: https://github.com/qlik-oss/dockerfiles/blob/master/LICENSE | ||
|
||
As with all Docker images, these also contain other software which may be under other licenses, along with any direct or indirect dependencies of the primary software being contained. | ||
|
||
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within. | ||
|
||
The licenses of the contained software can be determined by inspecting the [Dockerfile](https://github.com/qlik-oss/dockerfiles/blob/master/go-build-1.18/Dockerfile) | ||
|
||
## Unsupported | ||
|
||
The source code (Dockerfiles) and binaries (container images) that result are provided for convenience, and not supported in any way. |
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,12 @@ | ||
awscli==1.22.47 | ||
botocore==1.23.47 | ||
colorama==0.4.3 | ||
docutils==0.15.2 | ||
jmespath==0.10.0 | ||
pyasn1==0.4.8 | ||
python-dateutil==2.8.2 | ||
PyYAML==5.4.1 | ||
rsa==4.7.2 | ||
s3transfer==0.5.1 | ||
six==1.16.0 | ||
urllib3==1.26.8 |
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,5 @@ | ||
name: go-build-1.18 | ||
description: | | ||
This image is built to support building Go-based projects in CircleCI. It comes | ||
populated with software generally useful for building and deploying. See the | ||
`Dockerfile` in this folder for details. |
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