diff --git a/Dockerfile b/Dockerfile index a808ea3ea58c12e85e09bfb65ac9eadc29c3dfb2..18cd42e63783258106d17c03e6406fed6b663c1c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,9 +63,6 @@ RUN cd /opt/evaluation-orchestrator/lib/workload-API-client ; mvn clean install RUN cd /opt/evaluation-orchestrator/lib/ ; git clone https://omi-gitlab.e-technik.uni-ulm.de/mowgli/dbms-catalogue-client.git RUN cd /opt/evaluation-orchestrator/lib/dbms-catalogue-client ; mvn clean install -DskipTests -# Download and build maki-manager-client -RUN cd /opt/evaluation-orchestrator/lib/ ; git clone https://omi-gitlab.e-technik.uni-ulm.de/mowgli/maki-manager-client -RUN cd /opt/evaluation-orchestrator/lib/maki-manager-client ; mvn clean install -DskipTests # install maven deps RUN cd /opt/evaluation-orchestrator/ ; mvn clean install diff --git a/README.md b/README.md index e74e67f359f79228ca76b6fabd43375049be4e7e..6a5849081432e356962c03d12fd21eef77853949 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,6 @@ Install required software: - Maven - [Workload-API-client](https://omi-gitlab.e-technik.uni-ulm.de/mowgli/workload-API-client) - [DBMS-Catalogue-client](https://omi-gitlab.e-technik.uni-ulm.de/mowgli/dbms-catalogue-client) -- [Maki-Manager-client](https://omi-gitlab.e-technik.uni-ulm.de/mowgli/maki-manager-client) Add the endpoints of the required services in the properties file: diff --git a/pom.xml b/pom.xml index 2a79f785658350eca2645a03308c4a2ecbaa835a..810585d923ea3d0646b3b825abe57fc0224bde2b 100644 --- a/pom.xml +++ b/pom.xml @@ -184,12 +184,6 @@ 1.0.0 - - - de.uulm.omi.mowgli.maki - maki-manager-client - 1.0.0 - diff --git a/src/main/java/de/uulm/omi/evaluation/jungle/MakiExecutor.java b/src/main/java/de/uulm/omi/evaluation/jungle/MakiExecutor.java deleted file mode 100644 index 8517ecddcc4db1bfaacfbc64a47570fc07b6b0ae..0000000000000000000000000000000000000000 --- a/src/main/java/de/uulm/omi/evaluation/jungle/MakiExecutor.java +++ /dev/null @@ -1,78 +0,0 @@ -package de.uulm.omi.evaluation.jungle; - -import com.google.common.io.CharStreams; -import com.jcraft.jsch.ChannelExec; -import com.jcraft.jsch.JSch; -import com.jcraft.jsch.JSchException; -import com.jcraft.jsch.Session; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * Created by Daniel Seybold on 21.08.2019. - */ -public class MakiExecutor { - - private static final Logger LOGGER = LoggerFactory.getLogger(MakiExecutor.class); - - private static String MAKI_SECRET = "TopSecret"; - private static String USER = "ubuntu"; - private static int PORT = 22; - - private Session makiSession; - - public MakiExecutor(String privateKey, String publicKey, String enpoint){ - - JSch jsch = new JSch(); - try { - jsch.addIdentity("maki_rsa", privateKey.getBytes(), publicKey.getBytes(), MAKI_SECRET.getBytes()); - - makiSession = jsch.getSession(USER, enpoint, PORT); - makiSession.setConfig("StrictHostKeyChecking", "no"); - makiSession.connect(); - LOGGER.debug("MakiExecutor session connected!"); - - } catch (JSchException e) { - LOGGER.error("Error while adding identity!" , e); - - } - - - } - - public String execute(String command){ - - String result = null; - ChannelExec channel = null; - try { - channel = (ChannelExec) makiSession.openChannel("exec"); - - channel.setInputStream(null); - InputStream output = channel.getInputStream(); - channel.setErrStream(System.err); - channel.setCommand(command); - - channel.connect(); - result = CharStreams.toString(new InputStreamReader(output)); - channel.disconnect(); - - LOGGER.debug("The remote clusterState command is: " + result); - - } catch (JSchException e) { - LOGGER.error("Error while executing ssh command!", e); - } catch (IOException e) { - LOGGER.error("Error while reading ssh result!", e); - } - - return result; - - } - - public void close(){ - makiSession.disconnect(); - } - -}