This is left-over stuff from building Docker pacakges. These aren't
really maintained outside of bumping the golang version, and are never
tested.
These builders can be found at
https://github.com/docker/docker-ce-packaging where they are kept up to
date.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
| ... | ... |
@@ -1,4 +1,4 @@ |
| 1 |
-.PHONY: all binary dynbinary build cross deb help init-go-pkg-cache install manpages rpm run shell test test-docker-py test-integration test-unit validate win |
|
| 1 |
+.PHONY: all binary dynbinary build cross help init-go-pkg-cache install manpages run shell test test-docker-py test-integration test-unit validate win |
|
| 2 | 2 |
|
| 3 | 3 |
# set the graph driver as the current graphdriver if not set |
| 4 | 4 |
DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info 2>&1 | grep "Storage Driver" | sed 's/.*: //')) |
| ... | ... |
@@ -137,10 +137,6 @@ clean-pkg-cache-vol: |
| 137 | 137 |
cross: build ## cross build the binaries for darwin, freebsd and\nwindows |
| 138 | 138 |
$(DOCKER_RUN_DOCKER) hack/make.sh dynbinary binary cross |
| 139 | 139 |
|
| 140 |
-deb: build ## build the deb packages |
|
| 141 |
- $(DOCKER_RUN_DOCKER) hack/make.sh dynbinary build-deb |
|
| 142 |
- |
|
| 143 |
- |
|
| 144 | 140 |
help: ## this help |
| 145 | 141 |
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
| 146 | 142 |
|
| ... | ... |
@@ -150,9 +146,6 @@ init-go-pkg-cache: |
| 150 | 150 |
install: ## install the linux binaries |
| 151 | 151 |
KEEPBUNDLE=1 hack/make.sh install-binary |
| 152 | 152 |
|
| 153 |
-rpm: build ## build the rpm packages |
|
| 154 |
- $(DOCKER_RUN_DOCKER) hack/make.sh dynbinary build-rpm |
|
| 155 |
- |
|
| 156 | 153 |
run: build ## run the docker daemon in a container |
| 157 | 154 |
$(DOCKER_RUN_DOCKER) sh -c "KEEPBUNDLE=1 hack/make.sh install-binary run" |
| 158 | 155 |
|
| 11 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,17 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/aarch64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM aarch64/debian:jessie |
|
| 6 |
- |
|
| 7 |
-RUN echo deb http://ftp.debian.org/debian jessie-backports main > /etc/apt/sources.list.d/backports.list |
|
| 8 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libsystemd-journal-dev libseccomp-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 9 |
- |
|
| 10 |
-ENV GO_VERSION 1.10.1 |
|
| 11 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-arm64.tar.gz" | tar xzC /usr/local
|
|
| 12 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 13 |
- |
|
| 14 |
-ENV AUTO_GOPATH 1 |
|
| 15 |
- |
|
| 16 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 17 |
-ENV RUNC_BUILDTAGS apparmor seccomp selinux |
| 18 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/aarch64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM aarch64/debian:stretch |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libsystemd-dev libseccomp-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-arm64.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor seccomp selinux |
| 17 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,112 +0,0 @@ |
| 1 |
-#!/usr/bin/env bash |
|
| 2 |
-set -e |
|
| 3 |
- |
|
| 4 |
-# This file is used to auto-generate Dockerfiles for making debs via 'make deb' |
|
| 5 |
-# |
|
| 6 |
-# usage: ./generate.sh [versions] |
|
| 7 |
-# ie: ./generate.sh |
|
| 8 |
-# to update all Dockerfiles in this directory |
|
| 9 |
-# or: ./generate.sh ubuntu-trusty |
|
| 10 |
-# to only update ubuntu-trusty/Dockerfile |
|
| 11 |
-# or: ./generate.sh ubuntu-newversion |
|
| 12 |
-# to create a new folder and a Dockerfile within it |
|
| 13 |
-# |
|
| 14 |
-# Note: non-LTS versions are not guaranteed to work. |
|
| 15 |
- |
|
| 16 |
-cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" |
|
| 17 |
- |
|
| 18 |
-versions=( "$@" ) |
|
| 19 |
-if [ ${#versions[@]} -eq 0 ]; then
|
|
| 20 |
- versions=( */ ) |
|
| 21 |
-fi |
|
| 22 |
-versions=( "${versions[@]%/}" )
|
|
| 23 |
- |
|
| 24 |
-for version in "${versions[@]}"; do
|
|
| 25 |
- echo "${versions[@]}"
|
|
| 26 |
- distro="${version%-*}"
|
|
| 27 |
- suite="${version##*-}"
|
|
| 28 |
- from="aarch64/${distro}:${suite}"
|
|
| 29 |
- |
|
| 30 |
- mkdir -p "$version" |
|
| 31 |
- echo "$version -> FROM $from" |
|
| 32 |
- cat > "$version/Dockerfile" <<-EOF |
|
| 33 |
- # |
|
| 34 |
- # THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/aarch64/generate.sh"! |
|
| 35 |
- # |
|
| 36 |
- |
|
| 37 |
- FROM $from |
|
| 38 |
- |
|
| 39 |
- EOF |
|
| 40 |
- |
|
| 41 |
- extraBuildTags='apparmor selinux' |
|
| 42 |
- runcBuildTags='apparmor selinux' |
|
| 43 |
- |
|
| 44 |
- # this list is sorted alphabetically; please keep it that way |
|
| 45 |
- packages=( |
|
| 46 |
- apparmor # for apparmor_parser for testing the profile |
|
| 47 |
- bash-completion # for bash-completion debhelper integration |
|
| 48 |
- btrfs-tools # for "btrfs/ioctl.h" (and "version.h" if possible) |
|
| 49 |
- build-essential # "essential for building Debian packages" |
|
| 50 |
- cmake # tini dep |
|
| 51 |
- curl ca-certificates # for downloading Go |
|
| 52 |
- debhelper # for easy ".deb" building |
|
| 53 |
- dh-apparmor # for apparmor debhelper |
|
| 54 |
- dh-systemd # for systemd debhelper integration |
|
| 55 |
- git # for "git commit" info in "docker -v" |
|
| 56 |
- libapparmor-dev # for "sys/apparmor.h" |
|
| 57 |
- libdevmapper-dev # for "libdevmapper.h" |
|
| 58 |
- pkg-config # for detecting things like libsystemd-journal dynamically |
|
| 59 |
- vim-common # tini dep |
|
| 60 |
- ) |
|
| 61 |
- |
|
| 62 |
- case "$suite" in |
|
| 63 |
- trusty) |
|
| 64 |
- packages+=( libsystemd-journal-dev ) |
|
| 65 |
- ;; |
|
| 66 |
- jessie) |
|
| 67 |
- packages+=( libsystemd-journal-dev ) |
|
| 68 |
- packages+=( libseccomp-dev ) |
|
| 69 |
- |
|
| 70 |
- extraBuildTags+=' seccomp' |
|
| 71 |
- runcBuildTags+=' seccomp' |
|
| 72 |
- ;; |
|
| 73 |
- stretch|xenial) |
|
| 74 |
- packages+=( libsystemd-dev ) |
|
| 75 |
- packages+=( libseccomp-dev ) |
|
| 76 |
- |
|
| 77 |
- extraBuildTags+=' seccomp' |
|
| 78 |
- runcBuildTags+=' seccomp' |
|
| 79 |
- ;; |
|
| 80 |
- *) |
|
| 81 |
- echo "Unsupported distro:" $distro:$suite |
|
| 82 |
- rm -fr "$version" |
|
| 83 |
- exit 1 |
|
| 84 |
- ;; |
|
| 85 |
- esac |
|
| 86 |
- |
|
| 87 |
- case "$suite" in |
|
| 88 |
- jessie) |
|
| 89 |
- echo 'RUN echo deb http://ftp.debian.org/debian jessie-backports main > /etc/apt/sources.list.d/backports.list' >> "$version/Dockerfile" |
|
| 90 |
- ;; |
|
| 91 |
- *) |
|
| 92 |
- ;; |
|
| 93 |
- esac |
|
| 94 |
- |
|
| 95 |
- # update and install packages |
|
| 96 |
- echo "RUN apt-get update && apt-get install -y ${packages[*]} --no-install-recommends && rm -rf /var/lib/apt/lists/*" >> "$version/Dockerfile"
|
|
| 97 |
- echo >> "$version/Dockerfile" |
|
| 98 |
- |
|
| 99 |
- awk '$1 == "ENV" && $2 == "GO_VERSION" { print; exit }' ../../../../Dockerfile.aarch64 >> "$version/Dockerfile"
|
|
| 100 |
- echo 'RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-arm64.tar.gz" | tar xzC /usr/local' >> "$version/Dockerfile"
|
|
| 101 |
- echo 'ENV PATH $PATH:/usr/local/go/bin' >> "$version/Dockerfile" |
|
| 102 |
- echo >> "$version/Dockerfile" |
|
| 103 |
- |
|
| 104 |
- echo 'ENV AUTO_GOPATH 1' >> "$version/Dockerfile" |
|
| 105 |
- echo >> "$version/Dockerfile" |
|
| 106 |
- |
|
| 107 |
- # print build tags in alphabetical order |
|
| 108 |
- buildTags=$( echo "$extraBuildTags" | xargs -n1 | sort -n | tr '\n' ' ' | sed -e 's/[[:space:]]*$//' ) |
|
| 109 |
- runcBuildTags=$( echo "$runcBuildTags" | xargs -n1 | sort -n | tr '\n' ' ' | sed -e 's/[[:space:]]*$//' ) |
|
| 110 |
- echo "ENV DOCKER_BUILDTAGS $buildTags" >> "$version/Dockerfile" |
|
| 111 |
- echo "ENV RUNC_BUILDTAGS $runcBuildTags" >> "$version/Dockerfile" |
|
| 112 |
-done |
| 113 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/aarch64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM aarch64/ubuntu:trusty |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libsystemd-journal-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-arm64.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor selinux |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/aarch64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM aarch64/ubuntu:xenial |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libsystemd-dev libseccomp-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-arm64.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor seccomp selinux |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,5 +0,0 @@ |
| 1 |
-# `dockercore/builder-deb` |
|
| 2 |
- |
|
| 3 |
-This image's tags contain the dependencies for building Docker `.deb`s for each of the Debian-based platforms Docker targets. |
|
| 4 |
- |
|
| 5 |
-To add new tags, see [`contrib/builder/deb/amd64` in https://github.com/docker/docker](https://github.com/docker/docker/tree/master/contrib/builder/deb/amd64), specifically the `generate.sh` script, whose usage is described in a comment at the top of the file. |
| 11 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,20 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM debian:jessie |
|
| 6 |
- |
|
| 7 |
-# allow replacing httpredir or deb mirror |
|
| 8 |
-ARG APT_MIRROR=deb.debian.org |
|
| 9 |
-RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list |
|
| 10 |
- |
|
| 11 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libsystemd-journal-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 12 |
- |
|
| 13 |
-ENV GO_VERSION 1.10.1 |
|
| 14 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 15 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 16 |
- |
|
| 17 |
-ENV AUTO_GOPATH 1 |
|
| 18 |
- |
|
| 19 |
-ENV DOCKER_BUILDTAGS apparmor selinux |
|
| 20 |
-ENV RUNC_BUILDTAGS apparmor selinux |
| 21 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,20 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM debian:stretch |
|
| 6 |
- |
|
| 7 |
-# allow replacing httpredir or deb mirror |
|
| 8 |
-ARG APT_MIRROR=deb.debian.org |
|
| 9 |
-RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list |
|
| 10 |
- |
|
| 11 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libseccomp-dev pkg-config vim-common libsystemd-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 12 |
- |
|
| 13 |
-ENV GO_VERSION 1.10.1 |
|
| 14 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 15 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 16 |
- |
|
| 17 |
-ENV AUTO_GOPATH 1 |
|
| 18 |
- |
|
| 19 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 20 |
-ENV RUNC_BUILDTAGS apparmor seccomp selinux |
| 21 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,22 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM debian:wheezy-backports |
|
| 6 |
- |
|
| 7 |
-# allow replacing httpredir or deb mirror |
|
| 8 |
-ARG APT_MIRROR=deb.debian.org |
|
| 9 |
-RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list |
|
| 10 |
-RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list.d/backports.list |
|
| 11 |
- |
|
| 12 |
-RUN apt-get update && apt-get install -y -t wheezy-backports btrfs-tools --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 13 |
-RUN apt-get update && apt-get install -y apparmor bash-completion build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 14 |
- |
|
| 15 |
-ENV GO_VERSION 1.10.1 |
|
| 16 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 17 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 18 |
- |
|
| 19 |
-ENV AUTO_GOPATH 1 |
|
| 20 |
- |
|
| 21 |
-ENV DOCKER_BUILDTAGS apparmor selinux |
|
| 22 |
-ENV RUNC_BUILDTAGS apparmor selinux |
| 23 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,130 +0,0 @@ |
| 1 |
-#!/usr/bin/env bash |
|
| 2 |
-set -e |
|
| 3 |
- |
|
| 4 |
-# usage: ./generate.sh [versions] |
|
| 5 |
-# ie: ./generate.sh |
|
| 6 |
-# to update all Dockerfiles in this directory |
|
| 7 |
-# or: ./generate.sh debian-jessie |
|
| 8 |
-# to only update debian-jessie/Dockerfile |
|
| 9 |
-# or: ./generate.sh debian-newversion |
|
| 10 |
-# to create a new folder and a Dockerfile within it |
|
| 11 |
- |
|
| 12 |
-cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" |
|
| 13 |
- |
|
| 14 |
-versions=( "$@" ) |
|
| 15 |
-if [ ${#versions[@]} -eq 0 ]; then
|
|
| 16 |
- versions=( */ ) |
|
| 17 |
-fi |
|
| 18 |
-versions=( "${versions[@]%/}" )
|
|
| 19 |
- |
|
| 20 |
-for version in "${versions[@]}"; do
|
|
| 21 |
- distro="${version%-*}"
|
|
| 22 |
- suite="${version##*-}"
|
|
| 23 |
- from="${distro}:${suite}"
|
|
| 24 |
- |
|
| 25 |
- case "$from" in |
|
| 26 |
- debian:wheezy) |
|
| 27 |
- # add -backports, like our users have to |
|
| 28 |
- from+='-backports' |
|
| 29 |
- ;; |
|
| 30 |
- esac |
|
| 31 |
- |
|
| 32 |
- mkdir -p "$version" |
|
| 33 |
- echo "$version -> FROM $from" |
|
| 34 |
- cat > "$version/Dockerfile" <<-EOF |
|
| 35 |
- # |
|
| 36 |
- # THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/amd64/generate.sh"! |
|
| 37 |
- # |
|
| 38 |
- |
|
| 39 |
- FROM $from |
|
| 40 |
- EOF |
|
| 41 |
- |
|
| 42 |
- echo >> "$version/Dockerfile" |
|
| 43 |
- |
|
| 44 |
- if [ "$distro" = "debian" ]; then |
|
| 45 |
- cat >> "$version/Dockerfile" <<-'EOF' |
|
| 46 |
- # allow replacing httpredir or deb mirror |
|
| 47 |
- ARG APT_MIRROR=deb.debian.org |
|
| 48 |
- RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list |
|
| 49 |
- EOF |
|
| 50 |
- |
|
| 51 |
- if [ "$suite" = "wheezy" ]; then |
|
| 52 |
- cat >> "$version/Dockerfile" <<-'EOF' |
|
| 53 |
- RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list.d/backports.list |
|
| 54 |
- EOF |
|
| 55 |
- fi |
|
| 56 |
- |
|
| 57 |
- echo "" >> "$version/Dockerfile" |
|
| 58 |
- fi |
|
| 59 |
- |
|
| 60 |
- extraBuildTags= |
|
| 61 |
- runcBuildTags= |
|
| 62 |
- |
|
| 63 |
- # this list is sorted alphabetically; please keep it that way |
|
| 64 |
- packages=( |
|
| 65 |
- apparmor # for apparmor_parser for testing the profile |
|
| 66 |
- bash-completion # for bash-completion debhelper integration |
|
| 67 |
- btrfs-tools # for "btrfs/ioctl.h" (and "version.h" if possible) |
|
| 68 |
- build-essential # "essential for building Debian packages" |
|
| 69 |
- cmake # tini dep |
|
| 70 |
- curl ca-certificates # for downloading Go |
|
| 71 |
- debhelper # for easy ".deb" building |
|
| 72 |
- dh-apparmor # for apparmor debhelper |
|
| 73 |
- dh-systemd # for systemd debhelper integration |
|
| 74 |
- git # for "git commit" info in "docker -v" |
|
| 75 |
- libapparmor-dev # for "sys/apparmor.h" |
|
| 76 |
- libdevmapper-dev # for "libdevmapper.h" |
|
| 77 |
- libseccomp-dev # for "seccomp.h" & "libseccomp.so" |
|
| 78 |
- pkg-config # for detecting things like libsystemd-journal dynamically |
|
| 79 |
- vim-common # tini dep |
|
| 80 |
- ) |
|
| 81 |
- # packaging for "sd-journal.h" and libraries varies |
|
| 82 |
- case "$suite" in |
|
| 83 |
- wheezy) ;; |
|
| 84 |
- jessie|trusty) packages+=( libsystemd-journal-dev ) ;; |
|
| 85 |
- *) packages+=( libsystemd-dev ) ;; |
|
| 86 |
- esac |
|
| 87 |
- |
|
| 88 |
- # debian wheezy does not have the right libseccomp libs |
|
| 89 |
- # debian jessie & ubuntu trusty have a libseccomp < 2.2.1 :( |
|
| 90 |
- case "$suite" in |
|
| 91 |
- wheezy|jessie|trusty) |
|
| 92 |
- packages=( "${packages[@]/libseccomp-dev}" )
|
|
| 93 |
- runcBuildTags="apparmor selinux" |
|
| 94 |
- ;; |
|
| 95 |
- *) |
|
| 96 |
- extraBuildTags+=' seccomp' |
|
| 97 |
- runcBuildTags="apparmor seccomp selinux" |
|
| 98 |
- ;; |
|
| 99 |
- esac |
|
| 100 |
- |
|
| 101 |
- if [ "$suite" = 'wheezy' ]; then |
|
| 102 |
- # pull a couple packages from backports explicitly |
|
| 103 |
- # (build failures otherwise) |
|
| 104 |
- backportsPackages=( btrfs-tools ) |
|
| 105 |
- for pkg in "${backportsPackages[@]}"; do
|
|
| 106 |
- packages=( "${packages[@]/$pkg}" )
|
|
| 107 |
- done |
|
| 108 |
- echo "RUN apt-get update && apt-get install -y -t $suite-backports ${backportsPackages[*]} --no-install-recommends && rm -rf /var/lib/apt/lists/*" >> "$version/Dockerfile"
|
|
| 109 |
- fi |
|
| 110 |
- |
|
| 111 |
- echo "RUN apt-get update && apt-get install -y ${packages[*]} --no-install-recommends && rm -rf /var/lib/apt/lists/*" >> "$version/Dockerfile"
|
|
| 112 |
- |
|
| 113 |
- echo >> "$version/Dockerfile" |
|
| 114 |
- |
|
| 115 |
- awk '$1 == "ENV" && $2 == "GO_VERSION" { print; exit }' ../../../../Dockerfile >> "$version/Dockerfile"
|
|
| 116 |
- echo 'RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local' >> "$version/Dockerfile"
|
|
| 117 |
- echo 'ENV PATH $PATH:/usr/local/go/bin' >> "$version/Dockerfile" |
|
| 118 |
- |
|
| 119 |
- echo >> "$version/Dockerfile" |
|
| 120 |
- |
|
| 121 |
- echo 'ENV AUTO_GOPATH 1' >> "$version/Dockerfile" |
|
| 122 |
- |
|
| 123 |
- echo >> "$version/Dockerfile" |
|
| 124 |
- |
|
| 125 |
- # print build tags in alphabetical order |
|
| 126 |
- buildTags=$( echo "apparmor selinux $extraBuildTags" | xargs -n1 | sort -n | tr '\n' ' ' | sed -e 's/[[:space:]]*$//' ) |
|
| 127 |
- |
|
| 128 |
- echo "ENV DOCKER_BUILDTAGS $buildTags" >> "$version/Dockerfile" |
|
| 129 |
- echo "ENV RUNC_BUILDTAGS $runcBuildTags" >> "$version/Dockerfile" |
|
| 130 |
-done |
| 131 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM ubuntu:trusty |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libsystemd-journal-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor selinux |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM ubuntu:xenial |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libseccomp-dev pkg-config vim-common libsystemd-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor seccomp selinux |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM ubuntu:yakkety |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libseccomp-dev pkg-config vim-common libsystemd-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor seccomp selinux |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM ubuntu:zesty |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libseccomp-dev pkg-config vim-common libsystemd-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor seccomp selinux |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,20 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/armhf/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM armhf/debian:jessie |
|
| 6 |
- |
|
| 7 |
-# allow replacing httpredir or deb mirror |
|
| 8 |
-ARG APT_MIRROR=deb.debian.org |
|
| 9 |
-RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list |
|
| 10 |
- |
|
| 11 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libsystemd-journal-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 12 |
- |
|
| 13 |
-ENV GO_VERSION 1.10.1 |
|
| 14 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
|
|
| 15 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 16 |
- |
|
| 17 |
-ENV AUTO_GOPATH 1 |
|
| 18 |
- |
|
| 19 |
-ENV DOCKER_BUILDTAGS apparmor selinux |
|
| 20 |
-ENV RUNC_BUILDTAGS apparmor selinux |
| 21 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,139 +0,0 @@ |
| 1 |
-#!/usr/bin/env bash |
|
| 2 |
-set -e |
|
| 3 |
- |
|
| 4 |
-# usage: ./generate.sh [versions] |
|
| 5 |
-# ie: ./generate.sh |
|
| 6 |
-# to update all Dockerfiles in this directory |
|
| 7 |
-# or: ./generate.sh debian-jessie |
|
| 8 |
-# to only update debian-jessie/Dockerfile |
|
| 9 |
-# or: ./generate.sh debian-newversion |
|
| 10 |
-# to create a new folder and a Dockerfile within it |
|
| 11 |
- |
|
| 12 |
-cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" |
|
| 13 |
- |
|
| 14 |
-versions=( "$@" ) |
|
| 15 |
-if [ ${#versions[@]} -eq 0 ]; then
|
|
| 16 |
- versions=( */ ) |
|
| 17 |
-fi |
|
| 18 |
-versions=( "${versions[@]%/}" )
|
|
| 19 |
- |
|
| 20 |
-for version in "${versions[@]}"; do
|
|
| 21 |
- distro="${version%-*}"
|
|
| 22 |
- suite="${version##*-}"
|
|
| 23 |
- from="${distro}:${suite}"
|
|
| 24 |
- |
|
| 25 |
- case "$from" in |
|
| 26 |
- raspbian:jessie) |
|
| 27 |
- from="resin/rpi-raspbian:jessie" |
|
| 28 |
- ;; |
|
| 29 |
- *) |
|
| 30 |
- from="armhf/$from" |
|
| 31 |
- ;; |
|
| 32 |
- esac |
|
| 33 |
- |
|
| 34 |
- mkdir -p "$version" |
|
| 35 |
- echo "$version -> FROM $from" |
|
| 36 |
- cat > "$version/Dockerfile" <<-EOF |
|
| 37 |
- # |
|
| 38 |
- # THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/armhf/generate.sh"! |
|
| 39 |
- # |
|
| 40 |
- |
|
| 41 |
- FROM $from |
|
| 42 |
- EOF |
|
| 43 |
- |
|
| 44 |
- echo >> "$version/Dockerfile" |
|
| 45 |
- |
|
| 46 |
- if [[ "$distro" = "debian" || "$distro" = "raspbian" ]]; then |
|
| 47 |
- cat >> "$version/Dockerfile" <<-'EOF' |
|
| 48 |
- # allow replacing httpredir or deb mirror |
|
| 49 |
- ARG APT_MIRROR=deb.debian.org |
|
| 50 |
- RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list |
|
| 51 |
- EOF |
|
| 52 |
- |
|
| 53 |
- if [ "$suite" = "wheezy" ]; then |
|
| 54 |
- cat >> "$version/Dockerfile" <<-'EOF' |
|
| 55 |
- RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list.d/backports.list |
|
| 56 |
- EOF |
|
| 57 |
- fi |
|
| 58 |
- |
|
| 59 |
- echo "" >> "$version/Dockerfile" |
|
| 60 |
- fi |
|
| 61 |
- |
|
| 62 |
- extraBuildTags= |
|
| 63 |
- runcBuildTags= |
|
| 64 |
- |
|
| 65 |
- # this list is sorted alphabetically; please keep it that way |
|
| 66 |
- packages=( |
|
| 67 |
- apparmor # for apparmor_parser for testing the profile |
|
| 68 |
- bash-completion # for bash-completion debhelper integration |
|
| 69 |
- btrfs-tools # for "btrfs/ioctl.h" (and "version.h" if possible) |
|
| 70 |
- build-essential # "essential for building Debian packages" |
|
| 71 |
- cmake # tini dep |
|
| 72 |
- curl ca-certificates # for downloading Go |
|
| 73 |
- debhelper # for easy ".deb" building |
|
| 74 |
- dh-apparmor # for apparmor debhelper |
|
| 75 |
- dh-systemd # for systemd debhelper integration |
|
| 76 |
- git # for "git commit" info in "docker -v" |
|
| 77 |
- libapparmor-dev # for "sys/apparmor.h" |
|
| 78 |
- libdevmapper-dev # for "libdevmapper.h" |
|
| 79 |
- libseccomp-dev # for "seccomp.h" & "libseccomp.so" |
|
| 80 |
- pkg-config # for detecting things like libsystemd-journal dynamically |
|
| 81 |
- vim-common # tini dep |
|
| 82 |
- ) |
|
| 83 |
- # packaging for "sd-journal.h" and libraries varies |
|
| 84 |
- case "$suite" in |
|
| 85 |
- wheezy) ;; |
|
| 86 |
- jessie|trusty) packages+=( libsystemd-journal-dev ) ;; |
|
| 87 |
- *) packages+=( libsystemd-dev ) ;; |
|
| 88 |
- esac |
|
| 89 |
- |
|
| 90 |
- # debian wheezy does not have the right libseccomp libs |
|
| 91 |
- # debian jessie & ubuntu trusty have a libseccomp < 2.2.1 :( |
|
| 92 |
- case "$suite" in |
|
| 93 |
- wheezy|jessie|trusty) |
|
| 94 |
- packages=( "${packages[@]/libseccomp-dev}" )
|
|
| 95 |
- runcBuildTags="apparmor selinux" |
|
| 96 |
- ;; |
|
| 97 |
- *) |
|
| 98 |
- extraBuildTags+=' seccomp' |
|
| 99 |
- runcBuildTags="apparmor seccomp selinux" |
|
| 100 |
- ;; |
|
| 101 |
- esac |
|
| 102 |
- |
|
| 103 |
- if [ "$suite" = 'wheezy' ]; then |
|
| 104 |
- # pull a couple packages from backports explicitly |
|
| 105 |
- # (build failures otherwise) |
|
| 106 |
- backportsPackages=( btrfs-tools ) |
|
| 107 |
- for pkg in "${backportsPackages[@]}"; do
|
|
| 108 |
- packages=( "${packages[@]/$pkg}" )
|
|
| 109 |
- done |
|
| 110 |
- echo "RUN apt-get update && apt-get install -y -t $suite-backports ${backportsPackages[*]} --no-install-recommends && rm -rf /var/lib/apt/lists/*" >> "$version/Dockerfile"
|
|
| 111 |
- fi |
|
| 112 |
- |
|
| 113 |
- echo "RUN apt-get update && apt-get install -y ${packages[*]} --no-install-recommends && rm -rf /var/lib/apt/lists/*" >> "$version/Dockerfile"
|
|
| 114 |
- |
|
| 115 |
- echo >> "$version/Dockerfile" |
|
| 116 |
- |
|
| 117 |
- awk '$1 == "ENV" && $2 == "GO_VERSION" { print; exit }' ../../../../Dockerfile.armhf >> "$version/Dockerfile"
|
|
| 118 |
- if [ "$distro" == 'raspbian' ]; |
|
| 119 |
- then |
|
| 120 |
- cat <<EOF >> "$version/Dockerfile" |
|
| 121 |
-# GOARM is the ARM architecture version which is unrelated to the above Golang version |
|
| 122 |
-ENV GOARM 6 |
|
| 123 |
-EOF |
|
| 124 |
- fi |
|
| 125 |
- echo 'RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local' >> "$version/Dockerfile"
|
|
| 126 |
- echo 'ENV PATH $PATH:/usr/local/go/bin' >> "$version/Dockerfile" |
|
| 127 |
- |
|
| 128 |
- echo >> "$version/Dockerfile" |
|
| 129 |
- |
|
| 130 |
- echo 'ENV AUTO_GOPATH 1' >> "$version/Dockerfile" |
|
| 131 |
- |
|
| 132 |
- echo >> "$version/Dockerfile" |
|
| 133 |
- |
|
| 134 |
- # print build tags in alphabetical order |
|
| 135 |
- buildTags=$( echo "apparmor selinux $extraBuildTags" | xargs -n1 | sort -n | tr '\n' ' ' | sed -e 's/[[:space:]]*$//' ) |
|
| 136 |
- |
|
| 137 |
- echo "ENV DOCKER_BUILDTAGS $buildTags" >> "$version/Dockerfile" |
|
| 138 |
- echo "ENV RUNC_BUILDTAGS $runcBuildTags" >> "$version/Dockerfile" |
|
| 139 |
-done |
| 140 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,22 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/armhf/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM resin/rpi-raspbian:jessie |
|
| 6 |
- |
|
| 7 |
-# allow replacing httpredir or deb mirror |
|
| 8 |
-ARG APT_MIRROR=deb.debian.org |
|
| 9 |
-RUN sed -ri "s/(httpredir|deb).debian.org/$APT_MIRROR/g" /etc/apt/sources.list |
|
| 10 |
- |
|
| 11 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libsystemd-journal-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 12 |
- |
|
| 13 |
-ENV GO_VERSION 1.10.1 |
|
| 14 |
-# GOARM is the ARM architecture version which is unrelated to the above Golang version |
|
| 15 |
-ENV GOARM 6 |
|
| 16 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
|
|
| 17 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 18 |
- |
|
| 19 |
-ENV AUTO_GOPATH 1 |
|
| 20 |
- |
|
| 21 |
-ENV DOCKER_BUILDTAGS apparmor selinux |
|
| 22 |
-ENV RUNC_BUILDTAGS apparmor selinux |
| 23 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/armhf/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM armhf/ubuntu:trusty |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libsystemd-journal-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor selinux |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/armhf/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM armhf/ubuntu:xenial |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libseccomp-dev pkg-config vim-common libsystemd-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor seccomp selinux |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/armhf/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM armhf/ubuntu:yakkety |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libseccomp-dev pkg-config vim-common libsystemd-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor seccomp selinux |
| 11 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,101 +0,0 @@ |
| 1 |
-#!/usr/bin/env bash |
|
| 2 |
-set -e |
|
| 3 |
- |
|
| 4 |
-# This file is used to auto-generate Dockerfiles for making debs via 'make deb' |
|
| 5 |
-# |
|
| 6 |
-# usage: ./generate.sh [versions] |
|
| 7 |
-# ie: ./generate.sh |
|
| 8 |
-# to update all Dockerfiles in this directory |
|
| 9 |
-# or: ./generate.sh ubuntu-xenial |
|
| 10 |
-# to only update ubuntu-xenial/Dockerfile |
|
| 11 |
-# or: ./generate.sh ubuntu-newversion |
|
| 12 |
-# to create a new folder and a Dockerfile within it |
|
| 13 |
- |
|
| 14 |
-cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" |
|
| 15 |
- |
|
| 16 |
-versions=( "$@" ) |
|
| 17 |
-if [ ${#versions[@]} -eq 0 ]; then
|
|
| 18 |
- versions=( */ ) |
|
| 19 |
-fi |
|
| 20 |
-versions=( "${versions[@]%/}" )
|
|
| 21 |
- |
|
| 22 |
-for version in "${versions[@]}"; do
|
|
| 23 |
- echo "${versions[@]}"
|
|
| 24 |
- distro="${version%-*}"
|
|
| 25 |
- suite="${version##*-}"
|
|
| 26 |
- from="ppc64le/${distro}:${suite}"
|
|
| 27 |
- |
|
| 28 |
- mkdir -p "$version" |
|
| 29 |
- echo "$version -> FROM $from" |
|
| 30 |
- cat > "$version/Dockerfile" <<-EOF |
|
| 31 |
- # |
|
| 32 |
- # THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/ppc64le/generate.sh"! |
|
| 33 |
- # |
|
| 34 |
- |
|
| 35 |
- FROM $from |
|
| 36 |
- |
|
| 37 |
- EOF |
|
| 38 |
- |
|
| 39 |
- extraBuildTags= |
|
| 40 |
- runcBuildTags= |
|
| 41 |
- |
|
| 42 |
- # this list is sorted alphabetically; please keep it that way |
|
| 43 |
- packages=( |
|
| 44 |
- apparmor # for apparmor_parser for testing the profile |
|
| 45 |
- bash-completion # for bash-completion debhelper integration |
|
| 46 |
- btrfs-tools # for "btrfs/ioctl.h" (and "version.h" if possible) |
|
| 47 |
- build-essential # "essential for building Debian packages" |
|
| 48 |
- cmake # tini dep |
|
| 49 |
- curl ca-certificates # for downloading Go |
|
| 50 |
- debhelper # for easy ".deb" building |
|
| 51 |
- dh-apparmor # for apparmor debhelper |
|
| 52 |
- dh-systemd # for systemd debhelper integration |
|
| 53 |
- git # for "git commit" info in "docker -v" |
|
| 54 |
- libapparmor-dev # for "sys/apparmor.h" |
|
| 55 |
- libdevmapper-dev # for "libdevmapper.h" |
|
| 56 |
- pkg-config # for detecting things like libsystemd-journal dynamically |
|
| 57 |
- vim-common # tini dep |
|
| 58 |
- ) |
|
| 59 |
- |
|
| 60 |
- case "$suite" in |
|
| 61 |
- trusty) |
|
| 62 |
- packages+=( libsystemd-journal-dev ) |
|
| 63 |
- ;; |
|
| 64 |
- *) |
|
| 65 |
- # libseccomp isn't available until ubuntu xenial and is required for "seccomp.h" & "libseccomp.so" |
|
| 66 |
- packages+=( libseccomp-dev ) |
|
| 67 |
- packages+=( libsystemd-dev ) |
|
| 68 |
- ;; |
|
| 69 |
- esac |
|
| 70 |
- |
|
| 71 |
- # buildtags |
|
| 72 |
- case "$suite" in |
|
| 73 |
- # trusty has no seccomp package |
|
| 74 |
- trusty) |
|
| 75 |
- runcBuildTags="apparmor selinux" |
|
| 76 |
- ;; |
|
| 77 |
- # ppc64le support was backported into libseccomp 2.2.3-2, |
|
| 78 |
- # so enable seccomp by default |
|
| 79 |
- *) |
|
| 80 |
- extraBuildTags+=' seccomp' |
|
| 81 |
- runcBuildTags="apparmor seccomp selinux" |
|
| 82 |
- ;; |
|
| 83 |
- esac |
|
| 84 |
- |
|
| 85 |
- # update and install packages |
|
| 86 |
- echo "RUN apt-get update && apt-get install -y ${packages[*]} --no-install-recommends && rm -rf /var/lib/apt/lists/*" >> "$version/Dockerfile"
|
|
| 87 |
- echo >> "$version/Dockerfile" |
|
| 88 |
- |
|
| 89 |
- awk '$1 == "ENV" && $2 == "GO_VERSION" { print; exit }' ../../../../Dockerfile.ppc64le >> "$version/Dockerfile"
|
|
| 90 |
- echo 'RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-ppc64le.tar.gz" | tar xzC /usr/local' >> "$version/Dockerfile"
|
|
| 91 |
- echo 'ENV PATH $PATH:/usr/local/go/bin' >> "$version/Dockerfile" |
|
| 92 |
- echo >> "$version/Dockerfile" |
|
| 93 |
- |
|
| 94 |
- echo 'ENV AUTO_GOPATH 1' >> "$version/Dockerfile" |
|
| 95 |
- echo >> "$version/Dockerfile" |
|
| 96 |
- |
|
| 97 |
- # print build tags in alphabetical order |
|
| 98 |
- buildTags=$( echo "apparmor selinux $extraBuildTags" | xargs -n1 | sort -n | tr '\n' ' ' | sed -e 's/[[:space:]]*$//' ) |
|
| 99 |
- echo "ENV DOCKER_BUILDTAGS $buildTags" >> "$version/Dockerfile" |
|
| 100 |
- echo "ENV RUNC_BUILDTAGS $runcBuildTags" >> "$version/Dockerfile" |
|
| 101 |
-done |
| 102 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/ppc64le/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM ppc64le/ubuntu:trusty |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libsystemd-journal-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-ppc64le.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor selinux |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/ppc64le/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM ppc64le/ubuntu:xenial |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libseccomp-dev libsystemd-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-ppc64le.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor seccomp selinux |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/ppc64le/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM ppc64le/ubuntu:yakkety |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev pkg-config vim-common libseccomp-dev libsystemd-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-ppc64le.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor seccomp selinux |
| 11 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,94 +0,0 @@ |
| 1 |
-#!/usr/bin/env bash |
|
| 2 |
-set -e |
|
| 3 |
- |
|
| 4 |
-# This file is used to auto-generate Dockerfiles for making debs via 'make deb' |
|
| 5 |
-# |
|
| 6 |
-# usage: ./generate.sh [versions] |
|
| 7 |
-# ie: ./generate.sh |
|
| 8 |
-# to update all Dockerfiles in this directory |
|
| 9 |
-# or: ./generate.sh ubuntu-xenial |
|
| 10 |
-# to only update ubuntu-xenial/Dockerfile |
|
| 11 |
-# or: ./generate.sh ubuntu-newversion |
|
| 12 |
-# to create a new folder and a Dockerfile within it |
|
| 13 |
- |
|
| 14 |
-cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" |
|
| 15 |
- |
|
| 16 |
-versions=( "$@" ) |
|
| 17 |
-if [ ${#versions[@]} -eq 0 ]; then
|
|
| 18 |
- versions=( */ ) |
|
| 19 |
-fi |
|
| 20 |
-versions=( "${versions[@]%/}" )
|
|
| 21 |
- |
|
| 22 |
-for version in "${versions[@]}"; do
|
|
| 23 |
- echo "${versions[@]}"
|
|
| 24 |
- distro="${version%-*}"
|
|
| 25 |
- suite="${version##*-}"
|
|
| 26 |
- from="s390x/${distro}:${suite}"
|
|
| 27 |
- |
|
| 28 |
- mkdir -p "$version" |
|
| 29 |
- echo "$version -> FROM $from" |
|
| 30 |
- cat > "$version/Dockerfile" <<-EOF |
|
| 31 |
- # |
|
| 32 |
- # THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/s390x/generate.sh"! |
|
| 33 |
- # |
|
| 34 |
- |
|
| 35 |
- FROM $from |
|
| 36 |
- |
|
| 37 |
- EOF |
|
| 38 |
- |
|
| 39 |
- extraBuildTags= |
|
| 40 |
- runcBuildTags= |
|
| 41 |
- |
|
| 42 |
- # this list is sorted alphabetically; please keep it that way |
|
| 43 |
- packages=( |
|
| 44 |
- apparmor # for apparmor_parser for testing the profile |
|
| 45 |
- bash-completion # for bash-completion debhelper integration |
|
| 46 |
- btrfs-tools # for "btrfs/ioctl.h" (and "version.h" if possible) |
|
| 47 |
- build-essential # "essential for building Debian packages" |
|
| 48 |
- cmake # tini dep |
|
| 49 |
- curl ca-certificates # for downloading Go |
|
| 50 |
- debhelper # for easy ".deb" building |
|
| 51 |
- dh-apparmor # for apparmor debhelper |
|
| 52 |
- dh-systemd # for systemd debhelper integration |
|
| 53 |
- git # for "git commit" info in "docker -v" |
|
| 54 |
- libapparmor-dev # for "sys/apparmor.h" |
|
| 55 |
- libdevmapper-dev # for "libdevmapper.h" |
|
| 56 |
- libseccomp-dev # for "seccomp.h" & "libseccomp.so" |
|
| 57 |
- pkg-config # for detecting things like libsystemd-journal dynamically |
|
| 58 |
- libsystemd-dev |
|
| 59 |
- vim-common # tini dep |
|
| 60 |
- ) |
|
| 61 |
- |
|
| 62 |
- case "$suite" in |
|
| 63 |
- # s390x needs libseccomp 2.3.1 |
|
| 64 |
- xenial) |
|
| 65 |
- # Ubuntu Xenial has libseccomp 2.2.3 |
|
| 66 |
- runcBuildTags="apparmor selinux" |
|
| 67 |
- ;; |
|
| 68 |
- *) |
|
| 69 |
- extraBuildTags+=' seccomp' |
|
| 70 |
- runcBuildTags="apparmor selinux seccomp" |
|
| 71 |
- ;; |
|
| 72 |
- esac |
|
| 73 |
- |
|
| 74 |
- # update and install packages |
|
| 75 |
- echo "RUN apt-get update && apt-get install -y ${packages[*]} --no-install-recommends && rm -rf /var/lib/apt/lists/*" >> "$version/Dockerfile"
|
|
| 76 |
- |
|
| 77 |
- echo >> "$version/Dockerfile" |
|
| 78 |
- |
|
| 79 |
- awk '$1 == "ENV" && $2 == "GO_VERSION" { print; exit }' ../../../../Dockerfile.s390x >> "$version/Dockerfile"
|
|
| 80 |
- echo 'RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-s390x.tar.gz" | tar xzC /usr/local' >> "$version/Dockerfile"
|
|
| 81 |
- echo 'ENV PATH $PATH:/usr/local/go/bin' >> "$version/Dockerfile" |
|
| 82 |
- |
|
| 83 |
- echo >> "$version/Dockerfile" |
|
| 84 |
- |
|
| 85 |
- echo 'ENV AUTO_GOPATH 1' >> "$version/Dockerfile" |
|
| 86 |
- |
|
| 87 |
- echo >> "$version/Dockerfile" |
|
| 88 |
- |
|
| 89 |
- # print build tags in alphabetical order |
|
| 90 |
- buildTags=$( echo "apparmor selinux $extraBuildTags" | xargs -n1 | sort -n | tr '\n' ' ' | sed -e 's/[[:space:]]*$//' ) |
|
| 91 |
- |
|
| 92 |
- echo "ENV DOCKER_BUILDTAGS $buildTags" >> "$version/Dockerfile" |
|
| 93 |
- echo "ENV RUNC_BUILDTAGS $runcBuildTags" >> "$version/Dockerfile" |
|
| 94 |
-done |
| 95 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/s390x/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM s390x/ubuntu:xenial |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libseccomp-dev pkg-config libsystemd-dev vim-common --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-s390x.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor selinux |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,16 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/deb/s390x/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM s390x/ubuntu:yakkety |
|
| 6 |
- |
|
| 7 |
-RUN apt-get update && apt-get install -y apparmor bash-completion btrfs-tools build-essential cmake curl ca-certificates debhelper dh-apparmor dh-systemd git libapparmor-dev libdevmapper-dev libseccomp-dev pkg-config libsystemd-dev vim-common --no-install-recommends && rm -rf /var/lib/apt/lists/* |
|
| 8 |
- |
|
| 9 |
-ENV GO_VERSION 1.10.1 |
|
| 10 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-s390x.tar.gz" | tar xzC /usr/local
|
|
| 11 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 12 |
- |
|
| 13 |
-ENV AUTO_GOPATH 1 |
|
| 14 |
- |
|
| 15 |
-ENV DOCKER_BUILDTAGS apparmor seccomp selinux |
|
| 16 |
-ENV RUNC_BUILDTAGS apparmor selinux seccomp |
| 17 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,5 +0,0 @@ |
| 1 |
-# `dockercore/builder-rpm` |
|
| 2 |
- |
|
| 3 |
-This image's tags contain the dependencies for building Docker `.rpm`s for each of the RPM-based platforms Docker targets. |
|
| 4 |
- |
|
| 5 |
-To add new tags, see [`contrib/builder/rpm/amd64` in https://github.com/docker/docker](https://github.com/docker/docker/tree/master/contrib/builder/rpm/amd64), specifically the `generate.sh` script, whose usage is described in a comment at the top of the file. |
| 6 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,18 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM amazonlinux:latest |
|
| 6 |
- |
|
| 7 |
-RUN yum groupinstall -y "Development Tools" |
|
| 8 |
-RUN yum install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel pkgconfig selinux-policy selinux-policy-devel tar git cmake vim-common |
|
| 9 |
- |
|
| 10 |
-ENV GO_VERSION 1.10.1 |
|
| 11 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 12 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 13 |
- |
|
| 14 |
-ENV AUTO_GOPATH 1 |
|
| 15 |
- |
|
| 16 |
-ENV DOCKER_BUILDTAGS seccomp selinux |
|
| 17 |
-ENV RUNC_BUILDTAGS seccomp selinux |
|
| 18 |
- |
| 11 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,19 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM centos:7 |
|
| 6 |
- |
|
| 7 |
-RUN yum groupinstall -y "Development Tools" |
|
| 8 |
-RUN yum -y swap -- remove systemd-container systemd-container-libs -- install systemd systemd-libs |
|
| 9 |
-RUN yum install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel pkgconfig selinux-policy selinux-policy-devel systemd-devel tar git cmake vim-common |
|
| 10 |
- |
|
| 11 |
-ENV GO_VERSION 1.10.1 |
|
| 12 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 13 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 14 |
- |
|
| 15 |
-ENV AUTO_GOPATH 1 |
|
| 16 |
- |
|
| 17 |
-ENV DOCKER_BUILDTAGS seccomp selinux |
|
| 18 |
-ENV RUNC_BUILDTAGS seccomp selinux |
|
| 19 |
- |
| 20 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,19 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM fedora:24 |
|
| 6 |
- |
|
| 7 |
-RUN dnf -y upgrade |
|
| 8 |
-RUN dnf install -y @development-tools fedora-packager |
|
| 9 |
-RUN dnf install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel pkgconfig selinux-policy selinux-policy-devel systemd-devel tar git cmake vim-common |
|
| 10 |
- |
|
| 11 |
-ENV GO_VERSION 1.10.1 |
|
| 12 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 13 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 14 |
- |
|
| 15 |
-ENV AUTO_GOPATH 1 |
|
| 16 |
- |
|
| 17 |
-ENV DOCKER_BUILDTAGS seccomp selinux |
|
| 18 |
-ENV RUNC_BUILDTAGS seccomp selinux |
|
| 19 |
- |
| 20 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,19 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM fedora:25 |
|
| 6 |
- |
|
| 7 |
-RUN dnf -y upgrade |
|
| 8 |
-RUN dnf install -y @development-tools fedora-packager |
|
| 9 |
-RUN dnf install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel pkgconfig selinux-policy selinux-policy-devel systemd-devel tar git cmake vim-common |
|
| 10 |
- |
|
| 11 |
-ENV GO_VERSION 1.10.1 |
|
| 12 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 13 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 14 |
- |
|
| 15 |
-ENV AUTO_GOPATH 1 |
|
| 16 |
- |
|
| 17 |
-ENV DOCKER_BUILDTAGS seccomp selinux |
|
| 18 |
-ENV RUNC_BUILDTAGS seccomp selinux |
|
| 19 |
- |
| 20 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,187 +0,0 @@ |
| 1 |
-#!/usr/bin/env bash |
|
| 2 |
-set -e |
|
| 3 |
- |
|
| 4 |
-# usage: ./generate.sh [versions] |
|
| 5 |
-# ie: ./generate.sh |
|
| 6 |
-# to update all Dockerfiles in this directory |
|
| 7 |
-# or: ./generate.sh centos-7 |
|
| 8 |
-# to only update centos-7/Dockerfile |
|
| 9 |
-# or: ./generate.sh fedora-newversion |
|
| 10 |
-# to create a new folder and a Dockerfile within it |
|
| 11 |
- |
|
| 12 |
-cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" |
|
| 13 |
- |
|
| 14 |
-versions=( "$@" ) |
|
| 15 |
-if [ ${#versions[@]} -eq 0 ]; then
|
|
| 16 |
- versions=( */ ) |
|
| 17 |
-fi |
|
| 18 |
-versions=( "${versions[@]%/}" )
|
|
| 19 |
- |
|
| 20 |
-for version in "${versions[@]}"; do
|
|
| 21 |
- distro="${version%-*}"
|
|
| 22 |
- suite="${version##*-}"
|
|
| 23 |
- from="${distro}:${suite}"
|
|
| 24 |
- installer=yum |
|
| 25 |
- |
|
| 26 |
- if [[ "$distro" == "fedora" ]]; then |
|
| 27 |
- installer=dnf |
|
| 28 |
- fi |
|
| 29 |
- if [[ "$distro" == "photon" ]]; then |
|
| 30 |
- installer=tdnf |
|
| 31 |
- fi |
|
| 32 |
- |
|
| 33 |
- mkdir -p "$version" |
|
| 34 |
- echo "$version -> FROM $from" |
|
| 35 |
- cat > "$version/Dockerfile" <<-EOF |
|
| 36 |
- # |
|
| 37 |
- # THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/amd64/generate.sh"! |
|
| 38 |
- # |
|
| 39 |
- |
|
| 40 |
- FROM $from |
|
| 41 |
- EOF |
|
| 42 |
- |
|
| 43 |
- echo >> "$version/Dockerfile" |
|
| 44 |
- |
|
| 45 |
- extraBuildTags= |
|
| 46 |
- runcBuildTags= |
|
| 47 |
- |
|
| 48 |
- case "$from" in |
|
| 49 |
- oraclelinux:6) |
|
| 50 |
- # We need a known version of the kernel-uek-devel headers to set CGO_CPPFLAGS, so grab the UEKR4 GA version |
|
| 51 |
- # This requires using yum-config-manager from yum-utils to enable the UEKR4 yum repo |
|
| 52 |
- echo "RUN yum install -y yum-utils && curl -o /etc/yum.repos.d/public-yum-ol6.repo http://yum.oracle.com/public-yum-ol6.repo && yum-config-manager -q --enable ol6_UEKR4" >> "$version/Dockerfile" |
|
| 53 |
- echo "RUN yum install -y kernel-uek-devel-4.1.12-32.el6uek" >> "$version/Dockerfile" |
|
| 54 |
- echo >> "$version/Dockerfile" |
|
| 55 |
- ;; |
|
| 56 |
- fedora:*) |
|
| 57 |
- echo "RUN ${installer} -y upgrade" >> "$version/Dockerfile"
|
|
| 58 |
- ;; |
|
| 59 |
- *) ;; |
|
| 60 |
- esac |
|
| 61 |
- |
|
| 62 |
- case "$from" in |
|
| 63 |
- centos:*|amazonlinux:latest) |
|
| 64 |
- # get "Development Tools" packages dependencies |
|
| 65 |
- echo 'RUN yum groupinstall -y "Development Tools"' >> "$version/Dockerfile" |
|
| 66 |
- |
|
| 67 |
- if [[ "$version" == "centos-7" ]]; then |
|
| 68 |
- echo 'RUN yum -y swap -- remove systemd-container systemd-container-libs -- install systemd systemd-libs' >> "$version/Dockerfile" |
|
| 69 |
- fi |
|
| 70 |
- ;; |
|
| 71 |
- oraclelinux:*) |
|
| 72 |
- # get "Development Tools" packages and dependencies |
|
| 73 |
- # we also need yum-utils for yum-config-manager to pull the latest repo file |
|
| 74 |
- echo 'RUN yum groupinstall -y "Development Tools"' >> "$version/Dockerfile" |
|
| 75 |
- ;; |
|
| 76 |
- opensuse:*) |
|
| 77 |
- # get rpm-build and curl packages and dependencies |
|
| 78 |
- echo 'RUN zypper --non-interactive install ca-certificates* curl gzip rpm-build' >> "$version/Dockerfile" |
|
| 79 |
- ;; |
|
| 80 |
- photon:*) |
|
| 81 |
- echo "RUN ${installer} install -y wget curl ca-certificates gzip make rpm-build sed gcc linux-api-headers glibc-devel binutils libseccomp elfutils" >> "$version/Dockerfile"
|
|
| 82 |
- ;; |
|
| 83 |
- *) |
|
| 84 |
- echo "RUN ${installer} install -y @development-tools fedora-packager" >> "$version/Dockerfile"
|
|
| 85 |
- ;; |
|
| 86 |
- esac |
|
| 87 |
- |
|
| 88 |
- packages=( |
|
| 89 |
- btrfs-progs-devel # for "btrfs/ioctl.h" (and "version.h" if possible) |
|
| 90 |
- device-mapper-devel # for "libdevmapper.h" |
|
| 91 |
- glibc-static |
|
| 92 |
- libseccomp-devel # for "seccomp.h" & "libseccomp.so" |
|
| 93 |
- libselinux-devel # for "libselinux.so" |
|
| 94 |
- pkgconfig # for the pkg-config command |
|
| 95 |
- selinux-policy |
|
| 96 |
- selinux-policy-devel |
|
| 97 |
- systemd-devel # for "sd-journal.h" and libraries |
|
| 98 |
- tar # older versions of dev-tools do not have tar |
|
| 99 |
- git # required for containerd and runc clone |
|
| 100 |
- cmake # tini build |
|
| 101 |
- vim-common # tini build |
|
| 102 |
- ) |
|
| 103 |
- |
|
| 104 |
- case "$from" in |
|
| 105 |
- oraclelinux:7) |
|
| 106 |
- # Enable the optional repository |
|
| 107 |
- packages=( --enablerepo=ol7_optional_latest "${packages[*]}" )
|
|
| 108 |
- ;; |
|
| 109 |
- esac |
|
| 110 |
- |
|
| 111 |
- case "$from" in |
|
| 112 |
- oraclelinux:6|amazonlinux:latest) |
|
| 113 |
- # doesn't use systemd, doesn't have a devel package for it |
|
| 114 |
- packages=( "${packages[@]/systemd-devel}" )
|
|
| 115 |
- ;; |
|
| 116 |
- esac |
|
| 117 |
- |
|
| 118 |
- # opensuse & oraclelinx:6 do not have the right libseccomp libs |
|
| 119 |
- case "$from" in |
|
| 120 |
- opensuse:*|oraclelinux:6) |
|
| 121 |
- packages=( "${packages[@]/libseccomp-devel}" )
|
|
| 122 |
- runcBuildTags="selinux" |
|
| 123 |
- ;; |
|
| 124 |
- *) |
|
| 125 |
- extraBuildTags+=' seccomp' |
|
| 126 |
- runcBuildTags="seccomp selinux" |
|
| 127 |
- ;; |
|
| 128 |
- esac |
|
| 129 |
- |
|
| 130 |
- case "$from" in |
|
| 131 |
- opensuse:*) |
|
| 132 |
- packages=( "${packages[@]/btrfs-progs-devel/libbtrfs-devel}" )
|
|
| 133 |
- packages=( "${packages[@]/pkgconfig/pkg-config}" )
|
|
| 134 |
- packages=( "${packages[@]/vim-common/vim}" )
|
|
| 135 |
- if [[ "$from" == "opensuse:13."* ]]; then |
|
| 136 |
- packages+=( systemd-rpm-macros ) |
|
| 137 |
- fi |
|
| 138 |
- |
|
| 139 |
- # use zypper |
|
| 140 |
- echo "RUN zypper --non-interactive install ${packages[*]}" >> "$version/Dockerfile"
|
|
| 141 |
- ;; |
|
| 142 |
- photon:*) |
|
| 143 |
- packages=( "${packages[@]/pkgconfig/pkg-config}" )
|
|
| 144 |
- echo "RUN ${installer} install -y ${packages[*]}" >> "$version/Dockerfile"
|
|
| 145 |
- ;; |
|
| 146 |
- *) |
|
| 147 |
- echo "RUN ${installer} install -y ${packages[*]}" >> "$version/Dockerfile"
|
|
| 148 |
- ;; |
|
| 149 |
- esac |
|
| 150 |
- |
|
| 151 |
- echo >> "$version/Dockerfile" |
|
| 152 |
- |
|
| 153 |
- |
|
| 154 |
- awk '$1 == "ENV" && $2 == "GO_VERSION" { print; exit }' ../../../../Dockerfile >> "$version/Dockerfile"
|
|
| 155 |
- echo 'RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local' >> "$version/Dockerfile"
|
|
| 156 |
- echo 'ENV PATH $PATH:/usr/local/go/bin' >> "$version/Dockerfile" |
|
| 157 |
- |
|
| 158 |
- echo >> "$version/Dockerfile" |
|
| 159 |
- |
|
| 160 |
- echo 'ENV AUTO_GOPATH 1' >> "$version/Dockerfile" |
|
| 161 |
- |
|
| 162 |
- echo >> "$version/Dockerfile" |
|
| 163 |
- |
|
| 164 |
- # print build tags in alphabetical order |
|
| 165 |
- buildTags=$( echo "selinux $extraBuildTags" | xargs -n1 | sort -n | tr '\n' ' ' | sed -e 's/[[:space:]]*$//' ) |
|
| 166 |
- |
|
| 167 |
- echo "ENV DOCKER_BUILDTAGS $buildTags" >> "$version/Dockerfile" |
|
| 168 |
- echo "ENV RUNC_BUILDTAGS $runcBuildTags" >> "$version/Dockerfile" |
|
| 169 |
- echo >> "$version/Dockerfile" |
|
| 170 |
- |
|
| 171 |
- case "$from" in |
|
| 172 |
- oraclelinux:6) |
|
| 173 |
- # We need to set the CGO_CPPFLAGS environment to use the updated UEKR4 headers with all the userns stuff. |
|
| 174 |
- # The ordering is very important and should not be changed. |
|
| 175 |
- echo 'ENV CGO_CPPFLAGS -D__EXPORTED_HEADERS__ \' >> "$version/Dockerfile" |
|
| 176 |
- echo ' -I/usr/src/kernels/4.1.12-32.el6uek.x86_64/arch/x86/include/generated/uapi \' >> "$version/Dockerfile" |
|
| 177 |
- echo ' -I/usr/src/kernels/4.1.12-32.el6uek.x86_64/arch/x86/include/uapi \' >> "$version/Dockerfile" |
|
| 178 |
- echo ' -I/usr/src/kernels/4.1.12-32.el6uek.x86_64/include/generated/uapi \' >> "$version/Dockerfile" |
|
| 179 |
- echo ' -I/usr/src/kernels/4.1.12-32.el6uek.x86_64/include/uapi \' >> "$version/Dockerfile" |
|
| 180 |
- echo ' -I/usr/src/kernels/4.1.12-32.el6uek.x86_64/include' >> "$version/Dockerfile" |
|
| 181 |
- echo >> "$version/Dockerfile" |
|
| 182 |
- ;; |
|
| 183 |
- *) ;; |
|
| 184 |
- esac |
|
| 185 |
- |
|
| 186 |
- |
|
| 187 |
-done |
| 188 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,18 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM opensuse:13.2 |
|
| 6 |
- |
|
| 7 |
-RUN zypper --non-interactive install ca-certificates* curl gzip rpm-build |
|
| 8 |
-RUN zypper --non-interactive install libbtrfs-devel device-mapper-devel glibc-static libselinux-devel pkg-config selinux-policy selinux-policy-devel systemd-devel tar git cmake vim systemd-rpm-macros |
|
| 9 |
- |
|
| 10 |
-ENV GO_VERSION 1.10.1 |
|
| 11 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 12 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 13 |
- |
|
| 14 |
-ENV AUTO_GOPATH 1 |
|
| 15 |
- |
|
| 16 |
-ENV DOCKER_BUILDTAGS selinux |
|
| 17 |
-ENV RUNC_BUILDTAGS selinux |
|
| 18 |
- |
| 19 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,28 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM oraclelinux:6 |
|
| 6 |
- |
|
| 7 |
-RUN yum install -y yum-utils && curl -o /etc/yum.repos.d/public-yum-ol6.repo http://yum.oracle.com/public-yum-ol6.repo && yum-config-manager -q --enable ol6_UEKR4 |
|
| 8 |
-RUN yum install -y kernel-uek-devel-4.1.12-32.el6uek |
|
| 9 |
- |
|
| 10 |
-RUN yum groupinstall -y "Development Tools" |
|
| 11 |
-RUN yum install -y btrfs-progs-devel device-mapper-devel glibc-static libselinux-devel pkgconfig selinux-policy selinux-policy-devel tar git cmake vim-common |
|
| 12 |
- |
|
| 13 |
-ENV GO_VERSION 1.10.1 |
|
| 14 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 15 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 16 |
- |
|
| 17 |
-ENV AUTO_GOPATH 1 |
|
| 18 |
- |
|
| 19 |
-ENV DOCKER_BUILDTAGS selinux |
|
| 20 |
-ENV RUNC_BUILDTAGS selinux |
|
| 21 |
- |
|
| 22 |
-ENV CGO_CPPFLAGS -D__EXPORTED_HEADERS__ \ |
|
| 23 |
- -I/usr/src/kernels/4.1.12-32.el6uek.x86_64/arch/x86/include/generated/uapi \ |
|
| 24 |
- -I/usr/src/kernels/4.1.12-32.el6uek.x86_64/arch/x86/include/uapi \ |
|
| 25 |
- -I/usr/src/kernels/4.1.12-32.el6uek.x86_64/include/generated/uapi \ |
|
| 26 |
- -I/usr/src/kernels/4.1.12-32.el6uek.x86_64/include/uapi \ |
|
| 27 |
- -I/usr/src/kernels/4.1.12-32.el6uek.x86_64/include |
|
| 28 |
- |
| 29 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,18 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM oraclelinux:7 |
|
| 6 |
- |
|
| 7 |
-RUN yum groupinstall -y "Development Tools" |
|
| 8 |
-RUN yum install -y --enablerepo=ol7_optional_latest btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel pkgconfig selinux-policy selinux-policy-devel systemd-devel tar git cmake vim-common |
|
| 9 |
- |
|
| 10 |
-ENV GO_VERSION 1.10.1 |
|
| 11 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 12 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 13 |
- |
|
| 14 |
-ENV AUTO_GOPATH 1 |
|
| 15 |
- |
|
| 16 |
-ENV DOCKER_BUILDTAGS seccomp selinux |
|
| 17 |
-ENV RUNC_BUILDTAGS seccomp selinux |
|
| 18 |
- |
| 19 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,18 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/amd64/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM photon:1.0 |
|
| 6 |
- |
|
| 7 |
-RUN tdnf install -y wget curl ca-certificates gzip make rpm-build sed gcc linux-api-headers glibc-devel binutils libseccomp elfutils |
|
| 8 |
-RUN tdnf install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel pkg-config selinux-policy selinux-policy-devel systemd-devel tar git cmake vim-common |
|
| 9 |
- |
|
| 10 |
-ENV GO_VERSION 1.10.1 |
|
| 11 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
|
|
| 12 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 13 |
- |
|
| 14 |
-ENV AUTO_GOPATH 1 |
|
| 15 |
- |
|
| 16 |
-ENV DOCKER_BUILDTAGS seccomp selinux |
|
| 17 |
-ENV RUNC_BUILDTAGS seccomp selinux |
|
| 18 |
- |
| 11 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,20 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/armhf/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM multiarch/centos:7.2.1511-armhfp-clean |
|
| 6 |
- |
|
| 7 |
-RUN yum install -y yum-plugin-ovl |
|
| 8 |
-RUN yum groupinstall --skip-broken -y "Development Tools" |
|
| 9 |
-RUN yum -y swap -- remove systemd-container systemd-container-libs -- install systemd systemd-libs |
|
| 10 |
-RUN yum install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel pkgconfig selinux-policy selinux-policy-devel sqlite-devel systemd-devel tar git cmake vim-common |
|
| 11 |
- |
|
| 12 |
-ENV GO_VERSION 1.10.1 |
|
| 13 |
-RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local
|
|
| 14 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 15 |
- |
|
| 16 |
-ENV AUTO_GOPATH 1 |
|
| 17 |
- |
|
| 18 |
-ENV DOCKER_BUILDTAGS seccomp selinux |
|
| 19 |
-ENV RUNC_BUILDTAGS seccomp selinux |
|
| 20 |
- |
| 21 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,122 +0,0 @@ |
| 1 |
-#!/usr/bin/env bash |
|
| 2 |
-# vim: set ts=4 sw=4 noet : |
|
| 3 |
- |
|
| 4 |
-set -e |
|
| 5 |
- |
|
| 6 |
-# usage: ./generate.sh [versions] |
|
| 7 |
-# ie: ./generate.sh |
|
| 8 |
-# to update all Dockerfiles in this directory |
|
| 9 |
-# or: ./generate.sh centos-7 |
|
| 10 |
-# to only update centos-7/Dockerfile |
|
| 11 |
-# or: ./generate.sh fedora-newversion |
|
| 12 |
-# to create a new folder and a Dockerfile within it |
|
| 13 |
- |
|
| 14 |
-cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" |
|
| 15 |
- |
|
| 16 |
-versions=( "$@" ) |
|
| 17 |
-if [ ${#versions[@]} -eq 0 ]; then
|
|
| 18 |
- versions=( */ ) |
|
| 19 |
-fi |
|
| 20 |
-versions=( "${versions[@]%/}" )
|
|
| 21 |
- |
|
| 22 |
-for version in "${versions[@]}"; do
|
|
| 23 |
- distro="${version%-*}"
|
|
| 24 |
- suite="${version##*-}"
|
|
| 25 |
- from="${distro}:${suite}"
|
|
| 26 |
- installer=yum |
|
| 27 |
- |
|
| 28 |
- if [[ "$distro" == "fedora" ]]; then |
|
| 29 |
- installer=dnf |
|
| 30 |
- fi |
|
| 31 |
- |
|
| 32 |
- mkdir -p "$version" |
|
| 33 |
- |
|
| 34 |
- case "$from" in |
|
| 35 |
- centos:*) |
|
| 36 |
- # get "Development Tools" packages dependencies |
|
| 37 |
- image="multiarch/centos:7.2.1511-armhfp-clean" |
|
| 38 |
- ;; |
|
| 39 |
- *) |
|
| 40 |
- image="${from}"
|
|
| 41 |
- ;; |
|
| 42 |
- esac |
|
| 43 |
- |
|
| 44 |
- echo "$version -> FROM $image" |
|
| 45 |
- cat > "$version/Dockerfile" <<-EOF |
|
| 46 |
- # |
|
| 47 |
- # THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/armhf/generate.sh"! |
|
| 48 |
- # |
|
| 49 |
- |
|
| 50 |
- FROM $image |
|
| 51 |
- EOF |
|
| 52 |
- |
|
| 53 |
- echo >> "$version/Dockerfile" |
|
| 54 |
- |
|
| 55 |
- extraBuildTags= |
|
| 56 |
- runcBuildTags= |
|
| 57 |
- |
|
| 58 |
- case "$from" in |
|
| 59 |
- fedora:*) |
|
| 60 |
- echo "RUN ${installer} -y upgrade" >> "$version/Dockerfile"
|
|
| 61 |
- ;; |
|
| 62 |
- *) ;; |
|
| 63 |
- esac |
|
| 64 |
- |
|
| 65 |
- case "$from" in |
|
| 66 |
- centos:*) |
|
| 67 |
- # get "Development Tools" packages dependencies |
|
| 68 |
- |
|
| 69 |
- echo 'RUN yum install -y yum-plugin-ovl' >> "$version/Dockerfile" |
|
| 70 |
- |
|
| 71 |
- echo 'RUN yum groupinstall --skip-broken -y "Development Tools"' >> "$version/Dockerfile" |
|
| 72 |
- |
|
| 73 |
- if [[ "$version" == "centos-7" ]]; then |
|
| 74 |
- echo 'RUN yum -y swap -- remove systemd-container systemd-container-libs -- install systemd systemd-libs' >> "$version/Dockerfile" |
|
| 75 |
- fi |
|
| 76 |
- ;; |
|
| 77 |
- *) |
|
| 78 |
- echo "RUN ${installer} install -y @development-tools fedora-packager" >> "$version/Dockerfile"
|
|
| 79 |
- ;; |
|
| 80 |
- esac |
|
| 81 |
- |
|
| 82 |
- packages=( |
|
| 83 |
- btrfs-progs-devel # for "btrfs/ioctl.h" (and "version.h" if possible) |
|
| 84 |
- device-mapper-devel # for "libdevmapper.h" |
|
| 85 |
- glibc-static |
|
| 86 |
- libseccomp-devel # for "seccomp.h" & "libseccomp.so" |
|
| 87 |
- libselinux-devel # for "libselinux.so" |
|
| 88 |
- pkgconfig # for the pkg-config command |
|
| 89 |
- selinux-policy |
|
| 90 |
- selinux-policy-devel |
|
| 91 |
- sqlite-devel # for "sqlite3.h" |
|
| 92 |
- systemd-devel # for "sd-journal.h" and libraries |
|
| 93 |
- tar # older versions of dev-tools do not have tar |
|
| 94 |
- git # required for containerd and runc clone |
|
| 95 |
- cmake # tini build |
|
| 96 |
- vim-common # tini build |
|
| 97 |
- ) |
|
| 98 |
- |
|
| 99 |
- extraBuildTags+=' seccomp' |
|
| 100 |
- runcBuildTags="seccomp selinux" |
|
| 101 |
- |
|
| 102 |
- echo "RUN ${installer} install -y ${packages[*]}" >> "$version/Dockerfile"
|
|
| 103 |
- |
|
| 104 |
- echo >> "$version/Dockerfile" |
|
| 105 |
- |
|
| 106 |
- awk '$1 == "ENV" && $2 == "GO_VERSION" { print; exit }' ../../../../Dockerfile.armhf >> "$version/Dockerfile"
|
|
| 107 |
- echo 'RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-armv6l.tar.gz" | tar xzC /usr/local' >> "$version/Dockerfile"
|
|
| 108 |
- echo 'ENV PATH $PATH:/usr/local/go/bin' >> "$version/Dockerfile" |
|
| 109 |
- |
|
| 110 |
- echo >> "$version/Dockerfile" |
|
| 111 |
- |
|
| 112 |
- echo 'ENV AUTO_GOPATH 1' >> "$version/Dockerfile" |
|
| 113 |
- |
|
| 114 |
- echo >> "$version/Dockerfile" |
|
| 115 |
- |
|
| 116 |
- # print build tags in alphabetical order |
|
| 117 |
- buildTags=$( echo "selinux $extraBuildTags" | xargs -n1 | sort -n | tr '\n' ' ' | sed -e 's/[[:space:]]*$//' ) |
|
| 118 |
- |
|
| 119 |
- echo "ENV DOCKER_BUILDTAGS $buildTags" >> "$version/Dockerfile" |
|
| 120 |
- echo "ENV RUNC_BUILDTAGS $runcBuildTags" >> "$version/Dockerfile" |
|
| 121 |
- echo >> "$version/Dockerfile" |
|
| 122 |
-done |
| 11 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,19 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/ppc64le/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM ppc64le/centos:7 |
|
| 6 |
- |
|
| 7 |
-RUN yum groupinstall -y "Development Tools" |
|
| 8 |
-RUN yum -y swap -- remove systemd-container systemd-container-libs -- install systemd systemd-libs |
|
| 9 |
-RUN yum install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel pkgconfig selinux-policy selinux-policy-devel sqlite-devel systemd-devel tar git cmake vim-common |
|
| 10 |
- |
|
| 11 |
-ENV GO_VERSION 1.10.1 |
|
| 12 |
-RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-ppc64le.tar.gz" | tar xzC /usr/local
|
|
| 13 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 14 |
- |
|
| 15 |
-ENV AUTO_GOPATH 1 |
|
| 16 |
- |
|
| 17 |
-ENV DOCKER_BUILDTAGS seccomp selinux |
|
| 18 |
-ENV RUNC_BUILDTAGS seccomp selinux |
|
| 19 |
- |
| 20 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,19 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/ppc64le/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM ppc64le/fedora:24 |
|
| 6 |
- |
|
| 7 |
-RUN dnf -y upgrade |
|
| 8 |
-RUN dnf install -y @development-tools fedora-packager |
|
| 9 |
-RUN dnf install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel pkgconfig selinux-policy selinux-policy-devel sqlite-devel systemd-devel tar git cmake vim-common |
|
| 10 |
- |
|
| 11 |
-ENV GO_VERSION 1.10.1 |
|
| 12 |
-RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-ppc64le.tar.gz" | tar xzC /usr/local
|
|
| 13 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 14 |
- |
|
| 15 |
-ENV AUTO_GOPATH 1 |
|
| 16 |
- |
|
| 17 |
-ENV DOCKER_BUILDTAGS seccomp selinux |
|
| 18 |
-ENV RUNC_BUILDTAGS seccomp selinux |
|
| 19 |
- |
| 20 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,139 +0,0 @@ |
| 1 |
-#!/usr/bin/env bash |
|
| 2 |
-set -e |
|
| 3 |
- |
|
| 4 |
-# usage: ./generate.sh [versions] |
|
| 5 |
-# ie: ./generate.sh |
|
| 6 |
-# to update all Dockerfiles in this directory |
|
| 7 |
-# or: ./generate.sh centos-7 |
|
| 8 |
-# to only update centos-7/Dockerfile |
|
| 9 |
-# or: ./generate.sh fedora-newversion |
|
| 10 |
-# to create a new folder and a Dockerfile within it |
|
| 11 |
- |
|
| 12 |
-cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" |
|
| 13 |
- |
|
| 14 |
-versions=( "$@" ) |
|
| 15 |
-if [ ${#versions[@]} -eq 0 ]; then
|
|
| 16 |
- versions=( */ ) |
|
| 17 |
-fi |
|
| 18 |
-versions=( "${versions[@]%/}" )
|
|
| 19 |
- |
|
| 20 |
-for version in "${versions[@]}"; do
|
|
| 21 |
- distro="${version%-*}"
|
|
| 22 |
- suite="${version##*-}"
|
|
| 23 |
- from="ppc64le/${distro}:${suite}"
|
|
| 24 |
- installer=yum |
|
| 25 |
- |
|
| 26 |
- if [[ "$distro" == "fedora" ]]; then |
|
| 27 |
- installer=dnf |
|
| 28 |
- fi |
|
| 29 |
- |
|
| 30 |
- mkdir -p "$version" |
|
| 31 |
- echo "$version -> FROM $from" |
|
| 32 |
- cat > "$version/Dockerfile" <<-EOF |
|
| 33 |
- # |
|
| 34 |
- # THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/ppc64le/generate.sh"! |
|
| 35 |
- # |
|
| 36 |
- |
|
| 37 |
- FROM $from |
|
| 38 |
- EOF |
|
| 39 |
- |
|
| 40 |
- echo >> "$version/Dockerfile" |
|
| 41 |
- |
|
| 42 |
- extraBuildTags= |
|
| 43 |
- runcBuildTags= |
|
| 44 |
- |
|
| 45 |
- case "$from" in |
|
| 46 |
- ppc64le/fedora:*) |
|
| 47 |
- echo "RUN ${installer} -y upgrade" >> "$version/Dockerfile"
|
|
| 48 |
- ;; |
|
| 49 |
- *) ;; |
|
| 50 |
- esac |
|
| 51 |
- |
|
| 52 |
- case "$from" in |
|
| 53 |
- ppc64le/centos:*) |
|
| 54 |
- # get "Development Tools" packages dependencies |
|
| 55 |
- echo 'RUN yum groupinstall -y "Development Tools"' >> "$version/Dockerfile" |
|
| 56 |
- |
|
| 57 |
- if [[ "$version" == "centos-7" ]]; then |
|
| 58 |
- echo 'RUN yum -y swap -- remove systemd-container systemd-container-libs -- install systemd systemd-libs' >> "$version/Dockerfile" |
|
| 59 |
- fi |
|
| 60 |
- ;; |
|
| 61 |
- ppc64le/opensuse:*) |
|
| 62 |
- # Add the ppc64le repo (hopefully the image is updated soon) |
|
| 63 |
- # get rpm-build and curl packages and dependencies |
|
| 64 |
- echo "RUN zypper addrepo -n ppc64le-oss -f https://download.opensuse.org/ports/ppc/distribution/leap/${suite}/repo/oss/ ppc64le-oss" >> "$version/Dockerfile"
|
|
| 65 |
- echo "RUN zypper addrepo -n ppc64le-updates -f https://download.opensuse.org/ports/update/${suite}/ ppc64le-updates" >> "$version/Dockerfile"
|
|
| 66 |
- echo 'RUN zypper --non-interactive install ca-certificates* curl gzip rpm-build' >> "$version/Dockerfile" |
|
| 67 |
- ;; |
|
| 68 |
- *) |
|
| 69 |
- echo "RUN ${installer} install -y @development-tools fedora-packager" >> "$version/Dockerfile"
|
|
| 70 |
- ;; |
|
| 71 |
- esac |
|
| 72 |
- |
|
| 73 |
- packages=( |
|
| 74 |
- btrfs-progs-devel # for "btrfs/ioctl.h" (and "version.h" if possible) |
|
| 75 |
- device-mapper-devel # for "libdevmapper.h" |
|
| 76 |
- glibc-static |
|
| 77 |
- libseccomp-devel # for "seccomp.h" & "libseccomp.so" |
|
| 78 |
- libselinux-devel # for "libselinux.so" |
|
| 79 |
- pkgconfig # for the pkg-config command |
|
| 80 |
- selinux-policy |
|
| 81 |
- selinux-policy-devel |
|
| 82 |
- sqlite-devel # for "sqlite3.h" |
|
| 83 |
- systemd-devel # for "sd-journal.h" and libraries |
|
| 84 |
- tar # older versions of dev-tools do not have tar |
|
| 85 |
- git # required for containerd and runc clone |
|
| 86 |
- cmake # tini build |
|
| 87 |
- vim-common # tini build |
|
| 88 |
- ) |
|
| 89 |
- |
|
| 90 |
- # opensuse does not have the right libseccomp libs |
|
| 91 |
- case "$from" in |
|
| 92 |
- ppc64le/opensuse:*) |
|
| 93 |
- packages=( "${packages[@]/libseccomp-devel}" )
|
|
| 94 |
- runcBuildTags="selinux" |
|
| 95 |
- ;; |
|
| 96 |
- *) |
|
| 97 |
- extraBuildTags+=' seccomp' |
|
| 98 |
- runcBuildTags="seccomp selinux" |
|
| 99 |
- ;; |
|
| 100 |
- esac |
|
| 101 |
- |
|
| 102 |
- case "$from" in |
|
| 103 |
- ppc64le/opensuse:*) |
|
| 104 |
- packages=( "${packages[@]/btrfs-progs-devel/libbtrfs-devel}" )
|
|
| 105 |
- packages=( "${packages[@]/pkgconfig/pkg-config}" )
|
|
| 106 |
- packages=( "${packages[@]/vim-common/vim}" )
|
|
| 107 |
- if [[ "$from" == "ppc64le/opensuse:13."* ]]; then |
|
| 108 |
- packages+=( systemd-rpm-macros ) |
|
| 109 |
- fi |
|
| 110 |
- |
|
| 111 |
- # use zypper |
|
| 112 |
- echo "RUN zypper --non-interactive install ${packages[*]}" >> "$version/Dockerfile"
|
|
| 113 |
- ;; |
|
| 114 |
- *) |
|
| 115 |
- echo "RUN ${installer} install -y ${packages[*]}" >> "$version/Dockerfile"
|
|
| 116 |
- ;; |
|
| 117 |
- esac |
|
| 118 |
- |
|
| 119 |
- echo >> "$version/Dockerfile" |
|
| 120 |
- |
|
| 121 |
- |
|
| 122 |
- awk '$1 == "ENV" && $2 == "GO_VERSION" { print; exit }' ../../../../Dockerfile.ppc64le >> "$version/Dockerfile"
|
|
| 123 |
- echo 'RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-ppc64le.tar.gz" | tar xzC /usr/local' >> "$version/Dockerfile"
|
|
| 124 |
- echo 'ENV PATH $PATH:/usr/local/go/bin' >> "$version/Dockerfile" |
|
| 125 |
- |
|
| 126 |
- echo >> "$version/Dockerfile" |
|
| 127 |
- |
|
| 128 |
- echo 'ENV AUTO_GOPATH 1' >> "$version/Dockerfile" |
|
| 129 |
- |
|
| 130 |
- echo >> "$version/Dockerfile" |
|
| 131 |
- |
|
| 132 |
- # print build tags in alphabetical order |
|
| 133 |
- buildTags=$( echo "selinux $extraBuildTags" | xargs -n1 | sort -n | tr '\n' ' ' | sed -e 's/[[:space:]]*$//' ) |
|
| 134 |
- |
|
| 135 |
- echo "ENV DOCKER_BUILDTAGS $buildTags" >> "$version/Dockerfile" |
|
| 136 |
- echo "ENV RUNC_BUILDTAGS $runcBuildTags" >> "$version/Dockerfile" |
|
| 137 |
- echo >> "$version/Dockerfile" |
|
| 138 |
- |
|
| 139 |
-done |
| 140 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,20 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/ppc64le/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM ppc64le/opensuse:42.1 |
|
| 6 |
- |
|
| 7 |
-RUN zypper addrepo -n ppc64le-oss -f https://download.opensuse.org/ports/ppc/distribution/leap/42.1/repo/oss/ ppc64le-oss |
|
| 8 |
-RUN zypper addrepo -n ppc64le-updates -f https://download.opensuse.org/ports/update/42.1/ ppc64le-updates |
|
| 9 |
-RUN zypper --non-interactive install ca-certificates* curl gzip rpm-build |
|
| 10 |
-RUN zypper --non-interactive install libbtrfs-devel device-mapper-devel glibc-static libselinux-devel pkg-config selinux-policy selinux-policy-devel sqlite-devel systemd-devel tar git cmake vim |
|
| 11 |
- |
|
| 12 |
-ENV GO_VERSION 1.10.1 |
|
| 13 |
-RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-ppc64le.tar.gz" | tar xzC /usr/local
|
|
| 14 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 15 |
- |
|
| 16 |
-ENV AUTO_GOPATH 1 |
|
| 17 |
- |
|
| 18 |
-ENV DOCKER_BUILDTAGS selinux |
|
| 19 |
-ENV RUNC_BUILDTAGS selinux |
|
| 20 |
- |
| 11 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,19 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/s390x/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM sinenomine/clefos-base-s390x |
|
| 6 |
- |
|
| 7 |
- |
|
| 8 |
-RUN touch /var/lib/rpm/* && yum groupinstall -y "Development Tools" |
|
| 9 |
-RUN touch /var/lib/rpm/* && yum install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel pkgconfig selinux-policy selinux-policy-devel sqlite-devel systemd-devel tar git cmake vim-common |
|
| 10 |
- |
|
| 11 |
-ENV GO_VERSION 1.10.1 |
|
| 12 |
-RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-s390x.tar.gz" | tar xzC /usr/local
|
|
| 13 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 14 |
- |
|
| 15 |
-ENV AUTO_GOPATH 1 |
|
| 16 |
- |
|
| 17 |
-ENV DOCKER_BUILDTAGS seccomp selinux |
|
| 18 |
-ENV RUNC_BUILDTAGS seccomp selinux |
|
| 19 |
-RUN ln -s /usr/bin/gcc /usr/bin/s390x-linux-gnu-gcc |
| 20 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,144 +0,0 @@ |
| 1 |
-#!/usr/bin/env bash |
|
| 2 |
-set -e |
|
| 3 |
- |
|
| 4 |
-# This file is used to auto-generate Dockerfiles for making rpms via 'make rpm' |
|
| 5 |
-# |
|
| 6 |
-# usage: ./generate.sh [versions] |
|
| 7 |
-# ie: ./generate.sh |
|
| 8 |
-# to update all Dockerfiles in this directory |
|
| 9 |
-# or: ./generate.sh centos-7 |
|
| 10 |
-# to only update centos-7/Dockerfile |
|
| 11 |
-# or: ./generate.sh fedora-newversion |
|
| 12 |
-# to create a new folder and a Dockerfile within it |
|
| 13 |
- |
|
| 14 |
-cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" |
|
| 15 |
- |
|
| 16 |
-versions=( "$@" ) |
|
| 17 |
-if [ ${#versions[@]} -eq 0 ]; then
|
|
| 18 |
- versions=( */ ) |
|
| 19 |
-fi |
|
| 20 |
-versions=( "${versions[@]%/}" )
|
|
| 21 |
- |
|
| 22 |
-for version in "${versions[@]}"; do
|
|
| 23 |
- echo "${versions[@]}"
|
|
| 24 |
- distro="${version%-*}"
|
|
| 25 |
- suite="${version##*-}"
|
|
| 26 |
- case "$distro" in |
|
| 27 |
- *opensuse*) |
|
| 28 |
- from="opensuse/s390x:tumbleweed" |
|
| 29 |
- ;; |
|
| 30 |
- *clefos*) |
|
| 31 |
- from="sinenomine/${distro}"
|
|
| 32 |
- ;; |
|
| 33 |
- *) |
|
| 34 |
- echo No appropriate or supported image available. |
|
| 35 |
- exit 1 |
|
| 36 |
- ;; |
|
| 37 |
- esac |
|
| 38 |
- installer=yum |
|
| 39 |
- |
|
| 40 |
- mkdir -p "$version" |
|
| 41 |
- echo "$version -> FROM $from" |
|
| 42 |
- cat > "$version/Dockerfile" <<-EOF |
|
| 43 |
- # |
|
| 44 |
- # THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/s390x/generate.sh"! |
|
| 45 |
- # |
|
| 46 |
- |
|
| 47 |
- FROM $from |
|
| 48 |
- |
|
| 49 |
- EOF |
|
| 50 |
- |
|
| 51 |
- echo >> "$version/Dockerfile" |
|
| 52 |
- |
|
| 53 |
- extraBuildTags='' |
|
| 54 |
- runcBuildTags= |
|
| 55 |
- |
|
| 56 |
- case "$from" in |
|
| 57 |
- *clefos*) |
|
| 58 |
- # Fix for RHBZ #1213602 + get "Development Tools" packages dependencies |
|
| 59 |
- echo 'RUN touch /var/lib/rpm/* && yum groupinstall -y "Development Tools"' >> "$version/Dockerfile" |
|
| 60 |
- ;; |
|
| 61 |
- *opensuse*) |
|
| 62 |
- echo "RUN zypper ar https://download.opensuse.org/ports/zsystems/tumbleweed/repo/oss/ tumbleweed" >> "$version/Dockerfile" |
|
| 63 |
- # get rpm-build and curl packages and dependencies |
|
| 64 |
- echo 'RUN zypper --non-interactive install ca-certificates* curl gzip rpm-build' >> "$version/Dockerfile" |
|
| 65 |
- ;; |
|
| 66 |
- *) |
|
| 67 |
- echo No appropriate or supported image available. |
|
| 68 |
- exit 1 |
|
| 69 |
- ;; |
|
| 70 |
- esac |
|
| 71 |
- |
|
| 72 |
- packages=( |
|
| 73 |
- btrfs-progs-devel # for "btrfs/ioctl.h" (and "version.h" if possible) |
|
| 74 |
- device-mapper-devel # for "libdevmapper.h" |
|
| 75 |
- glibc-static |
|
| 76 |
- libseccomp-devel # for "seccomp.h" & "libseccomp.so" |
|
| 77 |
- libselinux-devel # for "libselinux.so" |
|
| 78 |
- pkgconfig # for the pkg-config command |
|
| 79 |
- selinux-policy |
|
| 80 |
- selinux-policy-devel |
|
| 81 |
- sqlite-devel # for "sqlite3.h" |
|
| 82 |
- systemd-devel # for "sd-journal.h" and libraries |
|
| 83 |
- tar # older versions of dev-tools do not have tar |
|
| 84 |
- git # required for containerd and runc clone |
|
| 85 |
- cmake # tini build |
|
| 86 |
- vim-common # tini build |
|
| 87 |
- ) |
|
| 88 |
- |
|
| 89 |
- case "$from" in |
|
| 90 |
- *clefos*) |
|
| 91 |
- extraBuildTags+=' seccomp' |
|
| 92 |
- runcBuildTags="seccomp selinux" |
|
| 93 |
- ;; |
|
| 94 |
- *opensuse*) |
|
| 95 |
- packages=( "${packages[@]/libseccomp-devel}" )
|
|
| 96 |
- runcBuildTags="selinux" |
|
| 97 |
- ;; |
|
| 98 |
- *) |
|
| 99 |
- echo No appropriate or supported image available. |
|
| 100 |
- exit 1 |
|
| 101 |
- ;; |
|
| 102 |
- esac |
|
| 103 |
- |
|
| 104 |
- case "$from" in |
|
| 105 |
- *clefos*) |
|
| 106 |
- # Same RHBZ fix needed on all yum lines |
|
| 107 |
- echo "RUN touch /var/lib/rpm/* && ${installer} install -y ${packages[*]}" >> "$version/Dockerfile"
|
|
| 108 |
- ;; |
|
| 109 |
- *opensuse*) |
|
| 110 |
- packages=( "${packages[@]/btrfs-progs-devel/libbtrfs-devel}" )
|
|
| 111 |
- packages=( "${packages[@]/pkgconfig/pkg-config}" )
|
|
| 112 |
- packages=( "${packages[@]/vim-common/vim}" )
|
|
| 113 |
- |
|
| 114 |
- packages+=( systemd-rpm-macros ) # for use of >= opensuse:13.* |
|
| 115 |
- |
|
| 116 |
- # use zypper |
|
| 117 |
- echo "RUN zypper --non-interactive install ${packages[*]}" >> "$version/Dockerfile"
|
|
| 118 |
- ;; |
|
| 119 |
- *) |
|
| 120 |
- echo No appropriate or supported image available. |
|
| 121 |
- exit 1 |
|
| 122 |
- ;; |
|
| 123 |
- esac |
|
| 124 |
- |
|
| 125 |
- echo >> "$version/Dockerfile" |
|
| 126 |
- |
|
| 127 |
- awk '$1 == "ENV" && $2 == "GO_VERSION" { print; exit }' ../../../../Dockerfile.s390x >> "$version/Dockerfile"
|
|
| 128 |
- echo 'RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-s390x.tar.gz" | tar xzC /usr/local' >> "$version/Dockerfile"
|
|
| 129 |
- echo 'ENV PATH $PATH:/usr/local/go/bin' >> "$version/Dockerfile" |
|
| 130 |
- |
|
| 131 |
- echo >> "$version/Dockerfile" |
|
| 132 |
- |
|
| 133 |
- echo 'ENV AUTO_GOPATH 1' >> "$version/Dockerfile" |
|
| 134 |
- |
|
| 135 |
- echo >> "$version/Dockerfile" |
|
| 136 |
- |
|
| 137 |
- # print build tags in alphabetical order |
|
| 138 |
- buildTags=$( echo "selinux $extraBuildTags" | xargs -n1 | sort -n | tr '\n' ' ' | sed -e 's/[[:space:]]*$//' ) |
|
| 139 |
- |
|
| 140 |
- echo "ENV DOCKER_BUILDTAGS $buildTags" >> "$version/Dockerfile" |
|
| 141 |
- echo "ENV RUNC_BUILDTAGS $runcBuildTags" >> "$version/Dockerfile" |
|
| 142 |
- # TODO: Investigate why "s390x-linux-gnu-gcc" is required |
|
| 143 |
- echo "RUN ln -s /usr/bin/gcc /usr/bin/s390x-linux-gnu-gcc" >> "$version/Dockerfile" |
|
| 144 |
-done |
| 145 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,20 +0,0 @@ |
| 1 |
-# |
|
| 2 |
-# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/s390x/generate.sh"! |
|
| 3 |
-# |
|
| 4 |
- |
|
| 5 |
-FROM opensuse/s390x:tumbleweed |
|
| 6 |
- |
|
| 7 |
- |
|
| 8 |
-RUN zypper ar https://download.opensuse.org/ports/zsystems/tumbleweed/repo/oss/ tumbleweed |
|
| 9 |
-RUN zypper --non-interactive install ca-certificates* curl gzip rpm-build |
|
| 10 |
-RUN zypper --non-interactive install libbtrfs-devel device-mapper-devel glibc-static libselinux-devel pkg-config selinux-policy selinux-policy-devel sqlite-devel systemd-devel tar git cmake vim systemd-rpm-macros |
|
| 11 |
- |
|
| 12 |
-ENV GO_VERSION 1.10.1 |
|
| 13 |
-RUN curl -fsSL "https://golang.org/dl/go${GO_VERSION}.linux-s390x.tar.gz" | tar xzC /usr/local
|
|
| 14 |
-ENV PATH $PATH:/usr/local/go/bin |
|
| 15 |
- |
|
| 16 |
-ENV AUTO_GOPATH 1 |
|
| 17 |
- |
|
| 18 |
-ENV DOCKER_BUILDTAGS selinux |
|
| 19 |
-ENV RUNC_BUILDTAGS selinux |
|
| 20 |
-RUN ln -s /usr/bin/gcc /usr/bin/s390x-linux-gnu-gcc |
| 21 | 1 |
deleted file mode 100755 |
| ... | ... |
@@ -1,12 +0,0 @@ |
| 1 |
-#!/usr/bin/env bash |
|
| 2 |
-set -e |
|
| 3 |
- |
|
| 4 |
-cd "$(dirname "$BASH_SOURCE")/../.." |
|
| 5 |
- |
|
| 6 |
-targets_from() {
|
|
| 7 |
- git fetch -q https://github.com/docker/docker.git "$1" |
|
| 8 |
- git ls-tree -r --name-only "$(git rev-parse FETCH_HEAD)" contrib/builder/deb/ | grep '/Dockerfile$' | sed -r 's!^contrib/builder/deb/|^contrib/builder/deb/amd64/|-debootstrap|/Dockerfile$!!g' | grep -v / |
|
| 9 |
-} |
|
| 10 |
- |
|
| 11 |
-release_branch=$(git ls-remote --heads https://github.com/docker/docker.git | awk -F 'refs/heads/' '$2 ~ /^release/ { print $2 }' | sort -V | tail -1)
|
|
| 12 |
-{ targets_from master; targets_from "$release_branch"; } | sort -u
|