Skip to content

Commit

Permalink
Merge pull request OSGeo#11450 from rouault/bin_docker_from
Browse files Browse the repository at this point in the history
CI: Dockerfiles: pin FROM to please OpenSSF ScoreCard
  • Loading branch information
rouault authored Dec 6, 2024
2 parents e4d1f7f + c8c00b5 commit 383b6e4
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/alpine/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:edge
FROM alpine:edge@sha256:732b6226a359f67fad4e38b34dd374bd62a6d282e20c493a38cc7d3a653f86ca

RUN apk add \
apache-arrow-dev \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/alpine_32bit/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM i386/alpine:edge
FROM i386/alpine:edge@sha256:42dc76bd326908c901e0a5b6ce58ec3a54126958f4c27f788798fac2b406f76a

RUN apk add \
apache-arrow-dev \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fedora_rawhide/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM fedora:rawhide
FROM fedora:rawhide@sha256:19fcecbd14f2c1e887cbeb974295f5fc0e7b81e2df133e4f1b47a6f65cd11737

# FIXME: Exclude update of dnf&rpm themselves as this results in a no longer working dnf
# cf https://github.com/OSGeo/gdal/actions/runs/9448190401/job/26021669415?pr=10173
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/icc/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM ubuntu:22.04
FROM ubuntu:22.04@sha256:3d1556a8a18cf5307b121e0a98e93f1ddf1f3f8e092f1fddfd941254785b95d7

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update -y \
&& apt-get install -y cmake gcc ccache libproj-dev wget python3-dev python3-numpy python3-pip swig

RUN wget https://registrationcenter-download.intel.com/akdlm/IRC_NAS/bb99984f-370f-413d-bbec-38928d2458f2/l_dpcpp-cpp-compiler_p_2024.0.2.29_offline.sh \
RUN WGET_CMD=wget && $WGET_CMD https://registrationcenter-download.intel.com/akdlm/IRC_NAS/bb99984f-370f-413d-bbec-38928d2458f2/l_dpcpp-cpp-compiler_p_2024.0.2.29_offline.sh \
&& sh l_dpcpp-cpp-compiler_p_2024.0.2.29_offline.sh -a -s --eula accept

# It appears to be necessary to install python dependencies _before_
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/s390x/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:24.04
FROM ubuntu:24.04@sha256:6e75a10070b0fcb0bead763c5118a369bc7cc30dfc1b0749c491bbb21f15c3c7

ENV DEBIAN_FRONTEND=noninteractive
ENV TARGET_ARCH=s390x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_20.04/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# so any change in dependencies locations might have to be reflected in
# coverity_scan/build/sh as well

FROM ubuntu:20.04
FROM ubuntu:20.04@sha256:8e5c4f0285ecbb4ead070431d29b576a530d3166df73ec44affc1cd27555141b

ENV DEBIAN_FRONTEND=noninteractive

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_22.04/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:22.04
FROM ubuntu:22.04@sha256:3d1556a8a18cf5307b121e0a98e93f1ddf1f3f8e092f1fddfd941254785b95d7

ENV DEBIAN_FRONTEND=noninteractive

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_24.04/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:24.04
FROM ubuntu:24.04@sha256:6e75a10070b0fcb0bead763c5118a369bc7cc30dfc1b0749c491bbb21f15c3c7

ENV DEBIAN_FRONTEND=noninteractive

Expand Down
2 changes: 1 addition & 1 deletion swig/python/gdal-utils/test-bdist-install.sh.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ python setup.py bdist_wheel
python -m venv test-wheel
cd test-wheel
source ./bin/activate
python3 -m pip install -U pip wheel setuptools numpy
PYTHON_CMD=python3 && $PYTHON_CMD -m pip install -U pip wheel setuptools numpy
pip install ../dist/gdal_utils-*.whl

echo "--- Keeping shell open so the venv can be explored (verify with 'which python')."
Expand Down

0 comments on commit 383b6e4

Please sign in to comment.