Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Refine the auth provider
[pti/o2.git]
/
Dockerfile.localtest
diff --git
a/Dockerfile.localtest
b/Dockerfile.localtest
index
b047113
..
33fcaa8
100644
(file)
--- a/
Dockerfile.localtest
+++ b/
Dockerfile.localtest
@@
-1,25
+1,23
@@
-FROM python:3.1
0
-slim-buster
+FROM python:3.1
1
-slim-buster
-RUN apt-get update; apt-get install -y git gcc
+RUN apt-get update && apt-get install -y git gcc \
+ vim curl procps ssh
# in case git repo is not accessable
# in case git repo is not accessable
-RUN mkdir -p /cgtsclient
+RUN mkdir -p /cgtsclient
&& mkdir -p /distcloud-client
COPY temp/config /cgtsclient/
COPY temp/config /cgtsclient/
-RUN pip install -e cgtsclient/sysinv/cgts-client/cgts-client/
-
-RUN mkdir -p /distcloud-client
COPY temp/distcloud-client /distcloud-client/
COPY temp/distcloud-client /distcloud-client/
-RUN pip install -e /distcloud-client/distributedcloud-client
-# in case git repo is not accessable
-
+COPY temp/fault /faultclient/
-COPY requirements.txt /tmp/
-COPY constraints.txt /tmp/
+RUN pip install -e cgtsclient/sysinv/cgts-client/cgts-client/ \
+ && pip install -e /distcloud-client/distributedcloud-client \
+ && pip install -e /faultclient/python-fmclient/fmclient/
+# in case git repo is not accessable
-RUN pip install -r /tmp/requirements.txt -c /tmp/constraints.txt
+COPY requirements.txt constraints.txt requirements-test.txt /tmp/
-COPY requirements-test.txt /tmp/
-
RUN
pip install -r /tmp/requirements-test.txt
+RUN pip install -r /tmp/requirements.txt -c /tmp/constraints.txt \
+
&&
pip install -r /tmp/requirements-test.txt
RUN mkdir -p /src
RUN mkdir -p /src
@@
-45,13
+43,15
@@
COPY configs/ /etc/o2/
# RUN pip install -e /src
COPY tests/ /tests/
# RUN pip install -e /src
COPY tests/ /tests/
-RUN apt-get install -y procps vim
+
#
RUN apt-get install -y procps vim
-RUN apt-get install -y curl
+
#
RUN apt-get install -y curl
RUN curl -O https://get.helm.sh/helm-v3.3.1-linux-amd64.tar.gz;
RUN tar -zxvf helm-v3.3.1-linux-amd64.tar.gz; cp linux-amd64/helm /usr/local/bin
RUN mkdir -p /etc/kubeconfig/
# COPY temp/kubeconfig/config /etc/kubeconfig/
RUN curl -O https://get.helm.sh/helm-v3.3.1-linux-amd64.tar.gz;
RUN tar -zxvf helm-v3.3.1-linux-amd64.tar.gz; cp linux-amd64/helm /usr/local/bin
RUN mkdir -p /etc/kubeconfig/
# COPY temp/kubeconfig/config /etc/kubeconfig/
+RUN mkdir -p /var/log/orano2
+
WORKDIR /src
WORKDIR /src