]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Update dockerfiles with supported distributions (#886)
authorGregor Jasny <gregor.jasny@logmein.com>
Tue, 6 Jul 2021 20:18:44 +0000 (22:18 +0200)
committerGitHub <noreply@github.com>
Tue, 6 Jul 2021 20:18:44 +0000 (22:18 +0200)
dockerfiles/alpine-3.14/Dockerfile [moved from dockerfiles/alpine-3.12/Dockerfile with 95% similarity]
dockerfiles/alpine-3.8/Dockerfile [moved from dockerfiles/alpine-3.4/Dockerfile with 72% similarity]
dockerfiles/centos-8/Dockerfile
dockerfiles/debian-11/Dockerfile [moved from dockerfiles/debian-9/Dockerfile with 95% similarity]
dockerfiles/ubuntu-16.04/Dockerfile [deleted file]
misc/test-all-systems
src/storage/secondary/FileStorage.hpp
src/util/string_utils.hpp

similarity index 95%
rename from dockerfiles/alpine-3.12/Dockerfile
rename to dockerfiles/alpine-3.14/Dockerfile
index 324921a0de3a776ab2641fb70e76f8d856859773..856636f016960b329edff581be8e0a21b7952f3e 100644 (file)
@@ -1,4 +1,4 @@
-FROM alpine:3.12
+FROM alpine:3.14
 
 RUN apk add --no-cache \
         bash \
similarity index 72%
rename from dockerfiles/alpine-3.4/Dockerfile
rename to dockerfiles/alpine-3.8/Dockerfile
index ad42a0042685b39df7f36f8e85ccc3fa7590f146..28f24b9e12b9c3bf6d416ed4f8781442a0b4057b 100644 (file)
@@ -1,16 +1,17 @@
-# Released 2016, this is the first release to contain cmake >= 3.4.3
-
-FROM alpine:3.4
+FROM alpine:3.8
 
 RUN apk add --no-cache \
         bash \
         ccache \
+        clang \
         cmake \
+        elfutils \
         g++ \
         gcc \
         libc-dev \
         make \
-        perl
+        perl \
+        zstd-dev
 
 # Redirect all compilers to ccache.
 RUN for t in gcc g++ cc c++ clang clang++; do ln -vs /usr/bin/ccache /usr/local/bin/$t; done
index b7ab38fd6e48c1ee114a84ff6f3ae4ef8fbe7b28..784533cfa88a883f511d90facbc5a6c00fa3a91b 100644 (file)
@@ -1,6 +1,8 @@
 FROM centos:8
 
+# also run update due to https://bugs.centos.org/view.php?id=18212
 RUN dnf install -y epel-release \
+ && dnf update -y \
  && dnf install -y \
         asciidoc \
         autoconf \
similarity index 95%
rename from dockerfiles/debian-9/Dockerfile
rename to dockerfiles/debian-11/Dockerfile
index b4c65854197b46e7c6bc09a51a4deaf699e7bbf2..57bfdbeb5b99adca99a956dab90373d28eb76815 100644 (file)
@@ -1,4 +1,4 @@
-FROM debian:9
+FROM debian:bullseye
 
 RUN apt-get update \
  && apt-get install -y --no-install-recommends \
diff --git a/dockerfiles/ubuntu-16.04/Dockerfile b/dockerfiles/ubuntu-16.04/Dockerfile
deleted file mode 100644 (file)
index 7c9ddbc..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-FROM ubuntu:16.04
-
-RUN apt-get update \
- && apt-get install -y --no-install-recommends \
-        asciidoc \
-        bash \
-        build-essential \
-        ccache \
-        clang \
-        cmake \
-        docbook-xml \
-        docbook-xsl \
-        elfutils \
-        gcc-multilib \
-        libzstd1-dev \
-        xsltproc \
- && rm -rf /var/lib/apt/lists/*
-
-# Redirect all compilers to ccache.
-RUN for t in gcc g++ cc c++ clang clang++; do ln -vs /usr/bin/ccache /usr/local/bin/$t; done
index 349d3fd1b5e09ac82038909ff6b5efa8613eff4e..3e28cc6bf70464e3220f11c5f3d26f10804d71b2 100755 (executable)
@@ -20,14 +20,11 @@ build() {
 
 #     NAME         CC    CXX     TEST_CC CMAKE_PARAMS
 
-build debian-9     gcc   g++     gcc
-build debian-9     clang clang++ clang
-
 build debian-10    gcc   g++     gcc
 build debian-10    clang clang++ clang
 
-build ubuntu-16.04 gcc   g++     gcc
-build ubuntu-16.04 gcc   g++     clang
+build debian-11    gcc   g++     gcc
+build debian-11    clang clang++ clang
 
 build ubuntu-18.04 gcc   g++     gcc
 build ubuntu-18.04 clang clang++ clang
@@ -44,8 +41,8 @@ build centos-8     clang clang++ clang
 build fedora-32    gcc   g++     gcc
 build fedora-32    clang clang++ clang
 
-build alpine-3.4   gcc   g++     gcc     -DZSTD_FROM_INTERNET=ON
-build alpine-3.4   gcc   g++     clang   -DZSTD_FROM_INTERNET=ON
+build alpine-3.8   gcc   g++     gcc
+build alpine-3.8   gcc   g++     clang
 
-build alpine-3.12  gcc   g++     gcc
-build alpine-3.12  clang clang++ clang
+build alpine-3.14  gcc   g++     gcc
+build alpine-3.14  clang clang++ clang
index bcf9de1ed5d5b245df494c3a815f967cca1ff06b..ac4271a84ec75dba64669d6a59ca9e07de44f468 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <third_party/url.hpp>
 
+#include <sys/stat.h> // for mode_t
+
 namespace storage {
 namespace secondary {
 
index 5533e683f9b634ce7a789dfcdc5cfc99706ce74c..7297b66acf3cfb1e037ccfe46289f76a30c044b2 100644 (file)
@@ -22,6 +22,8 @@
 #include <third_party/nonstd/optional.hpp>
 #include <third_party/nonstd/string_view.hpp>
 
+#include <sys/stat.h> // for mode_t
+
 #include <string>
 #include <utility>