Code Review
/
ric-plt
/
vespamgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Additions to measurements
[ric-plt/vespamgr.git]
/
Dockerfile
diff --git
a/Dockerfile
b/Dockerfile
index
cf33106
..
ec5fd57
100644
(file)
--- a/
Dockerfile
+++ b/
Dockerfile
@@
-13,7
+13,10
@@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
+#
+# This source code is part of the near-RT RIC (RAN Intelligent Controller)
+# platform project (RICP).
+#
# Start from golang v1.12 base image
FROM golang:1.12 as gobuild
# Start from golang v1.12 base image
FROM golang:1.12 as gobuild
@@
-38,12
+41,7
@@
WORKDIR $GOPATH/src/vesmgr
# Copy vesmgr to the Working Directory
COPY $HOME/ .
# Copy vesmgr to the Working Directory
COPY $HOME/ .
-RUN GO111MODULE=on go mod download
-
-# Install vesmgr
-RUN export GOPATH=$HOME/go && \
- export PATH=$GOPATH/bin:$GOROOT/bin:$PATH && \
- go install -v ./cmd/vesmgr
+RUN ./build_vesmgr.sh
#################
#
#################
#
@@
-51,6
+49,13
@@
RUN export GOPATH=$HOME/go && \
# Ubuntu or something smaller?
FROM ubuntu:18.04
# Ubuntu or something smaller?
FROM ubuntu:18.04
+# For trouble-shooting
+RUN apt-get update; apt-get install -y \
+ iputils-ping \
+ net-tools \
+ curl \
+ tcpdump
+
# Create the configuration directory for ves agent
RUN mkdir -p /etc/ves-agent
COPY --from=gobuild root/go/bin /root/go/bin
# Create the configuration directory for ves agent
RUN mkdir -p /etc/ves-agent
COPY --from=gobuild root/go/bin /root/go/bin