Вы находитесь на странице: 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 \
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) <docker@docker.com>
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) \

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 \

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

mvn clean install -Pdocker-build-image \

# 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

# 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


Stop Ditto:

docker-compose stop

For more: