Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
E
evaluation-orchestrator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mowgli
evaluation-orchestrator
Commits
ecf5edea
Commit
ecf5edea
authored
Sep 28, 2020
by
Daniel Seybold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed deprecated maki-manager from source code and build entities
parent
4e6dbcb6
Pipeline
#92910
passed with stage
in 21 minutes and 54 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
88 deletions
+0
-88
Dockerfile
Dockerfile
+0
-3
README.md
README.md
+0
-1
pom.xml
pom.xml
+0
-6
src/main/java/de/uulm/omi/evaluation/jungle/MakiExecutor.java
...main/java/de/uulm/omi/evaluation/jungle/MakiExecutor.java
+0
-78
No files found.
Dockerfile
View file @
ecf5edea
...
...
@@ -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
...
...
README.md
View file @
ecf5edea
...
...
@@ -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:
...
...
pom.xml
View file @
ecf5edea
...
...
@@ -184,12 +184,6 @@
<version>
1.0.0
</version>
</dependency>
<!-- MakiExecutor Manager client -->
<dependency>
<groupId>
de.uulm.omi.mowgli.maki
</groupId>
<artifactId>
maki-manager-client
</artifactId>
<version>
1.0.0
</version>
</dependency>
<!-- Cloudiator dependencies -->
...
...
src/main/java/de/uulm/omi/evaluation/jungle/MakiExecutor.java
deleted
100644 → 0
View file @
4e6dbcb6
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
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment