Browse Source

git init

master
FiliN 5 years ago
commit
ec304bece6
  1. 14
      Dockerfile
  2. 6
      root/init.sh

14
Dockerfile

@ -0,0 +1,14 @@
FROM base/archlinux:latest
RUN echo -e '[archlinuxfr]\nSigLevel = Never\nServer = http://repo.archlinux.fr/$arch\n' >> /etc/pacman.conf &&\
pacman -Syu --noconfirm &&\
pacman -S --noconfirm yaourt sudo fakeroot vi nginx &&\
useradd noxbit && usermod -aG wheel noxbit &&\
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
USER noxbit
RUN /usr/sbin/yaourt -S --noconfirm noxbit
USER root
EXPOSE 6689 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900
VOLUME /config
VOLUME /var/log
COPY root/init.sh /opt/noxbit/
ENTRYPOINT ["/opt/noxbit/init.sh"]

6
root/init.sh

@ -0,0 +1,6 @@
#!/bin/bash
cfgdir=/config
[[ ! -e $cfgdir/noxbit.cfg ]] && \
cp /opt/noxbit/noxbit.cfg $cfgdir/noxbit.cfg
/opt/noxbit/STM-Hypervisor -config=$cfgdir/noxbit.cfg /uid=$1 /pass=$2
Loading…
Cancel
Save