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

Simplify installation #36

Open
MichaPoe opened this issue Aug 18, 2019 · 1 comment
Open

Simplify installation #36

MichaPoe opened this issue Aug 18, 2019 · 1 comment

Comments

@MichaPoe
Copy link

I tried to install it on my ubuntu 18.04 and 19.04 machines. But it was a bit hard.
I am not a python developer so I also did not want to install all the dev tools on my machine.
But I am using docker a lot so I decided to create a tiny install script being able to to all the "dirty" work there. I wanted to share this, as this might help other guys aswell. Here we go:

#/bin/sh
sudo apt install -y python3-pip
sudo pip3 install phue

mkdir /tmp/hue-luminance 2>>/dev/null
cd /tmp/hue-luminance

cat <<- EOF > Dockerfile
	FROM ubuntu:18.04
	RUN apt-get update && apt-get install -y \
		git python3-pip autoconf autogen build-essential python-gi-dev libgtk-3-dev gsettings-desktop-schemas-dev libgnome-desktop-3-dev libxml2-utils
	RUN pip3 install phue
	RUN mkdir -p /tmp/install
	WORKDIR /tmp/install
	RUN git clone https://github.com/craigcabrey/luminance.git
	WORKDIR /tmp/install/luminance
	CMD ./autogen.sh && ./configure --prefix=/usr/local && make && make install
	VOLUME /usr/local
EOF

docker build . -t hue-luminance
docker run --rm --mount type=bind,src=/usr/local,target=/usr/local hue-luminance
docker rmi hue-luminance

@alexanderadam
Copy link

Maybe it would be good to have an official Docker image in general at Docker Hub, GitLab or GitHub?

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