Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 81d9dcc
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |