-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a minimal user container for r2u/bioc2u repos (#1)
* Script for apt setup * Add biocmanager * Create user.Dockerfile * Add matrix for builder/user * Add matrix to merge * Add type to digest * Add curl * Add install bspm and core * Add ca-certificates
- Loading branch information
Showing
3 changed files
with
31 additions
and
12 deletions.
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
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 @@ | ||
#!/bin/bash | ||
export UBUNTU_CODENAME=$(grep '^VERSION_CODENAME=' /etc/os-release | cut -d= -f2) | ||
apt update -qq | ||
apt install -y --no-install-recommends curl ca-certificates | ||
curl -O https://raw.githubusercontent.com/eddelbuettel/r2u/master/inst/scripts/add_cranapt_$UBUNTU_CODENAME.sh | ||
bash add_cranapt_$UBUNTU_CODENAME.sh | ||
rm add_cranapt_$UBUNTU_CODENAME.sh | ||
echo "deb [trusted=yes] https://js2.jetstream-cloud.org:8001/swift/v1/bioc2u/ $UBUNTU_CODENAME release" | tee -a /etc/apt/sources.list.d/bioc2u.list > /dev/null | ||
apt update -qq | ||
DEBIAN_FRONTEND=noninteractive apt install -y r-base-core r-cran-biocmanager r-cran-bspm |
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 @@ | ||
ARG BASE_IMAGE=ubuntu | ||
ARG UBUNTU_TAG=jammy | ||
FROM ${BASE_IMAGE}:${UBUNTU_TAG} AS base | ||
|
||
USER root | ||
COPY apt_setup.sh /bioc_scripts/apt_setup.sh | ||
RUN bash /bioc_scripts/apt_setup.sh |