Skip to content

PCM Calibration Pipeline Setup

mazkatli edited this page Dec 2, 2019 · 13 revisions

Setup

There are two ways how the Calibration Pipeline can be used.

If you only want to use the Calibration Pipeline we recommend using the Docker image.

The current version is based on the PCM-Headless implementation to simulate the architectural models.

1. Docker

This is the easier way. You only need docker installed on your machine.

  1. Clone (or fork and clone) this repository.
  2. Navigate to the "docker" folder in the root directory.
  3. Create a network which connects the pipeline Docker container with the container which runs the PCM-Headless: docker network create --driver=bridge pcm-network
  4. Build the docker image with docker build -t pcm-pipeline .
  5. Run the headless PCM implementation.
  6. Now you can run the docker image of the pipeline: docker run --name pcm-pipeline -p 8081:8081 --net=pcm-network pcm-pipeline
  7. You can access the web interface on http://localhost:8081/
  8. If you want to know about the simulations of the architectural models you can view http://localhost:8080/.

The next step is to transfer the data (PCM models and monitoring) to the docker container. This can be done with the following command: docker cp LOCALPATH/docker-data/ pipe:/etc/docker-data/. (For testing purposes you can use the PCM and the monitoring data from the cocome-casestudy project which is contained in this repository - Location: Casestudy Data)

Then go to the webinterface and create the configuration (http://localhost:8080/create). The result should look similar to: Configuration

After that you can start the pipeline (http://localhost:8080/) and watch the results (http://localhost:8080/results) as soon as the pipeline finished.

2. Gradle

The second method is a bit more complicated as you need to clone the repository, import the projects and also download Eclipse and Eclipse projects.

  1. The import is very easy you only need to clone the project and import the root Gradle project in your favorite IDE.
  2. Make sure that you setup the PCM-Headless which is used to perform simulations. You need to point the configurations of the pipeline to the URL of the PCM headless backend (you can do this using the Web UI).
Clone this wiki locally