Browse Source

Update versions

master
IamTheFij 2 months ago
parent
commit
b9be844632
  1. 2
      Dockerfile
  2. 9
      Dockerfile.personal
  3. 6
      scripts/add_golang.sh
  4. 2
      scripts/add_golangci_lint.sh
  5. 2
      scripts/add_hadolint.sh

2
Dockerfile

@ -3,6 +3,6 @@ FROM python:3
RUN mkdir -p /data/pre-commit-cache
ENV PRE_COMMIT_HOME=/data/pre-commit-cache
RUN pip install --no-cache-dir pre-commit==2.10.1
RUN pip install --no-cache-dir pre-commit==2.18.1
CMD ["pre-commit", "run", "--all-files"]

9
Dockerfile.personal

@ -4,10 +4,7 @@ FROM ${BASE_IMAGE}:base
# Add helper scripts
COPY ./scripts /scripts
# Add golang
RUN /scripts/add_golang.sh
ENV PATH=$PATH:/usr/local/go/bin
# Add some other linters
RUN /scripts/add_hadolint.sh
RUN /scripts/add_golangci_lint.sh
RUN /scripts/add_golang.sh && \
/scripts/add_hadolint.sh && \
/scripts/add_golangci_lint.sh

6
scripts/add_golang.sh

@ -1,11 +1,11 @@
#! /bin/bash
set -ex
VERSION=1.16
SHASUM=013a489ebb3e24ef3d915abe5b94c3286c070dfe0818d5bca8108f1d6e8440d2
VERSION=1.18
SHASUM=e85278e98f57cdb150fe8409e6e5df5343ecb13cebf03a5d5ff12bd55a80264f
FILENAME=go${VERSION}.linux-amd64.tar.gz
GOURL=https://golang.org/dl/${FILENAME}
GOURL=https://go.dev/dl/${FILENAME}
wget --quiet "$GOURL"

2
scripts/add_golangci_lint.sh

@ -1,6 +1,6 @@
#! /bin/bash
set -ex
VERSION=v1.37.0
VERSION=v1.45.2
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "/usr/bin" "${VERSION}"

2
scripts/add_hadolint.sh

@ -1,6 +1,6 @@
#! /bin/bash
set -ex
VERSION=v2.8.0
VERSION=v2.10.0
wget -q -L -O /usr/bin/hadolint "https://github.com/hadolint/hadolint/releases/download/${VERSION}/hadolint-Linux-x86_64"
chmod +x /usr/bin/hadolint

Loading…
Cancel
Save