This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Added Arch Linux builders. #41
Open
khughitt
wants to merge
6
commits into
r-hub:master
Choose a base branch
from
khughitt:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
400f1ec
Added Arch Linux builders.
khughitt 0030271
Added arch-gcc and arch-clang Dockerfiles
khughitt d243b54
Add R to base Arch Linux Dockerfile
khughitt 7ad6432
Changed version of pandoc/pandoc-citeproc used by Arch Dockerfile
khughitt 94572a0
Removed unneccessary arch images; updated README.md to include arch.
khughitt 294585b
Update arch Dockerfile to specify sysreqs platform
khughitt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Emacs, make this -*- mode: sh; -*- | ||
|
||
FROM archlinux/base:latest | ||
|
||
RUN pacman -Syu --noconfirm | ||
|
||
RUN pacman -S --noconfirm \ | ||
clang \ | ||
llvm-libs \ | ||
compiler-rt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Emacs, make this -*- mode: sh; -*- | ||
|
||
FROM archlinux/base:latest | ||
|
||
RUN pacman -Syu --noconfirm | ||
|
||
RUN pacman -S --noconfirm gcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
## 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 LC_ALL en_US.UTF-8 | ||
ENV LANG en_US.UTF-8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These images seem to be missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a member of rhub, so I don't believe I will be able to push the images. If you want to add me, I'd be happy to do it. Otherwise I think you will likely need to push the images.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want, I can also remove the
jenkins.sh
entries for now and we can add them back once the images have been pushed. Just let me know..There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I am asking is that you seem to envision three images:
rhub/arch
,rhub/arch-gcc
andarch-clang
? No? Where are the Dockerfiles for those? The arch image does not have R installed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah apologies; I forgot to include them in the commit. I'll fix that now. Also, I'm not entirely sure that three images are necessary, but rather I'm just following the convention used for the Debian / Fedora images, with the assumption that some people will prefer one or the other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I am still missing something. Seems like your
arch
image already has R. What are thearch-gcc
andarch-clang
images for, then?Note that for e.g. Debian we have sg. like
debian
: base image of all R-hub Debian imagesdebian-gcc
: add GCCdebign-gcc-devel
: add R-develBut seems like you just want a single image with R installed from the default Arch Linux source? Which is completely fine, but then we do not need the
arch-clang
andarch-gcc
images. R will use the same compiler as the one that was used to compile it, anyway. So it is enough to make that available on the image.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah got it. I started with a single image, but then thought I would mirror the setup for Fedora/Debian, in case it was needed for some purpose. I'll revert to a single image in that case.