Removing juju installation in the jenkins pipeline
With the new way of the juju accces in k8s_08 testsuite,
installing juju in the container is not needed.
k8s_08 testsuite changes: https://osm.etsi.org/gerrit/c/osm/tests/+/11104
Change-Id: I945aa6995241869926c5f76ec9c3eaf960576920
Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
(cherry picked from commit 8e0504fac0d2280b41a07f1e4c124c376997c50d)
diff --git a/README.md b/README.md
index 1d7d5dc..68741c2 100644
--- a/README.md
+++ b/README.md
@@ -64,9 +64,6 @@
# K8S config file
K8S_CREDENTIALS=<path_to_kubeconfig>
-# Juju data file
-JUJU_DATA=<path_to_jujudata>
-
# The following set of environment variables will be used in host
# of the robot framework. Not needed for docker execution
@@ -106,7 +103,6 @@
* <path_to_clouds.yaml> [OPTIONAL]: It is the absolute path to the clouds.yaml file in the host
* <path_to_sdncs.yaml> [OPTIONAL]: It is the absolute path to the sdncs.yaml file in the host
* <path_to_kubeconfig> [OPTIONAL]: It is the kubeconfig file to be used for k8s clusters
-* <path_to_jujudata> [OPTIONAL]: It is the jujudata file to be used for juju cli
```bash
docker run --rm=true -t osmtests --env-file <env_file> \
@@ -114,7 +110,6 @@
-v <path_to_clouds.yaml>:/robot-systest/clouds.yaml \
-v <path_to_sdncs.yaml>:/robot-systest/sdncs.yaml \
-v <path_to_kubeconfig>:/root/.kube/config \
- -v <path_to_jujudata>:/root/.local/share/juju \
-o <osmclient_version> \
-p <package_branch> \
-t <testing_tags>
diff --git a/docker/Dockerfile b/docker/Dockerfile
index a0740ff..b3b7860 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -21,18 +21,7 @@
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install git software-properties-common \
make python3 debhelper python3-pip apt-utils ssh iputils-ping libcurl4-openssl-dev libssl-dev cargo rustc
-# Installing Juju
-ARG JUJU_VERSION_M=2.8
-ARG JUJU_VERSION_R=11
-ARG JUJU_VERSION=$JUJU_VERSION_M.$JUJU_VERSION_R
-
-RUN curl --output /tmp/juju-$JUJU_VERSION-linux-amd64.tar.xz -LO \
- https://launchpad.net/juju/$JUJU_VERSION_M/$JUJU_VERSION/+download/juju-$JUJU_VERSION-linux-amd64.tar.xz && \
- tar -xf /tmp/juju-$JUJU_VERSION-linux-amd64.tar.xz -C /tmp && \
- install /tmp/juju /usr/local/bin/juju && \
- rm /tmp/juju /tmp/juju-$JUJU_VERSION-linux-amd64.tar.xz
-
-RUN add-apt-repository -y ppa:rmescandon/yq && apt update && apt install yq -y
+RUN add-apt-repository -y ppa:rmescandon/yq && apt update && apt install yq -y
RUN python3 -m pip install -U pip
@@ -67,9 +56,6 @@
# Kubeconfig file
ENV K8S_CREDENTIALS=/root/.kube/config
-# Juju data folder
-ENV JUJU_DATA=/root/.local/share/juju
-
# OSM RSA file
ENV OSM_RSA_FILE=/root/osm_id_rsa
diff --git a/robot-systest/run_test.sh b/robot-systest/run_test.sh
index 75cd0d4..dd77f8e 100755
--- a/robot-systest/run_test.sh
+++ b/robot-systest/run_test.sh
@@ -150,7 +150,6 @@
-v <path_to_reports>:/reports osmtests \\
-v <path_to_clouds.yaml>:/robot-systest/clouds.yaml \\
-v <path_to_kubeconfig>:/root/.kube/config \\
- -v <path_to_jujudata>:/root/.local/share/juju \\
-o <osmclient_version> \\
-p <package_branch> \\
-t <testing_tags>
@@ -166,8 +165,7 @@
Volumes:
<path_to_reports> [OPTIONAL]: It is the absolute path to reports location in the host
<path_to_clouds.yaml> [OPTIONAL]: It is the absolute path to the clouds.yaml file in the host
- <path_to_kubeconfig> [OPTIONAL]: It is the kubeconfig file to be used for k8s clusters
- <path_to_jujudata> [OPTIONAL]: It is the jujudata file to be used for juju cli"
+ <path_to_kubeconfig> [OPTIONAL]: It is the kubeconfig file to be used for k8s clusters"
exit 0
;;