2016-01-07 21:09:47 +00:00
|
|
|
#
|
2016-01-15 23:46:56 +00:00
|
|
|
# THIS FILE IS AUTOGENERATED; SEE "contrib/builder/rpm/amd64/generate.sh"!
|
2016-01-07 21:09:47 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
FROM oraclelinux:6
|
|
|
|
|
|
|
|
RUN yum groupinstall -y "Development Tools"
|
2016-03-22 00:37:31 +00:00
|
|
|
RUN yum install -y btrfs-progs-devel device-mapper-devel glibc-static libselinux-devel libtool-ltdl-devel pkgconfig selinux-policy selinux-policy-devel sqlite-devel tar git
|
2016-01-07 21:09:47 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
RUN yum install -y kernel-uek-devel-4.1.12-32.el6uek
|
|
|
|
|
2016-04-13 18:22:48 +00:00
|
|
|
ENV GO_VERSION 1.5.4
|
2016-01-07 21:09:47 +00:00
|
|
|
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
|
2016-03-22 00:37:31 +00:00
|
|
|
ENV RUNC_BUILDTAGS selinux
|
2016-01-07 21:09:47 +00:00
|
|
|
|
|
|
|
ENV CGO_CPPFLAGS -D__EXPORTED_HEADERS__ \
|
|
|
|
-I/usr/src/kernels/4.1.12-32.el6uek.x86_64/arch/x86/include/generated/uapi \
|
|
|
|
-I/usr/src/kernels/4.1.12-32.el6uek.x86_64/arch/x86/include/uapi \
|
|
|
|
-I/usr/src/kernels/4.1.12-32.el6uek.x86_64/include/generated/uapi \
|
|
|
|
-I/usr/src/kernels/4.1.12-32.el6uek.x86_64/include/uapi \
|
|
|
|
-I/usr/src/kernels/4.1.12-32.el6uek.x86_64/include
|
|
|
|
|