Skip to content

Commit

Permalink
Add dockerfile and deps to build everything from a container
Browse files Browse the repository at this point in the history
Signed-off-by: Luiz Carlos Cavalcanti <cavalcanti.luiz@gmail.com>
  • Loading branch information
luizcavalcanti committed Oct 31, 2018
1 parent 2bb63b0 commit d1cd6c7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM base/archlinux:latest

RUN pacman -Syy && \
yes | pacman -S sudo autoconf pkg-config automake libtool git fakeroot gcc libzip libglvnd luarocks love patch make && \
luarocks install lua-libzip && \
luarocks install love-release

ADD /sudoers.txt /etc/sudoers
RUN chmod 440 /etc/sudoers

RUN useradd --no-create-home --shell=/bin/false builder && usermod -L builder

USER builder

ENV PATH="$PATH:~/bin"
8 changes: 8 additions & 0 deletions dockerdeps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#! /bin/bash
cd /tmp
git clone https://aur.archlinux.org/dpkg.git
cd dpkg
yes | makepkg -s
yes | sudo pacman -U dpkg-1.18.25-1-x86_64.pkg.tar.xz
cd /jogabilijam3

4 changes: 4 additions & 0 deletions sudoers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
root ALL=(ALL) ALL
builder ALL=(ALL) NOPASSWD: ALL
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

0 comments on commit d1cd6c7

Please sign in to comment.