IPSM Docker image
To install the IPSM
you need access to its Docker
image.
First of all, however, you need a working Docker
installation on the deployment machine. The deployment process has been tested on both Linux
and Windows
, using Docker
(version 17.09.0-ce
) and Docker Compose
(version 1.17.0
). It is advisable to install both tools manually, as described on the main Docker site, and not rely on versions found in third-party repositories, as they tend to be outdated.
Using the INTER-IoT
registry
The simplest way to access prebuilt SBT
images is to use the command:
docker login docker.inter-iot.eu
You need to enter docker
as the user, and provide the registry password.
Building image from sources
The IPSM Docker
image can be built directly from the IPSM
sources. The only tool needed is the SBT interactive build tool.
After cloning the ipsm-core source repository
git clone https://git.inter-iot.eu/Inter-IoT/ipsm-core.git
cd ipsm-core
Next, enter the SBT
build tool shell using the command:
sbt
The first startup will take some time as SBT
needs to download all the necessary tools and dependecies. Eventually the SBT
command prompt will appear. Then, issue the command:
> docker
After the IPSM
image is generated leave the SBT
shell by pressing Ctrl-D
. To make sure that the image is avalable use the command:
docker image ls
As a result you should see a series of image descriptions, and among them one similar to:
docker.inter-iot.eu/ipsm-core 0.5.4.1 91f0645a0f96 5 hours ago 157MB
The version number, the image hash, creation time, and size can/will be different from the ones shown above, of course.