Skip to content

Commit 8735a3d

Browse files
authored
Merge branch 'devel' into config/reset-vscode-indent-settings
2 parents 755c135 + e69c7ed commit 8735a3d

File tree

8 files changed

+57
-50
lines changed

8 files changed

+57
-50
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "R-Dev-Env",
3-
"image": "ghcr.io/r-devel/r-dev-env:main",
3+
"image": "ghcr.io/r-devel/r-dev-env:devel",
44
"hostRequirements": {
55
"cpus": 4
66
},

.github/workflows/build-and-publish-image.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ on:
1616
- 'reinstall-cmake.sh'
1717
- 'VERSION'
1818

19+
permissions:
20+
contents: read
21+
packages: write
1922

2023
env:
2124
REGISTRY: ghcr.io
2225
IMAGE_NAME: ${{ github.repository }}
2326

2427
jobs:
2528
build-and-push-image:
26-
if: ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}}
29+
if: |
30+
github.event_name == 'workflow_dispatch' ||
31+
(github.event_name == 'pull_request' && github.event.pull_request.merged == true)
2732
runs-on: ubuntu-latest
28-
permissions:
29-
contents: read
30-
packages: write
3133

3234
steps:
3335
- name: Checkout repository

.github/workflows/build-gitpod-image.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,20 @@ on:
1717
- 'reinstall-cmake.sh'
1818
- 'VERSION'
1919

20+
permissions:
21+
contents: read
22+
packages: write
2023

2124
env:
2225
REGISTRY: ghcr.io
2326
IMAGE_NAME: ${{ github.repository }}
2427

2528
jobs:
2629
build-and-push-image:
27-
if: ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}}
30+
if: |
31+
github.event_name == 'workflow_dispatch' ||
32+
(github.event_name == 'pull_request' && github.event.pull_request.merged == true)
2833
runs-on: ubuntu-latest
29-
permissions:
30-
contents: read
31-
packages: write
3234

3335
steps:
3436
- name: Checkout repository

.github/workflows/build-mkdocs-website.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212

1313
permissions:
1414
contents: write
15-
15+
1616
jobs:
1717
build-and-deploy:
1818
if: |

.github/workflows/optimize-docs-images.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Optimize Docs Images
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
branches: ["main","devel"]
67
types: [closed]
@@ -9,7 +10,9 @@ on:
910

1011
jobs:
1112
optimize-images:
12-
if: ${{github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true}}
13+
if: |
14+
github.event_name == 'workflow_dispatch' ||
15+
(github.event_name == 'pull_request' && github.event.pull_request.merged == true)
1316
runs-on: ubuntu-latest
1417

1518
steps:

.github/workflows/schedule-docker-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
schedule:
55
- cron: '0 0 1,15 * *'
66

7+
permissions:
8+
contents: read
9+
packages: write
710

811
env:
912
REGISTRY: ghcr.io
@@ -12,9 +15,6 @@ env:
1215
jobs:
1316
build-and-push-image:
1417
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read
17-
packages: write
1818
strategy:
1919
matrix:
2020
branch: [main, devel]

.gitpod.Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@ RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
1313
&& rm -f /tmp/reinstall-cmake.sh
1414

1515
RUN sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list \
16-
&& echo "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/" >> /etc/apt/sources.list \
16+
&& apt -y update \
17+
&& apt install -y --no-install-recommends \
18+
software-properties-common \
19+
subversion \
20+
valgrind \
21+
&& add-apt-repository --enable-source --yes "ppa:marutter/rrutter4.0" \
1722
&& 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 \
18-
&& apt update \
19-
&& apt -y install subversion \
2023
&& apt -y build-dep r-base-dev \
2124
&& apt -y install r-base-dev \
22-
&& apt -y install valgrind \
2325
&& Rscript -e "install.packages('languageserver', repos='https://cran.rstudio.com')" \
24-
&& Rscript -e "install.packages('httpgd', repos='https://cran.rstudio.com')"
26+
&& Rscript -e "install.packages('httpgd', repos='https://cran.rstudio.com')" \
27+
&& rm -rf /var/lib/apt/lists/*
2528

2629
RUN apt install -y shellcheck
2730
RUN apt install -y ccache

Dockerfile

Lines changed: 28 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,28 @@
1-
FROM mcr.microsoft.com/devcontainers/cpp:dev-ubuntu-22.04
2-
3-
ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="none"
4-
5-
# Optionally install the cmake for vcpkg
6-
COPY ./reinstall-cmake.sh /tmp/
7-
8-
RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
9-
chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \
10-
fi \
11-
&& rm -f /tmp/reinstall-cmake.sh
12-
13-
RUN sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list \
14-
&& echo "deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/" >> /etc/apt/sources.list \
15-
&& 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 \
16-
&& apt update \
17-
&& apt -y install subversion \
18-
&& apt -y build-dep r-base-dev \
19-
&& apt -y install r-base-dev \
20-
&& Rscript -e "install.packages('languageserver', repos='https://cran.rstudio.com')" \
21-
&& Rscript -e "install.packages('httpgd', repos='https://cran.rstudio.com')"
22-
23-
RUN apt install shellcheck
24-
RUN apt install -y ccache
25-
#RUN /usr/sbin/update-ccache-symlinks
26-
#RUN echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a /home/vscode/.bashrc
27-
28-
29-
30-
ARG CONTAINER_VERSION
31-
ENV CONTAINER_VERSION ${CONTAINER_VERSION}
1+
FROM mcr.microsoft.com/devcontainers/cpp:dev-ubuntu-22.04
2+
3+
ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="none"
4+
5+
# Optionally install the cmake for vcpkg
6+
COPY ./reinstall-cmake.sh /tmp/
7+
8+
RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
9+
chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \
10+
fi \
11+
&& rm -f /tmp/reinstall-cmake.sh
12+
13+
# software-properties-common installed for apt-add-repository
14+
RUN sed -i.bak "/^#.*deb-src.*universe$/s/^# //g" /etc/apt/sources.list \
15+
&& apt -y update \
16+
&& apt install -y --no-install-recommends \
17+
software-properties-common \
18+
subversion \
19+
&& add-apt-repository --enable-source --yes "ppa:marutter/rrutter4.0" \
20+
&& wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc \
21+
&& apt -y build-dep r-base-dev \
22+
&& apt -y install r-base-dev \
23+
&& Rscript -e "install.packages(c('languageserver', 'httpgd'), \
24+
repos = c(CRAN='https://cloud.r-project.org'))" \
25+
&& rm -rf /var/lib/apt/lists/*
26+
27+
ARG CONTAINER_VERSION
28+
ENV CONTAINER_VERSION ${CONTAINER_VERSION}

0 commit comments

Comments
 (0)