-
Notifications
You must be signed in to change notification settings - Fork 82
/
Dockerfile.assisted_installer_agent-build
38 lines (31 loc) · 1.31 KB
/
Dockerfile.assisted_installer_agent-build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM registry.access.redhat.com/ubi9/go-toolset:1.21 AS golang
ENV GOFLAGS=""
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.56.0 && \
go install golang.org/x/tools/cmd/[email protected] && \
go install github.com/onsi/ginkgo/[email protected] && \
go install github.com/golang/mock/[email protected] && \
go install github.com/vektra/mockery/[email protected] && \
go install gotest.tools/[email protected] && \
go install github.com/axw/gocov/[email protected] && \
go install github.com/AlekSi/[email protected]
FROM quay.io/centos/centos:stream9
RUN dnf install -y 'dnf-command(config-manager)' && \
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo && \
dnf install -y \
docker-ce \
docker-ce-cli \
containerd.io \
docker-compose-plugin \
make \
git \
openssl-devel \
gcc \
&& dnf clean all
ENV GOROOT=/usr/lib/golang
ENV GOPATH=/opt/app-root/src/go
ENV PATH=$PATH:$GOROOT/bin:$GOPATH/bin
# required due to issue https://github.com/docker/compose/issues/4060
ENV LANG=en_US.UTF-8
COPY --from=golang $GOPATH $GOPATH
COPY --from=golang $GOROOT $GOROOT
RUN chmod 775 -R $GOPATH && chmod 775 -R $GOROOT