title: Hue in Docker author: admin type: post date: 2019-03-12T04:26:43+00:00 url: /hue-in-docker/ ampforwp-amp-on-off:
Note: This post has been replaced by a more recent How-to
Containers offer a modern way to isolate and run applications. This post is the first one of a series showing how to run Hue as a service. Here, we will explore how to build, run and configure a Hue server image with Docker.
For impatient people, the source is available at tools/docker.
Just pull the latest from the Internet or build it yourself from the Hue repository.
Pull the image from Hue's Docker Hub:
sudo docker pull gethue/hue:latest
Directly from Github source:
sudo docker build https://github.com/cloudera/hue.git#master -t hue -f tools/docker/hue/Dockerfile
Or from a cloned local Hue:
sudo docker build . -t hue -f tools/docker/hue/Dockerfile
Note
docker build . -t docker-registry.gethue.com/gethue/hue:v4.4
docker push docker-registry.gethue.com/gethue/hue:v4.4
docker run -it -p 8888:8888 gethue/hue:latest
Hue should then be up and running on your default Docker IP on the port 8888, so usually http://127.0.0.1:8888.
By default the Hue container is using a default configuration that assumes localhost for all the data services and is backed by a SQLite database in the container (and so everything is reseted at each restart and Hue can't interact with any service).
docker run -it -p 8888:8888 -v $PWD/tools/docker/hue/hue.ini:/usr/share/hue/desktop/conf/z-hue.ini gethue/hue
and for advanced properties copy the full configuration ini:
cp /desktop/conf.dist/hue.ini .
docker run -it -p 8888:8888 -v $PWD/hue.ini:/usr/share/hue/desktop/conf/z-hue.ini gethue/hue
You can read more about configuring Hue in the documentation.
In the next episode, we will see for running this Hue container in Kubernetes!
As usual feel free to send feedback to the hue-user list or @gethue or send improvements!