July 2, 201412 yr Hey All, I use a stats board for bandwidth/other info for people trying to access my domain. I've mangled together a V5 plugin of UpStatsBoard, but really want to move it to a docker. https://github.com/lienma/UpsBoard Any pointers or starting point or anyone who wants to make one?
July 2, 201412 yr Author This might help... https://docs.docker.com/examples/nodejs_web_app/ I don't know why I couldn't find that on my searches. Thanks for googleing for me needo.
July 2, 201412 yr Author This might help... https://docs.docker.com/examples/nodejs_web_app/ Okay needo... need a bit of help here FROM phusion/baseimage:0.9.11 MAINTAINER smdion <[email protected]> ENV DEBIAN_FRONTEND noninteractive # Set correct environment variables ENV HOME /root # Use baseimage-docker's init system CMD ["/sbin/my_init"] # Fix a Debianism of the nobody's uid being 65534 RUN usermod -u 99 nobody RUN usermod -g 100 nobody RUN add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty universe multiverse" RUN add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe multiverse" RUN apt-get update -q # Install Dependencies RUN apt-get install -qy vnstat npm unrar wget # Install UpStatsBoard v0.2.1 RUN wget -P /tmp/ https://github.com/lienma/UpsBoard/archive/0.2.1.tar.gz RUN tar -C /opt/ -xvf /tmp/0.2.1.tar.gz RUN cd /opt/UpsBoard-0.2.1 && npm install ADD . /opt/UpsBoard-0.2.1 RUN chown nobody:users /opt/UpsBoard-0.2.1 EXPOSE 8024 CMD ["nodejs", "/opt/UpsBoard-0.2.1/app.js"] I need to be able to edit (and other users) config.js which is pulled down from git. How do I get access to that file from like /mnt/cache/appdata on unRAID?
July 3, 201412 yr Author It looks like there is no way to tell node.js that the config file is in a different directory. Would the easiest way to do this be to download the UpStatsBoard files directly to the cache drive then mount that location in the docker container? EDIT: found a way from looking at the plexwatch docker. Just needed "RUN ln -s /config/config.js /opt/UpsBoard-0.2.1/config.js" Still a work in process... need to get VNSTAT working with cron. https://registry.hub.docker.com/u/smdion/docker-upstatsboard/
Archived
This topic is now archived and is closed to further replies.