July 11, 201510 yr Flickr has now 1TB of free storage available for photos and videos. It could be used as a secondary location. Has anyone gone this path? I guess the docker can be made to run and check if new files have been added and than sync it to Flickr cloud. http://xmodulo.com/how-to-upload-photos-to-flickr-on-linux.html https://code.google.com/p/folders2flickr/ http://lifehacker.com/262311/automatically-upload-a-folders-photos-to-flickr http://imguploadr.sourceforge.net/ http://blog.altlimit.com/2013/05/backupsync-your-photos-to-flickr-script.html https://github.com/richq/folders2flickr https://github.com/vanatteveldt/frogr/
July 22, 201510 yr Author I'm creating docker for folders2flicker and would need a little help. Don't know why .uploadr.ini isn't moved to volume /folders2flickr. Would like to move it so that is possible to edit it without connecting to docker. Here is my dockerfile: # set base os FROM phusion/baseimage:0.9.16 # Set correct environment variables ENV DEBIAN_FRONTEND=noninteractive HOME="/root" TERM=xterm LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 # Use baseimage-docker's init system CMD ["/sbin/my_init"] # set volume VOLUME /photos VOLUME /folders2flickr # Set the locale RUN locale-gen en_US.UTF-8 && \ # Fix a Debianism of the nobody's uid being 65534 usermod -u 99 nobody && \ usermod -g 100 nobody && \ # Install python apt-get update && \ sudo apt-get -y --force-yes install python-pip python-dev build-essential && \ sudo pip install --upgrade pip && \ sudo pip install --upgrade virtualenv && \ sudo apt-get -y --force-yes install git && \ # Install folders2flickr pip install --user git+https://github.com/richq/folders2flickr.git && \ cp ~/.local/share/folders2flickr/uploadr.ini.sample ~/.uploadr.ini && \ #set start file mv /root/.local/bin/folders2flickr /etc/my_init.d/folders2flickr && \ chmod +x /etc/my_init.d/folders2flickr && \ # Move conf to external volume mv /root/.uploadr.ini /folders2flickr/ && \ ln -s /folders2flickr/.uploadr.ini /root && \ # clean up apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ /usr/share/man /usr/share/groff /usr/share/info \ /usr/share/lintian /usr/share/linda /var/cache/man && \ (( find /usr/share/doc -depth -type f ! -name copyright|xargs rm || true )) && \ (( find /usr/share/doc -empty|xargs rmdir || true ))
July 22, 201510 yr I'm creating docker for folders2flicker and would need a little help. Don't know why .uploadr.ini isn't moved to volume /folders2flickr. Would like to move it so that is possible to edit it without connecting to docker. Here is my dockerfile: # set base os FROM phusion/baseimage:0.9.16 # Set correct environment variables ENV DEBIAN_FRONTEND=noninteractive HOME="/root" TERM=xterm LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 # Use baseimage-docker's init system CMD ["/sbin/my_init"] # set volume VOLUME /photos VOLUME /folders2flickr # Set the locale RUN locale-gen en_US.UTF-8 && \ # Fix a Debianism of the nobody's uid being 65534 usermod -u 99 nobody && \ usermod -g 100 nobody && \ # Install python apt-get update && \ sudo apt-get -y --force-yes install python-pip python-dev build-essential && \ sudo pip install --upgrade pip && \ sudo pip install --upgrade virtualenv && \ sudo apt-get -y --force-yes install git && \ # Install folders2flickr pip install --user git+https://github.com/richq/folders2flickr.git && \ cp ~/.local/share/folders2flickr/uploadr.ini.sample ~/.uploadr.ini && \ #set start file mv /root/.local/bin/folders2flickr /etc/my_init.d/folders2flickr && \ chmod +x /etc/my_init.d/folders2flickr && \ # Move conf to external volume mv /root/.uploadr.ini /folders2flickr/ && \ ln -s /folders2flickr/.uploadr.ini /root && \ # clean up apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ /usr/share/man /usr/share/groff /usr/share/info \ /usr/share/lintian /usr/share/linda /var/cache/man && \ (( find /usr/share/doc -depth -type f ! -name copyright|xargs rm || true )) && \ (( find /usr/share/doc -empty|xargs rmdir || true )) where's your git repo ? can you link me, or are you building local.
July 22, 201510 yr Author This is the link to git but there is only dockerfile inside. https://github.com/snoopy86/flickr-uploader/
July 22, 201510 yr some things to note. normally you should not use sudo in a dockerfile, the user is already root. use absolute path references rather than ~/ don't use standard init files only use ln to config files as a last resort, see if the command line options for your app lets you specify config file location.
July 22, 201510 yr Author Tnx. I fixed root and paths. Don't think it is possible to specify config location for the app. How can you make a folder from container visible to host? If i try with volumes i end up with empty directory because host dir overwrites container dir. I know of /var/lib/docker/... Something simpler?
July 22, 201510 yr Tnx. I fixed root and paths. Don't think it is possible to specify config location for the app. How can you make a folder from container visible to host? If i try with volumes i end up with empty directory because host dir overwrites container dir. I know of /var/lib/docker/... Something simpler? instead of putting/linking the config file to the volume in the dockerfile, make a firstrun script that uses an if to see if it's there, if not copy/link it from a temporary location to the volume.
July 22, 201510 yr Author Ok, i've tried this. Still no file in the volume. I must be doing something wrong. If i run container on ubuntu, attach to it and exec the same procedure, file gets created.
Archived
This topic is now archived and is closed to further replies.