Skip to content

Instantly share code, notes, and snippets.

@harlo
Created January 1, 2015 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlo/17e3d8649c644038cdb4 to your computer and use it in GitHub Desktop.
Save harlo/17e3d8649c644038cdb4 to your computer and use it in GitHub Desktop.
Globaleaks Dockerfile
FROM ubuntu:14.04
MAINTAINER harlo <harlo.holmes@gmail.com>
# UPDATE
RUN apt-get update
RUN apt-get -yq install openssl python-dev make curl openssh-server
RUN useradd -ms /bin/bash -p $(openssl passwd -1 'YOUR PASSWORD, DINGUS') globaleaks
RUN adduser globaleaks sudo
# I put all the files I want in the home dir in a folder called "GL". You do what you need to do.
ADD GL /home/globaleaks
RUN mkdir /home/globaleaks/.ssh
RUN echo "globaleaks ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN chown -R globaleaks:globaleaks /home/globaleaks
RUN chown -R globaleaks:globaleaks /var
USER globaleaks
ENV HOME /home/globaleaks
WORKDIR /home/globaleaks
# When the container starts, it's going to need certain daemons started. These behaviors are scripted here.
CMD ["/bin/bash", "./gl_init.sh"]
# Ports for SSH, Globaleaks GUI, and Tor
EXPOSE 22 8082 9050 9040 5353
#! /bin/bash
sudo service ssh start
GL_VERSION=$(which globaleaks)
if [[ $GL_VERSION == *bin/globaleaks ]]
then
globaleaks
fi
tail -f /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment