Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenHab Cloud Docker Image Request #171

Open
JonasMH opened this issue Mar 2, 2018 · 7 comments
Open

OpenHab Cloud Docker Image Request #171

JonasMH opened this issue Mar 2, 2018 · 7 comments

Comments

@JonasMH
Copy link

JonasMH commented Mar 2, 2018

Hey,

I'm in the process of setting up an openhab-cloud instance and having some problems that could be solved by having a prebuilt docker image. Had to install NPM, NodeJS & errors such as 'Cannot find module '../build/Debug/addon', and additionally it seems wrong to have to build the solution on a production server.

So a pre-built Docker Image on the OpenHab Docker hub would really be appreciated.

@marziman
Copy link
Contributor

marziman commented Mar 2, 2018

Hi @JonasMH ,

there is actually a docker image and you just need to run one command with docker-compose.
It is described in the Readme.

BR Mehmet

@JonasMH
Copy link
Author

JonasMH commented Mar 2, 2018

I saw that, but the issue is that to do so, you need to clone the entire repository onto the server and then build the image where a lot of things can go wrong. Where what I'm suggesting is to put a pre-built image up on the Docker Hub, so the docker-compose file can be written of follows, without pulling the repo:

version: '2.2'
services:
  openhabcloud:
    image: openhab/openhab-cloud
    volumes:
      - /var/openhab-cloud/cloud-conf:/opt/openhabcloud/conf
    networks:
      - ohcloud-network
    links:
      - mongodb
      - redis
    ports:
      - 3000:3000
    restart: always

@marziman
Copy link
Contributor

marziman commented Mar 6, 2018

Ok, got your point.
Will tackle this and get back to you here.

BR Mehmet

@JonasMH
Copy link
Author

JonasMH commented Mar 6, 2018

Great! Let me know if you need any help and I'll do my best :)

  • Jonas

@marziman
Copy link
Contributor

Hi @JonasMH,

I will push soon some cool stuff for this one.
That will also make you happy :-)

BR Mehmet

@JonasMH
Copy link
Author

JonasMH commented Mar 23, 2018

Hi @marziman,

Saw some images got posted to the docker hub on the openhab profile. Tried setting the app-image up and it worked after redis and mongodb was also setup. Made it much easier to get openhab cloud up and running. :)

Thank you for your help and work.

@JonasMH
Copy link
Author

JonasMH commented Mar 23, 2018

Regarding custom configuration it's possible to bind a single file instead of switching to the local build like so:

  openhabcloud:
    image: "openhab/openhabcloud-app"
    volumes:
      - ./openhabcloud/config.json:/opt/openhabcloud/config.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants