mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
831dbc70f9
The golangci-lint install script at goreleaser.com is deprecated. Docs
now advise to install from a github link:
goreleaser/godownloader#207
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit f3ed883df9
)
52 lines
1.4 KiB
Docker
52 lines
1.4 KiB
Docker
# Container image for running the Ceph-CSI tests
|
|
#
|
|
# This container is based on Fedora so that recent versions of tools can easily
|
|
# be installed.
|
|
#
|
|
# Production containers are based one ceph/ceph:latest, which use CentOS as
|
|
# Operating System, so generated binaries and versions of dependencies may be a
|
|
# little different.
|
|
#
|
|
|
|
FROM registry.fedoraproject.org/fedora:latest
|
|
|
|
ARG GOPATH=/go
|
|
|
|
ENV \
|
|
GOPATH=${GOPATH} \
|
|
GO111MODULE=on \
|
|
PATH="${GOPATH}/bin:/opt/commitlint/node_modules/.bin:${PATH}"
|
|
|
|
COPY build.env /
|
|
|
|
RUN source /build.env \
|
|
&& dnf -y install \
|
|
git \
|
|
make \
|
|
golang \
|
|
gcc \
|
|
librados-devel \
|
|
librbd-devel \
|
|
rubygems \
|
|
ShellCheck \
|
|
yamllint \
|
|
npm \
|
|
diffutils \
|
|
python3-prettytable \
|
|
pylint \
|
|
&& dnf -y update \
|
|
&& dnf -y clean all \
|
|
&& gem install mdl \
|
|
&& curl -sf "https://raw.githubusercontent.com/golangci/golangci-lint/${GOLANGCI_VERSION}/install.sh" \
|
|
| bash -s -- -b ${GOPATH}/bin "${GOLANGCI_VERSION}" \
|
|
&& curl -sfL "https://raw.githubusercontent.com/securego/gosec/master/install.sh" \
|
|
| sh -s -- -b $GOPATH/bin "${GOSEC_VERSION}" \
|
|
&& curl -L https://git.io/get_helm.sh | bash -s -- --version "${HELM_VERSION}" \
|
|
&& mkdir /opt/commitlint && pushd /opt/commitlint \
|
|
&& npm init -y \
|
|
&& npm install @commitlint/cli \
|
|
&& popd \
|
|
&& true
|
|
|
|
WORKDIR /go/src/github.com/ceph/ceph-csi
|