-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from r-devel/devel
Version 0.3 release
- Loading branch information
Showing
36 changed files
with
642 additions
and
322 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,31 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/cpp | ||
{ | ||
"name": "R-Dev-Env", | ||
"image": "ghcr.io/r-devel/r-dev-env:main", | ||
"hostRequirements": { | ||
"cpus": 4 | ||
}, | ||
|
||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"r.lsp.diagnostics": false, | ||
"r.plot.useHttpgd": true, | ||
"r.rpath.linux": "/usr/bin/R", | ||
"r.rterm.linux": "/usr/bin/R", | ||
"terminal.integrated.sendKeybindingsToShell": true, | ||
"svn.multipleFolders.enabled": true, | ||
"name": "R-Dev-Env", | ||
"image": "ghcr.io/r-devel/r-dev-env:main", | ||
"hostRequirements": { | ||
"cpus": 4 | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"settings": { | ||
"r.lsp.diagnostics": false, | ||
"r.plot.useHttpgd": true, | ||
"r.rpath.linux": "/usr/bin/R", | ||
"r.rterm.linux": "/usr/bin/R", | ||
"terminal.integrated.sendKeybindingsToShell": true, | ||
"svn.multipleFolders.enabled": true, | ||
"workbench.editorAssociations": { | ||
"*.md": "vscode.markdown.preview.editor" | ||
}, | ||
"workbench.welcomePage.walkthroughs.openOnInstall": false | ||
}, | ||
"extensions": [ | ||
"REditorSupport.r", | ||
"mads-hartmann.bash-ide-vscode", | ||
"johnstoncode.svn-scm", | ||
"ms-vscode.cpptools", | ||
"MS-vsliveshare.vsliveshare" | ||
] | ||
} | ||
|
||
}, | ||
"postCreateCommand":"cat /workspaces/r-dev-env/scripts/welcome_msg.sh >> ~/.bashrc && cat /workspaces/r-dev-env/scripts/set_build_r.sh >> ~/.bashrc && bash /workspaces/r-dev-env/scripts/localscript.sh" | ||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
// "postCreateCommand": "gcc -v", | ||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
}, | ||
"extensions": [ | ||
"REditorSupport.r", | ||
"mads-hartmann.bash-ide-vscode", | ||
"johnstoncode.svn-scm", | ||
"ms-vscode.cpptools", | ||
"MS-vsliveshare.vsliveshare" | ||
] | ||
} | ||
}, | ||
"postCreateCommand": "chown -R vscode:vscode /workspaces/r-dev-env && sh /workspaces/r-dev-env/scripts/localscript.sh" | ||
} |
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 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Build and publish Gitpod Docker image | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: ["main","devel"] | ||
types: [closed] | ||
paths: | ||
- '.github/workflows/build-gitpod-image.yml' | ||
- '.gitpod.Dockerfile' | ||
- '.gitpod.yml' | ||
- 'reinstall-cmake.sh' | ||
- 'VERSION' | ||
|
||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
|
||
jobs: | ||
build-and-push-image: | ||
if: ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Extract version number | ||
run: | | ||
VER=$(cat VERSION) | ||
echo "VERSION=$VER" >> $GITHUB_ENV | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ github.repository }} | ||
tags: | | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{ env.VERSION }} | ||
type=sha | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: .gitpod.Dockerfile | ||
push: true | ||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:gitpod.${{ github.ref_name }} | ||
build-args: | | ||
CONTAINER_VERSION=${{ env.VERSION }} | ||
labels: ${{ steps.meta.outputs.labels }} |
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,44 @@ | ||
name: Optimize Docs Images | ||
|
||
on: | ||
pull_request: | ||
branches: ["main","devel"] | ||
types: [closed] | ||
paths: | ||
- 'docs/assets/**' | ||
|
||
jobs: | ||
optimize-images: | ||
if: ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup R | ||
uses: r-lib/actions/setup-r@v2 | ||
|
||
- name: Install system dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libmagick++-dev libcurl4-openssl-dev | ||
- name: Install R packages | ||
run: | | ||
R -e 'install.packages(c("magick"), repos = "https://cloud.r-project.org/")' | ||
- name: Optimize images | ||
run: | | ||
Rscript ./scripts/optimize.R | ||
- name: Commit and push optimized images | ||
if: github.ref == 'refs/heads/devel' && github.event_name == 'push' | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git add docs/assets | ||
git commit -m 'Optimize docs images' | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,34 @@ | ||
FROM gitpod/workspace-full:latest | ||
|
||
USER root | ||
|
||
ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="none" | ||
|
||
# Optionally install the cmake for vcpkg | ||
COPY ./reinstall-cmake.sh /tmp/ | ||
|
||
RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \ | ||
chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \ | ||
fi \ | ||
&& rm -f /tmp/reinstall-cmake.sh | ||
|
||
RUN sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list \ | ||
&& echo "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/" >> /etc/apt/sources.list \ | ||
&& wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc \ | ||
&& apt update \ | ||
&& apt -y install subversion \ | ||
&& apt -y build-dep r-base-dev \ | ||
&& apt -y install r-base-dev \ | ||
&& apt -y install valgrind \ | ||
&& Rscript -e "install.packages('languageserver', repos='https://cran.rstudio.com')" \ | ||
&& Rscript -e "install.packages('httpgd', repos='https://cran.rstudio.com')" | ||
|
||
RUN apt install -y shellcheck | ||
RUN apt install -y ccache | ||
RUN apt install -y rsync | ||
#RUN /usr/sbin/update-ccache-symlinks | ||
#RUN echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a /home/vscode/.bashrc | ||
|
||
|
||
ARG CONTAINER_VERSION | ||
ENV CONTAINER_VERSION ${CONTAINER_VERSION} |
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,13 @@ | ||
image: ghcr.io/r-devel/r-dev-env:gitpod.devel | ||
|
||
tasks: | ||
- name: Initial Setup for R-dev-env Gitpod Workspace | ||
before: | | ||
bash /workspace/r-dev-env/scripts/localscript.sh | ||
source ~/.bashrc | ||
vscode: | ||
extensions: | ||
- REditorSupport.r | ||
- johnstoncode.svn-scm |
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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
cff-version: 1.2.0 | ||
message: "If you use this software, please cite it as below." | ||
authors: | ||
- family-names: Shirdhankar | ||
given-names: Atharva | ||
- family-names: Turner | ||
given-names: Heather | ||
- family-names: Tripp | ||
given-names: James | ||
- family-name: Emsley | ||
given-names: Iain | ||
title: "R Development Container" | ||
version: 0.2.0 | ||
doi: | ||
date-released: 28-06-2024 | ||
cff-version: 1.2.0 | ||
message: "If you use this software, please cite it as below." | ||
authors: | ||
- family-names: Shirdhankar | ||
given-names: Atharva | ||
- family-names: Turner | ||
given-names: Heather | ||
- family-names: Tripp | ||
given-names: James | ||
- family-name: Emsley | ||
given-names: Iain | ||
- family-names: Crespo | ||
given-names: Lorena | ||
- family-names: Campitelli | ||
given-names: Elio | ||
|
||
title: "R Development Container" | ||
version: 0.3.0 | ||
doi: | ||
date-released: 04-09-2024 |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.2.0 | ||
0.3.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.