|
@@ -41,6 +41,17 @@ for version in "${versions[@]}"; do
|
|
|
extraBuildTags='pkcs11'
|
|
|
runcBuildTags=
|
|
|
|
|
|
+ case "$from" in
|
|
|
+ oraclelinux:6)
|
|
|
+ # We need a known version of the kernel-uek-devel headers to set CGO_CPPFLAGS, so grab the UEKR4 GA version
|
|
|
+ # This requires using yum-config-manager from yum-utils to enable the UEKR4 yum repo
|
|
|
+ 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"
|
|
|
+ echo "RUN yum install -y kernel-uek-devel-4.1.12-32.el6uek" >> "$version/Dockerfile"
|
|
|
+ echo >> "$version/Dockerfile"
|
|
|
+ ;;
|
|
|
+ *) ;;
|
|
|
+ esac
|
|
|
+
|
|
|
case "$from" in
|
|
|
centos:*)
|
|
|
# get "Development Tools" packages dependencies
|
|
@@ -125,17 +136,6 @@ for version in "${versions[@]}"; do
|
|
|
|
|
|
echo >> "$version/Dockerfile"
|
|
|
|
|
|
- case "$from" in
|
|
|
- oraclelinux:6)
|
|
|
- # We need a known version of the kernel-uek-devel headers to set CGO_CPPFLAGS, so grab the UEKR4 GA version
|
|
|
- # This requires using yum-config-manager from yum-utils to enable the UEKR4 yum repo
|
|
|
- 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"
|
|
|
- echo "RUN yum install -y kernel-uek-devel-4.1.12-32.el6uek" >> "$version/Dockerfile"
|
|
|
- echo >> "$version/Dockerfile"
|
|
|
- ;;
|
|
|
- *) ;;
|
|
|
- esac
|
|
|
-
|
|
|
|
|
|
awk '$1 == "ENV" && $2 == "GO_VERSION" { print; exit }' ../../../../Dockerfile >> "$version/Dockerfile"
|
|
|
echo 'RUN curl -fSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz" | tar xzC /usr/local' >> "$version/Dockerfile"
|