Use your new image in IOhub

Create the application

You can now build your application embedding your new custom image.

  • Go to the IOhubTM section on the management website.
  • Enter "Edit" Mode
  • Create a new Application, and name (e.g., mynewapplication)
  • Add a container
    • name it as you wish (e.g. dashboard)
    • as Docker image use <your Docker hub account>/mydashboard
  • If your Docker Hub repository is private, you need to add authentication information.
    • Docker Hub username must be replaced by your real Docker Hub account.
    • Docker Hub Access Token must be replaced by an access token.
Custom Image

Customize the behavior

You need now to expose the dashboard http port:

  • Add a port mapping, using 80 as the external port (you can use any other available port of course) and 3000 as the internal port (3000 is the default Grafana port).
  • Click "Back to App" and add a second container
    • Container name: myinfluxdb (the name you chose for your datasource while creating the custom image)
    • Container image: influxdb (the Docker hub name of the InfluxDB image)
  • Add an environment variable, as in the InfluxDB documentation, named INFLUXDB_DB, and value mydb (the value from the mydashboard image).
  • Click "Back to App," then "Back to EZ BoxTM," and click "Start" on your application (to have it enabled on next deploy).

You can now leave Edit Mode, and your new application will automatically be deployed to your IOhubTM instance.

You can also create a template from your new application (just click the button "Create a Template") so that with any new IOhubTM instance you will create, you could use this template.

Once restarted, you can browse your new application on http://<your box ip>.

Your dashboard will be empty because we are not importing the sample data into the final application. We used the sample data just for testing/demo purposes; it does not need to be included in the Docker image.