diff options
Diffstat (limited to 'arch/DockerBuildEnvironment')
-rw-r--r-- | arch/DockerBuildEnvironment/Dockerfile | 16 | ||||
-rw-r--r-- | arch/DockerBuildEnvironment/README.md | 23 |
2 files changed, 39 insertions, 0 deletions
diff --git a/arch/DockerBuildEnvironment/Dockerfile b/arch/DockerBuildEnvironment/Dockerfile new file mode 100644 index 000000000..d657a60b0 --- /dev/null +++ b/arch/DockerBuildEnvironment/Dockerfile @@ -0,0 +1,16 @@ +FROM archlinux/base + +RUN echo "[docker-dev]" >> /etc/pacman.conf +RUN echo "SigLevel = Optional TrustAll" >> /etc/pacman.conf +RUN echo "Server = http://repo.nasutek.com/arch/contrib/docker-dev/" >> /etc/pacman.conf + +RUN pacman -Syyu --noconfirm +RUN pacman-db-upgrade + +RUN pacman -S --noconfirm base-devel sudo grep wget xscreensaver libxss libgphoto2 fribidi sane xmms2 alsa-plugins alsa-tools alsa-utils audiofile glib2 libmad libogg libvorbis pulseaudio-alsa avahi nss-mdns dbus libraw1394 libxtst lm_sensors ttf-dejavu ttf-freefont xorg-server xorg-xinit openssl-1.0 aspell hspell jasper libcups libidn libutempter libxcomposite libxslt openexr pcre xorg-iceauth xorg-xmessage xorg-xprop xorg-xset xorg-xsetroot glu taglib gtk3 dbus-glib speex wireless_tools wpa_supplicant boost boost-libs gnokii curl libraw pkgconfig autoconf imake cmake python2 imlib automake libtool libxkbfile smbclient rpcsvc-proto xorg-bdftopcf libiodbc libxi mariadb unixodbc libmng xorg-xrandr libxft flex subversion mplayer exiv2 doxygen +RUN pacman -S --noconfirm htdig lcms postgresql-9.6 + +RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers + +RUN useradd -m dev +RUN gpasswd -a dev wheel diff --git a/arch/DockerBuildEnvironment/README.md b/arch/DockerBuildEnvironment/README.md new file mode 100644 index 000000000..325616f3d --- /dev/null +++ b/arch/DockerBuildEnvironment/README.md @@ -0,0 +1,23 @@ +# Trinity Build Environment Docker Image + +## How to build +All you need to do is run +``` +docker build +``` + +in this directory and it will create an image for building Trinity with. + +## Using the docker image +Here is an example way to run docker for building trinity +``` +docker run -it --rm -v `pwd`:/tmp/src <finalimageid> +``` + +Once running just run +``` +su - dev +``` +To enter a non-root user + +This will mount your source directory in /tmp/src where you can run ./build. |