Go version update to 1.12.9 12/1512/1
authorBalazs Szekeres <balazs.szekeres@nokia.com>
Fri, 30 Aug 2019 14:04:26 +0000 (16:04 +0200)
committerBalazs Szekeres <balazs.szekeres@nokia.com>
Fri, 30 Aug 2019 14:06:00 +0000 (16:06 +0200)
Change-Id: I48aff4be994d2647c7b897dfb21f7948f6f7c03f
Signed-off-by: Balazs Szekeres <balazs.szekeres@nokia.com>
SPECS/caas-danm.spec
SPECS/caas-hyperdanm.spec
SPECS/caas-sriovdp.spec
docker-build/sriovdp/Dockerfile

index 5655a68..f2faa5f 100644 (file)
 %define COMPONENT danm
 %define RPM_NAME caas-%{COMPONENT}
 %define RPM_MAJOR_VERSION 4.0.0
-%define RPM_MINOR_VERSION 3
+%define RPM_MINOR_VERSION 4
 %define DANM_VERSION 5e15d4e322fc5ff89b06ac70bd83b5ce4c09d0df
 %define CNI_VERSION 0.8.1
-%define go_version 1.12.1
+%define go_version 1.12.9
 %define SRIOV_VERSION 9e4c973b2ac517c64867e33d61aee152d70dc330
 %define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
 %define binary_build_dir %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/binary-save
index cd5dfc8..a447ae3 100644 (file)
@@ -15,9 +15,9 @@
 %define COMPONENT hyperdanm
 %define RPM_NAME caas-%{COMPONENT}
 %define RPM_MAJOR_VERSION 4.0.0
-%define RPM_MINOR_VERSION 1
+%define RPM_MINOR_VERSION 2
 %define DANM_VERSION 5e15d4e322fc5ff89b06ac70bd83b5ce4c09d0df
-%define go_version 1.12.1
+%define go_version 1.12.9
 %define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
 %define danm_components netwatcher svcwatcher webhook
 %define docker_build_dir %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-build
index 3e0b554..62b3151 100644 (file)
@@ -15,8 +15,9 @@
 %define COMPONENT sriovdp
 %define RPM_NAME caas-%{COMPONENT}
 %define RPM_MAJOR_VERSION 2.0.0
-%define RPM_MINOR_VERSION 4
+%define RPM_MINOR_VERSION 5
 %define IMAGE_TAG %{RPM_MAJOR_VERSION}-%{RPM_MINOR_VERSION}
+%define go_version 1.12.9
 
 Name:           %{RPM_NAME}
 Version:        %{RPM_MAJOR_VERSION}
@@ -49,6 +50,7 @@ docker build \
   --build-arg https_proxy="${https_proxy}" \
   --build-arg no_proxy="${no_proxy}" \
   --build-arg SRIOVDP="%{RPM_MAJOR_VERSION}" \
+  --build-arg go_version="%{go_version}" \
   --tag %{COMPONENT}:%{IMAGE_TAG} \
   %{_builddir}/%{RPM_NAME}-%{RPM_MAJOR_VERSION}/docker-build/%{COMPONENT}/
 
index e478e91..554c389 100644 (file)
@@ -18,13 +18,19 @@ MAINTAINER Levente Kale <levente.kale@nokia.com>
 ARG SRIOVDP
 ENV SRIOVDP_VERSION=$SRIOVDP
 ENV GOPATH /go
-ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
+ARG go_install_dir="/usr/local/go"
+ARG go_version
+ENV PATH $GOPATH/bin:$go_install_dir/bin:/usr/local/go/bin:$PATH
 ENV GOOS=linux
 
 WORKDIR /
 
 RUN apk add --no-cache jq \
-&& apk add --no-cache --virtual .tools ca-certificates gcc musl-dev go glide git \
+&& apk add --no-cache --virtual .tools ca-certificates gcc musl-dev go glide git bash curl tar \
+&& mkdir -p $go_install_dir \
+&& curl -fsSL -k https://dl.google.com/go/go${go_version}.src.tar.gz | tar zx --strip-components=1 -C ${go_install_dir} \
+&& cd ${go_install_dir}/src/ \
+&& ./make.bash \
 && mkdir -p $GOPATH/src/github.com/intel \
 && git clone https://github.com/intel/sriov-network-device-plugin.git $GOPATH/src/github.com/intel/sriov-network-device-plugin --branch=v${SRIOVDP_VERSION} \
 && cd $GOPATH/src/github.com/intel/sriov-network-device-plugin \
@@ -34,6 +40,7 @@ RUN apk add --no-cache jq \
 && rm -rf $GOPATH/src \
 && rm -rf $GOPATH/bin \
 && apk del .tools \
+&& rm -rf $go_install_dir \
 && rm -rf /var/cache/apk/* \
 && rm -rf /var/lib/apt/lists/* \
 && rm -rf /tmp/* \