[VOL-2941] Upgrading to latest protos and lib
Change-Id: I2ce126c0fd78735ecd53a4c3b1e34f2de42cbdf3
diff --git a/docker/Dockerfile.simulated_onu b/docker/Dockerfile.simulated_onu
index 6cc75ce..f1a1a2a 100644
--- a/docker/Dockerfile.simulated_onu
+++ b/docker/Dockerfile.simulated_onu
@@ -15,16 +15,10 @@
# -------------
# Build stage
-FROM golang:1.12-alpine3.9 AS build-env
+FROM golang:1.13.8-alpine3.11 AS build-env
# Install required packages
-RUN apk add --no-cache \
- wget=1.20.3-r0 \
- git=2.20.2-r0 \
- make=4.2.1-r2 \
- build-base=0.5-r1 \
- protobuf=3.6.1-r1 \
- protobuf-dev=3.6.1-r1
+RUN apk add --no-cache build-base=0.5-r1
# Prepare directory structure
RUN mkdir -p /build/src/simulated_onu \
@@ -47,19 +41,19 @@
SHELL ["/bin/ash", "-o", "pipefail", "-c"]
RUN go build -mod=vendor -o /build/simulated_onu \
-ldflags \
- "-X github.com/opencord/voltha-lib-go/v2/pkg/version.version=$org_label_schema_version \
- -X github.com/opencord/voltha-lib-go/v2/pkg/version.vcsRef=$org_label_schema_vcs_ref \
- -X github.com/opencord/voltha-lib-go/v2/pkg/version.vcsDirty=$org_opencord_vcs_dirty \
- -X github.com/opencord/voltha-lib-go/v2/pkg/version.goVersion=$(go version 2>&1 | sed -E 's/.*go([0-9]+\.[0-9]+\.[0-9]+).*/\1/g') \
- -X github.com/opencord/voltha-lib-go/v2/pkg/version.os=$(go env GOHOSTOS) \
- -X github.com/opencord/voltha-lib-go/v2/pkg/version.arch=$(go env GOHOSTARCH) \
- -X github.com/opencord/voltha-lib-go/v2/pkg/version.buildTime=$org_label_schema_build_date" \
+ "-X github.com/opencord/voltha-lib-go/v3/pkg/version.version=$org_label_schema_version \
+ -X github.com/opencord/voltha-lib-go/v3/pkg/version.vcsRef=$org_label_schema_vcs_ref \
+ -X github.com/opencord/voltha-lib-go/v3/pkg/version.vcsDirty=$org_opencord_vcs_dirty \
+ -X github.com/opencord/voltha-lib-go/v3/pkg/version.goVersion=$(go version 2>&1 | sed -E 's/.*go([0-9]+\.[0-9]+\.[0-9]+).*/\1/g') \
+ -X github.com/opencord/voltha-lib-go/v3/pkg/version.os=$(go env GOHOSTOS) \
+ -X github.com/opencord/voltha-lib-go/v3/pkg/version.arch=$(go env GOHOSTARCH) \
+ -X github.com/opencord/voltha-lib-go/v3/pkg/version.buildTime=$org_label_schema_build_date" \
cmd/simulated_onu/main.go
# -------------
# Image creation stage
-FROM alpine:3.9.4
+FROM alpine:3.11.3
# Set the working directory
WORKDIR /app