This image is designed to run on a Raspberry PI, to run it locally on your development machine, you need to install QEMU.
sudo apt-get install qemu-user-static
Create .netrc
file somewhere on the host filesystem.
machine api.github.com
login defunkt
password c0d3b4ssssss!
Link it to the container using a volume.
-v <path_to_netrc_file>:/root/.netrc
docker build . -t lister/deploymonitor:`cat VERSION` -t lister/deploymonitor:latest
docker run -v $HOME/.netrc:/root/.netrc -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static lister/deploymonitor
On your raspberry pi add this file: /etc/systemd/system/deploymonitor.service
[Unit]
Description=deploymonitor container
Requires=docker.service
After=docker.service
[Service]
Restart=always
ExecStart=/usr/bin/docker run -e "RACK_ENV=production" -v <path_to_netrc_file>:/root/.netrc -v /var/run/docker.sock:/var/run/docker.sock -v <path_to_repositories.yml>:/usr/src/app/config/repositories.yml lister/deploymonitor
[Install]
WantedBy=default.target