Created
January 1, 2015 17:07
-
-
Save harlo/17e3d8649c644038cdb4 to your computer and use it in GitHub Desktop.
Globaleaks Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
MAINTAINER harlo <[email protected]> | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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