# packages
#
RUN apt-get update -y && \
+ apt-get upgrade -y && \
apt-get install -y \
build-essential \
apt-utils \
ENV PATH="/usr/local/go/bin:${PATH}"
-#
-# rancodev libs
-#
-RUN mkdir -p /opt/build \
- && cd /opt/build && git clone https://gerrit.o-ran-sc.org/r/ric-plt/lib/rmr \
- && cd rmr/; mkdir build; cd build; cmake ..; make install \
- && cd /opt/build && git clone https://gerrit.o-ran-sc.org/r/com/log \
- && cd log/ ; ./autogen.sh ; ./configure ; make ; make install \
- && ldconfig
-
COPY build/user_entrypoint.sh /
RUN chmod +x /user_entrypoint.sh
#----------------------------------------------------------
FROM appmgr-xapp-base as appmgr-build
-ARG PACKAGEURL
-ARG HELMVERSION
-
+ARG HELMVERSION=v2.13.0-rc.1
+ARG PACKAGEURL=gerrit.o-ran-sc.org/r/c/ric-plt/appmgr/
#
# helm
#
#----------------------------------------------------------
FROM appmgr-build as appmgr-test_unit
-ARG PACKAGEURL
+ARG PACKAGEURL=gerrit.o-ran-sc.org/r/c/ric-plt/appmgr/
WORKDIR "/go/src/${PACKAGEURL}"
CMD ["make","go-test"]
#
#----------------------------------------------------------
FROM appmgr-build as appmgr-test_fmt
-ARG PACKAGEURL
+ARG PACKAGEURL=gerrit.o-ran-sc.org/r/c/ric-plt/appmgr/
WORKDIR "/go/src/${PACKAGEURL}"
CMD ["make","go-test-fmt"]
#
#----------------------------------------------------------
FROM appmgr-build as appmgr-test_sanity
-ARG PACKAGEURL
+ARG PACKAGEURL=gerrit.o-ran-sc.org/r/c/ric-plt/appmgr/
WORKDIR "/go/src/${PACKAGEURL}"
CMD ["jq","-s",".", "api/appmgr_rest_api.json"]
#
#----------------------------------------------------------
FROM ubuntu:16.04 as appmgr
-ARG PACKAGEURL
+ARG PACKAGEURL=gerrit.o-ran-sc.org/r/c/ric-plt/appmgr/
RUN apt-get update -y \
&& apt-get install -y sudo openssl ca-certificates ca-cacert \