Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FiloSottile committed Nov 22, 2013
0 parents commit 81d9dcc
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Dockerfile
@@ -0,0 +1,30 @@
FROM ubuntu

MAINTAINER Filippo Valsorda <fv@filippo.io>

RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update # 2013-11-22

RUN apt-get install -y language-pack-en
RUN update-locale LANG=en_US.UTF-8

RUN apt-get install -y unattended-upgrades
RUN yes | dpkg-reconfigure -plow unattended-upgrades

RUN apt-get install -y joe less wget

# ArchiveTeam Warrior

RUN apt-get install -y python-pip git pciutils sudo net-tools isc-dhcp-client python-software-properties wget
RUN apt-add-repository -y ppa:archiveteam/wget-lua && apt-get update
RUN apt-get install -y wget-lua

RUN useradd warrior
RUN echo "warrior ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN mkdir /home/warrior && chown warrior: /home/warrior

RUN (cd /home/warrior && sudo -u warrior git clone https://github.com/FiloSottile/warrior-code2.git)
# RUN (cd /home/warrior/warrior-code2 && sudo -u warrior DOCKER=1 ./boot.sh)

# EXPOSE 8001 # Enabling this will redirect a port on the host to the web interface. Not recommended. Use a SSH tunnel or a VPN.
CMD ["/bin/bash", "-c", "(cd /home/warrior/warrior-code2 && sudo -u warrior DOCKER=1 ./boot.sh && sudo -u warrior DOCKER=1 ./warrior-runner.sh)"]
8 changes: 8 additions & 0 deletions README.md
@@ -0,0 +1,8 @@
## A Dockerfile for the [ArchiveTeam Warrior](http://www.archiveteam.org/index.php?title=ArchiveTeam_Warrior)

![Warrior logo](http://www.archiveteam.org/images/thumb/f/f3/Archive_team.png/235px-Archive_team.png)
![Docker logo](https://upload.wikimedia.org/wikipedia/commons/7/79/Docker_%28container_engine%29_logo.png)

Currently uses [my modified version](https://github.com/FiloSottile/warrior-code2/) of the [Warrior bootstrap code](https://github.com/ArchiveTeam/warrior-code2).

Build, run, grab the container IP and access the web interface on port 8001.

0 comments on commit 81d9dcc

Please sign in to comment.