Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Migrate away from Docker Hub #114

Open
chainsawriot opened this issue Mar 16, 2023 · 5 comments
Open

Migrate away from Docker Hub #114

chainsawriot opened this issue Mar 16, 2023 · 5 comments

Comments

@chainsawriot
Copy link
Collaborator

chainsawriot commented Mar 16, 2023

FROM ghcr.io/rocker-org/r-ver:4.2

is possible. But it only supports R >= 4.

As far as I know, there is no EOL Debian image on ghcr. We can port the Debian EOL (or at least the default Lenny image) from Dockerhub to ghcr as a service, if needed. (Although I can't imagine a world where Debian is not qualified for the Docker Hub Open Source tier. If Debian isn't qualified for that I don't know what can possible be qualified.)

@chainsawriot
Copy link
Collaborator Author

FROM ghcr.io/rocker-org/r-ver:4.2.2
RUN apt-get update -qq && apt-get install -y libpcre3-dev zlib1g-dev pkg-config libcurl4-openssl-dev && apt-get install -y tcl8.6 tk8.6 tk-table
COPY rang.R ./rang.R
COPY cache ./cache
RUN Rscript rang.R
CMD ["R"]

And yes, it works.

Modified from:

resolve(pkgs = "cran/tcltk2", snapshot_date = "2023-01-01")

@chainsawriot
Copy link
Collaborator Author

@chainsawriot
Copy link
Collaborator Author

@chainsawriot
Copy link
Collaborator Author

FROM scratch
ADD rootfs.tar.xz /
ENV TZ UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && apt-get update -qq && apt-get install wget locales build-essential r-base-dev  -y
COPY rang.R ./rang.R
COPY compile_r.sh ./compile_r.sh
COPY cache ./cache
RUN apt-get update -qq && apt-get install -y libpcre3-dev zlib1g-dev pkg-config libcurl4-openssl-dev
RUN bash compile_r.sh 1.9.1
CMD ["R"]

And it works.

Modified from

resolve(pkgs = "ptproc", snapshot_date = "2004-07-01")

@chainsawriot chainsawriot changed the title Using ghcr Migrate away from Docker Hub Mar 16, 2023
@chainsawriot
Copy link
Collaborator Author

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant