From 9ae6b9ea5f5ab8b5859d6edb0d7c930accec11c4 Mon Sep 17 00:00:00 2001
From: Alex ubuntu vm <alexdecb@yahoo.es>
Date: Mon, 22 Apr 2024 15:34:13 +0200
Subject: [PATCH] sdn controller: new version.

- Revised the rest api endpoints
- Fixed bug where if you deployed many things at once, it would break
---
 build/build_images.sh       | 2 +-
 build/controller/Dockerfile | 9 ++++++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/build/build_images.sh b/build/build_images.sh
index 6a2759b..146a4ce 100755
--- a/build/build_images.sh
+++ b/build/build_images.sh
@@ -2,7 +2,7 @@
 set -e
 
 # Set environment variables
-export VERSION="2.3"
+export VERSION="2.4"
 export DOCKERHUB_REPO="alexdecb"
 
 # Function to build image
diff --git a/build/controller/Dockerfile b/build/controller/Dockerfile
index 48b59f7..35c7e20 100644
--- a/build/controller/Dockerfile
+++ b/build/controller/Dockerfile
@@ -1,9 +1,12 @@
 FROM onosproject/onos:2.7-latest
 
-COPY ./src/controller ./
 
 RUN apt-get update && \
-    apt-get install wget && \
-    chmod +x ./setup_controller.sh
+    apt-get install -y wget ssh sshpass
+    
+COPY ./src/controller ./
+
+RUN chmod +x ./setup_controller.sh && \
+    chmod +x ./onos_critique.sh
 
 ENTRYPOINT ["./setup_controller.sh"]
\ No newline at end of file
-- 
GitLab