Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Added Arch Linux builders. #41

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Most subfolders correspond to a **platform configuration**, e.g. [debian-gcc-rel

image | description | size | metrics | build status
---------------- | ----------------------------------------- | ------ | ------- | --------------
[arch](https://hub.docker.com/r/rhub/arch) | Arch Linux, R-release, GCC | [![](https://images.microbadger.com/badges/image/rhub/arch.svg)](https://microbadger.com/images/rhub/arch) | [![](https://img.shields.io/docker/pulls/rhub/arch.svg)](https://hub.docker.com/r/rhub/arch) | [![](https://img.shields.io/docker/cloud/build/rhub/arch.svg)](https://hub.docker.com/r/rhub/arch/builds)
[debian-gcc-devel](https://hub.docker.com/r/rhub/debian-gcc-devel) | Debian Linux, R-devel, GCC | [![](https://images.microbadger.com/badges/image/rhub/debian-gcc-devel.svg)](https://microbadger.com/images/rhub/debian-gcc-devel) | [![](https://img.shields.io/docker/pulls/rhub/debian-gcc-devel.svg)](https://hub.docker.com/r/rhub/debian-gcc-devel) | [![](https://img.shields.io/docker/cloud/build/rhub/debian-gcc-devel.svg)](https://hub.docker.com/r/rhub/debian-gcc-devel/builds)
[debian-gcc-patched](https://hub.docker.com/r/rhub/debian-gcc-patched) | Debian Linux, R-patched, GCC | [![](https://images.microbadger.com/badges/image/rhub/debian-gcc-patched.svg)](https://microbadger.com/images/rhub/debian-gcc-patched) | [![](https://img.shields.io/docker/pulls/rhub/debian-gcc-patched.svg)](https://hub.docker.com/r/rhub/debian-gcc-patched) | [![](https://img.shields.io/docker/cloud/build/rhub/debian-gcc-patched.svg)](https://hub.docker.com/r/rhub/debian-gcc-patched/builds)
[debian-gcc-release](https://hub.docker.com/r/rhub/debian-gcc-release) | Debian Linux, R-release, GCC | [![](https://images.microbadger.com/badges/image/rhub/debian-gcc-release.svg)](https://microbadger.com/images/rhub/debian-gcc-release) | [![](https://img.shields.io/docker/pulls/rhub/debian-gcc-release.svg)](https://hub.docker.com/r/rhub/debian-gcc-release) | [![](https://img.shields.io/docker/cloud/build/rhub/debian-gcc-release.svg)](https://hub.docker.com/r/rhub/debian-gcc-release/builds)
Expand Down
71 changes: 71 additions & 0 deletions arch/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
## Emacs, make this -*- mode: sh; -*-

FROM archlinux/base:latest

## Set a default user. Available via runtime flag
RUN useradd docker

RUN pacman -Syu --noconfirm

# installed in archlinux:base --
# ca-certificates curl bzip2 findutils pcre readline xz zlib
RUN pacman -S --noconfirm \
gcc-fortran \
less \
jdk8-openjdk \
cairo \
ghostscript \
icu \
libjpeg-turbo \
pango \
libpng \
libtiff \
libx11 \
libxmu \
libxt \
make \
r \
subversion \
tcl \
texinfo \
texlive-core \
texlive-fontsextra \
tk \
unzip \
xorgproto \
tar \
which \
xorg-server-xvfb


RUN pacman -S --noconfirm valgrind

RUN pacman -S --noconfirm qpdf

# to be consistent with other builders, use the version of pandoc
# hosted on r-hub.io
RUN curl -o /usr/bin/pandoc.gz \
https://files.r-hub.io/pandoc/linux-64/pandoc.gz && \
gzip -d /usr/bin/pandoc.gz && \
curl -o /usr/bin/pandoc-citeproc.gz \
https://files.r-hub.io/pandoc/linux-64/pandoc-citeproc.gz && \
gzip -d /usr/bin/pandoc-citeproc.gz && \
chmod +x /usr/bin/pandoc /usr/bin/pandoc-citeproc

# RUN pacman -S --noconfirm pandoc pandoc-citeproc

RUN pacman -S --noconfirm aspell aspell-en

RUN pacman -S --noconfirm file

RUN pacman -S --noconfirm xorg-fonts-100dpi xorg-fonts-75dpi

RUN sed -i '/^#en_US.UTF-8/ s/^#//' /etc/locale.gen
RUN locale-gen
RUN echo LANG=en_US.UTF-8 > /etc/locale.conf

ENV RHUB_PLATFORM linux-x86_64-arch

ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8

2 changes: 2 additions & 0 deletions jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ docker ps -a | grep 'Exited' | awk ' { print $1; } ' | xargs docker rm || true
# done manually, as needed.

failed=0
./build-image.sh arch || failed=1

./build-image.sh debian || failed=1
./build-image.sh debian-gcc || failed=1
./build-image.sh debian-gcc-devel --no-cache || failed=1
Expand Down