Skip to content

Commit

Permalink
Add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Cazelles authored and KevCaz committed Nov 16, 2023
1 parent ca81fe9 commit d55b882
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/R-CMD-check-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
testpkg02: 'testpkg02/**'
# JOB to build and test each of modified packages
build:
buildPackages:
needs: changes
# https://github.com/dorny/paths-filter/issues/66
if: ${{ needs.changes.outputs.packages != '[]' && needs.changes.outputs.packages != '' }}
Expand All @@ -39,3 +39,9 @@ jobs:
secrets: inherit
with:
pkg-path: ${{ matrix.package }}

buildDocker:
runs-on: ubuntu-latest
needs: buildPackages
steps:
- uses: docker/setup-buildx-action@v2
11 changes: 11 additions & 0 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM rocker/r-ubuntu:22.04

RUN apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install -y \
default-jdk git apt-transport-https gpg-agent openssh-server \
unixodbc unixodbc-dev libaio1 libaio-dev curl netbase \
r-cran-anytime r-cran-cli r-cran-data.table r-cran-dbi r-cran-dplyr \
r-cran-fontawesome
&& apt-get autoremove -y \
&& apt-get autoclean -y
1 change: 0 additions & 1 deletion testpkg02/.github/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion testpkg02/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: testpkg02
Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9006
Version: 0.0.0.9007
Authors@R:
person("First", "Last", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "YOUR-ORCID-ID"))
Expand Down

0 comments on commit d55b882

Please sign in to comment.