0% found this document useful (0 votes)
550 views

Eclipse Ditto Install Guide For Linux

The document provides instructions for installing Eclipse Ditto on Linux. It outlines downloading JDK 8, Apache Maven, and Docker before cloning the Ditto GitHub repository. Ditto can then be built locally using Maven or within a Docker container, making the Docker images available. Once started with docker-compose, Ditto is available at localhost:8080 and can be stopped with docker-compose stop.

Uploaded by

Emre Ummak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
550 views

Eclipse Ditto Install Guide For Linux

The document provides instructions for installing Eclipse Ditto on Linux. It outlines downloading JDK 8, Apache Maven, and Docker before cloning the Ditto GitHub repository. Ditto can then be built locally using Maven or within a Docker container, making the Docker images available. Once started with docker-compose, Ditto is available at localhost:8080 and can be stopped with docker-compose stop.

Uploaded by

Emre Ummak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Eclipse Ditto Install Guide for Linux

Install JDK 8 >= 1.8.0_92

Open the terminal and paste the following code:

sudo apt-get install default-jdk

Install Apache Maven 3.x

Start by updating the package index:

sudo apt-get update

Next, install Maven by typing the following command:

sudo apt install maven

Verify the installation by running the mvn -version command:

mvn -version

The output should look something like this:

Apache Maven X.X.X


Maven home: /usr/share/maven
Java version: 10.0.2, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: ISO-8859-1
OS name: "linux", version: "4.15.0-36-generic", arch: "amd64", family: "unix"

Install Docker

Uninstall old versions:

sudo apt-get remove docker docker-engine docker.io containerd runc

Install packages to allow apt to use a repository over HTTPS:

sudo apt-get install \


apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
Add Docker’s official GPG key:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo apt-key fingerprint 0EBFCD88

pub rsa4096 2017-02-22 [SCEA]


9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid [ unknown] Docker Release (CE deb) <[email protected]>
sub rsa4096 2017-02-22 [S]

Use the following command to set up the stable repository:

sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"

Install the latest version of Docker CE and containerd:

sudo apt-get install docker-ce docker-ce-cli containerd.io

Verify that Docker CE is installed correctly by running the hello-world image:

sudo docker run hello-world

Install Eclipse Ditto

Download Eclipse Ditto:

git clone https://github.com/eclipse/ditto.git

Building with Docker:

# Start up the Docker image with maven:


docker run -it --rm --name mvn-ditto \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$PWD":/usr/src/mymaven -w /usr/src/mymaven \
-u root \
maven:3.5.0-jdk-8 \
/bin/bash

# From within the Docker image, build the Docker images:


mvn clean install -Pdocker-build-image \
-Ddocker.daemon.url=unix:///var/run/docker.sock

# Docker images are now available on your Docker host

Building with Apache Maven:

# if you have the Docker daemon running with remote access enabled (e.g. in a Vagrant
box or on localhost):
mvn clean install -Pdocker-build-image -Ddocker.daemon.hostname=<ip/host of your Docker
daemon>

# if you have the Docker daemon running on your machine and you are running on Unix,
you can also connect against the Docker socket:
mvn clean install -Pdocker-build-image -Ddocker.daemon.url=unix:///var/run/docker.sock
Running Ditto

Start Ditto:

# switch to the deployment/docker/ directory:


cd deployment/docker/
docker-compose up –d

http://localhost:8080/

Stop Ditto:

docker-compose stop

For more:
https://thishosting.rocks/install-java-ubuntu/
https://linuxize.com/post/how-to-install-apache-maven-on-ubuntu-18-04/
https://docs.docker.com/install/linux/docker-ce/ubuntu/
https://www.eclipse.org/ditto/

Emre UMMAK

You might also like