Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release-ocm-2.9] MGMT-18332: Use centos stream 9 as the base image for test container #873

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 30 additions & 15 deletions Dockerfile.assisted-installer-build
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
FROM registry.access.redhat.com/ubi9/go-toolset:1.19
FROM registry.access.redhat.com/ubi9/go-toolset:1.18 AS golang

USER 0

ENV GO111MODULE=on
ENV GOFLAGS=""
ENV GOPATH="/go"
ENV PATH="$PATH:$GOPATH/bin"

RUN go install golang.org/x/tools/cmd/goimports@v0.1.0 && \
go install github.com/onsi/ginkgo/ginkgo@v1.16.1 && \
go install github.com/golang/mock/mockgen@v1.6.0 && \
go install gotest.tools/gotestsum@v1.6.3 && \
go install github.com/axw/gocov/gocov@latest && \
go install github.com/AlekSi/gocov-xml@latest
RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.2 && \
go install golang.org/x/tools/cmd/goimports@v0.1.0 && \
go install github.com/onsi/ginkgo/ginkgo@v1.16.1 && \
go install github.com/golang/mock/mockgen@v1.6.0 && \
go install gotest.tools/gotestsum@v1.6.3 && \
go install github.com/axw/gocov/gocov@latest && \
go install github.com/AlekSi/gocov-xml@latest

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 \
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

COPY --from=golang $GOPATH $GOPATH
COPY --from=golang $GOROOT $GOROOT

RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/bin v1.53.1
RUN dnf install -y docker && \
dnf clean all
RUN chmod 775 -R $GOPATH && chmod 775 -R $GOROOT