Skip to content
Snippets Groups Projects
Commit ea12bae6 authored by Simon Ehrenstein's avatar Simon Ehrenstein
Browse files

Use relative paths for k8s resources

parent 7b55c6d1
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus,!78Resolve "Implement Quarkus/Kotlin protype"
...@@ -9,13 +9,16 @@ import theodolite.util.Config ...@@ -9,13 +9,16 @@ import theodolite.util.Config
import theodolite.util.LoadDimension import theodolite.util.LoadDimension
import theodolite.util.Resource import theodolite.util.Resource
import theodolite.util.Results import theodolite.util.Results
import java.nio.file.Paths
import java.time.Duration import java.time.Duration
private val logger = KotlinLogging.logger {} private val logger = KotlinLogging.logger {}
class TheodoliteExecutor() { class TheodoliteExecutor() {
private val path = "/home/lorenz/git/spesb/theodolite-quarkus/src/main/resources/yaml" val projectDirAbsolutePath = Paths.get("").toAbsolutePath().toString()
val resourcesPath = Paths.get(projectDirAbsolutePath, "./../../../resources/main/yaml/")
private fun loadConfig(): Config { private fun loadConfig(): Config {
logger.info { resourcesPath }
val benchmark: UC1Benchmark = UC1Benchmark( val benchmark: UC1Benchmark = UC1Benchmark(
UC1Benchmark.UC1BenchmarkConfig( // use port forward 2181 -> 2181 UC1Benchmark.UC1BenchmarkConfig( // use port forward 2181 -> 2181
zookeeperConnectionString = "localhost:2181", //"my-confluent-cp-zookeeper:2181", //localhost:2181. zookeeperConnectionString = "localhost:2181", //"my-confluent-cp-zookeeper:2181", //localhost:2181.
...@@ -25,10 +28,10 @@ class TheodoliteExecutor() { ...@@ -25,10 +28,10 @@ class TheodoliteExecutor() {
kafkaReplication = 1, kafkaReplication = 1,
kafkaTopics = listOf("input", "output"), kafkaTopics = listOf("input", "output"),
// TODO("handle path in a more nice way (not absolut)") // TODO("handle path in a more nice way (not absolut)")
ucDeploymentPath = "$path/aggregation-deployment.yaml", ucDeploymentPath = "$resourcesPath/aggregation-deployment.yaml",
ucServicePath = "$path/aggregation-service.yaml", ucServicePath = "$resourcesPath/aggregation-service.yaml",
wgDeploymentPath = "$path/workloadGenerator.yaml", wgDeploymentPath = "$resourcesPath/workloadGenerator.yaml",
configMapPath = "$path/jmx-configmap.yaml", configMapPath = "$resourcesPath/jmx-configmap.yaml",
ucImageURL = "ghcr.io/cau-se/theodolite-uc1-kstreams-app:latest", ucImageURL = "ghcr.io/cau-se/theodolite-uc1-kstreams-app:latest",
wgImageURL = "ghcr.io/cau-se/theodolite-uc1-workload-generator:theodolite-kotlin-latest" wgImageURL = "ghcr.io/cau-se/theodolite-uc1-workload-generator:theodolite-kotlin-latest"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment