From d55b882c523e155e0c997cc077cfc7c761f125b3 Mon Sep 17 00:00:00 2001 From: Kevin Cazelles Date: Tue, 20 Jun 2023 12:08:14 -0400 Subject: [PATCH] Add docker --- .github/workflows/R-CMD-check-all.yaml | 8 +++++++- dockerfile | 11 +++++++++++ testpkg02/.github/.gitignore | 1 - testpkg02/DESCRIPTION | 2 +- 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 dockerfile delete mode 100644 testpkg02/.github/.gitignore diff --git a/.github/workflows/R-CMD-check-all.yaml b/.github/workflows/R-CMD-check-all.yaml index 343304e..c6003d7 100644 --- a/.github/workflows/R-CMD-check-all.yaml +++ b/.github/workflows/R-CMD-check-all.yaml @@ -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 != '' }} @@ -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 diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..43d3cf0 --- /dev/null +++ b/dockerfile @@ -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 \ No newline at end of file diff --git a/testpkg02/.github/.gitignore b/testpkg02/.github/.gitignore deleted file mode 100644 index 2d19fc7..0000000 --- a/testpkg02/.github/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.html diff --git a/testpkg02/DESCRIPTION b/testpkg02/DESCRIPTION index 43cae4a..5e58e37 100644 --- a/testpkg02/DESCRIPTION +++ b/testpkg02/DESCRIPTION @@ -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", , "first.last@example.com", role = c("aut", "cre"), comment = c(ORCID = "YOUR-ORCID-ID"))