mirror of
https://github.com/zardus/ctf-tools
synced 2024-11-10 08:24:12 +00:00
Added Dockerfile for archlinux based container.
This commit is contained in:
parent
42d92e964e
commit
bc82a62625
1 changed files with 42 additions and 0 deletions
42
Dockerfile.archlinux
Normal file
42
Dockerfile.archlinux
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
from base/archlinux
|
||||||
|
|
||||||
|
RUN echo 'Server = http://mirror1.htu.tugraz.at/archlinux/$repo/os/$arch' \
|
||||||
|
> /etc/pacman.d/mirrorlist
|
||||||
|
RUN echo "[multilib]" >> /etc/pacman.conf
|
||||||
|
RUN echo "Include = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf
|
||||||
|
|
||||||
|
RUN pacman -Syy \
|
||||||
|
&& pacman -S --noconfirm archlinux-keyring \
|
||||||
|
&& pacman -Scc --noconfirm
|
||||||
|
RUN pacman-key --refresh-keys
|
||||||
|
RUN pacman -Syu --noconfirm \
|
||||||
|
&& pacman-db-upgrade \
|
||||||
|
&& pacman -Scc --noconfirm \
|
||||||
|
&& pacman -Syu --noconfirm \
|
||||||
|
&& pacman -Scc --noconfirm
|
||||||
|
RUN trust extract-compat
|
||||||
|
RUN pacman -Syu --noconfirm --needed \
|
||||||
|
curl wget python2 python3 git subversion \
|
||||||
|
python2-pip python-pip \
|
||||||
|
unzip python-virtualenvwrapper \
|
||||||
|
zsh grml-zsh-config \
|
||||||
|
sudo \
|
||||||
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
|
RUN useradd -m ctf
|
||||||
|
RUN echo "ctf ALL=NOPASSWD: ALL" > /etc/sudoers.d/ctf
|
||||||
|
RUN chsh -s /usr/bin/zsh ctf
|
||||||
|
|
||||||
|
COPY .git /home/ctf/tools/.git
|
||||||
|
RUN chown -R ctf.ctf /home/ctf/tools
|
||||||
|
|
||||||
|
USER ctf
|
||||||
|
|
||||||
|
WORKDIR /home/ctf/tools
|
||||||
|
RUN git checkout .
|
||||||
|
RUN bin/manage-tools -s setup
|
||||||
|
RUN echo 'source $(which virtualenvwrapper.sh)' >> ~/.zshrc
|
||||||
|
RUN echo 'workon ctftools' >> ~/.zshrc
|
||||||
|
|
||||||
|
WORKDIR /home/ctf
|
||||||
|
CMD ["zsh", "-i"]
|
Loading…
Reference in a new issue