Build the docker-engine RPM for Amazon Linux

Signed-off-by: Iliana Weller <iweller@amazon.com>
This commit is contained in:
Iliana Weller 2017-02-08 21:24:55 +00:00
parent dea528e8cd
commit 0b0216b67b
No known key found for this signature in database
GPG key ID: DCE341C8E949BC81
3 changed files with 21 additions and 3 deletions

View file

@ -0,0 +1,18 @@
#
# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/amd64/generate.sh"!
#
FROM amazonlinux:latest
RUN yum groupinstall -y "Development Tools"
RUN yum install -y btrfs-progs-devel device-mapper-devel glibc-static libseccomp-devel libselinux-devel libtool-ltdl-devel pkgconfig selinux-policy selinux-policy-devel tar git cmake vim-common
ENV GO_VERSION 1.7.5
RUN curl -fSL "https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local
ENV PATH $PATH:/usr/local/go/bin
ENV AUTO_GOPATH 1
ENV DOCKER_BUILDTAGS pkcs11 seccomp selinux
ENV RUNC_BUILDTAGS seccomp selinux

View file

@ -60,7 +60,7 @@ for version in "${versions[@]}"; do
esac
case "$from" in
centos:*)
centos:*|amazonlinux:latest)
# get "Development Tools" packages dependencies
echo 'RUN yum groupinstall -y "Development Tools"' >> "$version/Dockerfile"
@ -110,7 +110,7 @@ for version in "${versions[@]}"; do
esac
case "$from" in
oraclelinux:6)
oraclelinux:6|amazonlinux:latest)
# doesn't use systemd, doesn't have a devel package for it
packages=( "${packages[@]/systemd-devel}" )
;;

View file

@ -51,7 +51,7 @@ Requires: libcgroup1
%endif
Requires: tar
Requires: xz
%if 0%{?fedora} >= 21 || 0%{?centos} >= 7 || 0%{?rhel} >= 7 || 0%{?oraclelinux} >= 7
%if 0%{?fedora} >= 21 || 0%{?centos} >= 7 || 0%{?rhel} >= 7 || 0%{?oraclelinux} >= 7 || 0%{?amzn} >= 1
# Resolves: rhbz#1165615
Requires: device-mapper-libs >= 1.02.90-1
%endif