X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=Dockerfile.local;h=23683ea188e7a5e892dba1129fc1260090375fa5;hb=1b782761acbcbbe4666d667a0f04a44f136ef1a3;hp=737caad3839f4fbccdcb44cae720af7000b3f70e;hpb=922c41753ffbb4b526f2135a23c39f480c58e2cb;p=osm%2FLCM.git diff --git a/Dockerfile.local b/Dockerfile.local index 737caad..23683ea 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM ubuntu:18.04 +FROM ubuntu:20.04 # Set the working directory to /app WORKDIR /app/LCM @@ -24,13 +24,13 @@ RUN apt-get update && apt-get install -y curl xz-utils gnupg2 \ && echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list \ && apt-get update && apt-get install -y kubectl -RUN curl https://get.helm.sh/helm-v2.15.2-linux-amd64.tar.gz --output helm-v2.15.2.tar.gz \ - && tar -zxvf helm-v2.15.2.tar.gz \ +RUN curl https://get.helm.sh/helm-v2.17.0-linux-amd64.tar.gz --output helm-v2.17.0.tar.gz \ + && tar -zxvf helm-v2.17.0.tar.gz \ && mv linux-amd64/helm /usr/local/bin/helm \ && rm -r linux-amd64/ -RUN curl https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz --output helm-v3.3.4.tar.gz \ - && tar -zxvf helm-v3.3.4.tar.gz \ +RUN curl https://get.helm.sh/helm-v3.7.2-linux-amd64.tar.gz --output helm-v3.7.2.tar.gz \ + && tar -zxvf helm-v3.7.2.tar.gz \ && mv linux-amd64/helm /usr/local/bin/helm3 \ && rm -r linux-amd64/ @@ -54,6 +54,10 @@ RUN git -C /app clone https://osm.etsi.org/gerrit/osm/common.git \ && python3 -m pip install -e /app/common # python3-pymongo python3-yaml pycrypto aiokafka +RUN python3 -m pip install \ + -r /app/common/requirements.txt \ + -r /app/N2VC/requirements.txt + RUN python3 -m pip install grpcio-tools grpclib RUN mkdir -p /app/storage/kafka && mkdir -p /app/log @@ -125,6 +129,9 @@ ENV OSMLCM_GLOBAL_LOGLEVEL DEBUG # Copy the current directory contents into the container at /app/LCM ADD . /app/LCM +RUN python3 -m pip install \ + -r requirements.txt + # Run app.py when the container launches CMD python3 -m osm_lcm.lcm