mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add support for building docker-engine RPM on Oracle Linux 7.
Signed-off-by: Avi Miller <avi.miller@oracle.com>
This commit is contained in:
parent
f5ebcfe1dc
commit
0117330ae7
2 changed files with 24 additions and 1 deletions
|
@ -43,6 +43,10 @@ for version in "${versions[@]}"; do
|
||||||
echo 'RUN yum -y swap -- remove systemd-container systemd-container-libs -- install systemd systemd-libs' >> "$version/Dockerfile"
|
echo 'RUN yum -y swap -- remove systemd-container systemd-container-libs -- install systemd systemd-libs' >> "$version/Dockerfile"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
oraclelinux:*)
|
||||||
|
# get "Development Tools" packages and dependencies
|
||||||
|
echo 'RUN yum groupinstall -y "Development Tools"' >> "$version/Dockerfile"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo 'RUN yum install -y @development-tools fedora-packager' >> "$version/Dockerfile"
|
echo 'RUN yum install -y @development-tools fedora-packager' >> "$version/Dockerfile"
|
||||||
;;
|
;;
|
||||||
|
@ -57,7 +61,11 @@ for version in "${versions[@]}"; do
|
||||||
sqlite-devel # for "sqlite3.h"
|
sqlite-devel # for "sqlite3.h"
|
||||||
tar # older versions of dev-tools don't have tar
|
tar # older versions of dev-tools don't have tar
|
||||||
)
|
)
|
||||||
echo "RUN yum install -y ${packages[*]}" >> "$version/Dockerfile"
|
if [ "$from" == "oraclelinux:7" ]; then
|
||||||
|
echo "RUN yum install --enablerepo=ol7_optional_latest -y ${packages[*]}" >> "$version/Dockerfile"
|
||||||
|
else
|
||||||
|
echo "RUN yum install -y ${packages[*]}" >> "$version/Dockerfile"
|
||||||
|
fi
|
||||||
|
|
||||||
echo >> "$version/Dockerfile"
|
echo >> "$version/Dockerfile"
|
||||||
|
|
||||||
|
|
15
contrib/builder/rpm/oraclelinux-7/Dockerfile
Normal file
15
contrib/builder/rpm/oraclelinux-7/Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#
|
||||||
|
# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/generate.sh"!
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM oraclelinux:7
|
||||||
|
|
||||||
|
RUN yum groupinstall -y "Development Tools"
|
||||||
|
RUN yum install --enablerepo=ol7_optional_latest -y btrfs-progs-devel device-mapper-devel glibc-static libselinux-devel sqlite-devel tar
|
||||||
|
|
||||||
|
ENV GO_VERSION 1.4.2
|
||||||
|
RUN curl -fSL "https://storage.googleapis.com/golang/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 selinux
|
Loading…
Add table
Reference in a new issue