-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
479 additions
and
399 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
#.......................................................................................................... | ||
# build, push and cache the docker image. I have to adjust the following in case of a different repository: | ||
# - I have to add the 'BUILD_DATE' arg in the Dockerfile | ||
# - I have to create a DOCKER_PASSWORD (use the docker token) in the 'Settings' tab of the repository | ||
# References: | ||
# - https://github.com/mlampros/IceSat2R/blob/master/.github/workflows/docker_image.yml | ||
# - https://github.com/orgs/community/discussions/25768#discussioncomment-3249184 | ||
#.......................................................................................................... | ||
|
||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
|
||
name: docker_img | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- id: string | ||
uses: ASzc/change-string-case-action@v1 | ||
with: | ||
string: ${{ github.event.repository.name }} | ||
|
||
- name: Check Out Repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./ | ||
build-args: BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" | ||
file: ./Dockerfile | ||
builder: ${{ steps.buildx.outputs.name }} | ||
push: true | ||
tags: ${{ github.repository_owner }}/${{ steps.string.outputs.lowercase }}:rstudiodev | ||
cache-from: type=registry,ref=${{ github.repository_owner }}/${{ steps.string.outputs.lowercase }}:buildcache | ||
cache-to: type=registry,ref=${{ github.repository_owner }}/${{ steps.string.outputs.lowercase }}:buildcache,mode=max |
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,8 +1,8 @@ | ||
Package: textTinyR | ||
Type: Package | ||
Title: Text Processing for Small or Big Data Files | ||
Version: 1.1.7 | ||
Date: 2021-10-29 | ||
Version: 1.1.8 | ||
Date: 2023-12-04 | ||
Authors@R: c( person(given = "Lampros", family = "Mouselimis", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "https://orcid.org/0000-0002-8024-1546"))) | ||
BugReports: https://github.com/mlampros/textTinyR/issues | ||
URL: https://github.com/mlampros/textTinyR | ||
|
@@ -16,6 +16,6 @@ Imports: Rcpp (>= 0.12.10), R6, data.table, utils | |
LinkingTo: Rcpp, RcppArmadillo (>= 0.7.8), BH | ||
Suggests: testthat, covr, knitr, rmarkdown | ||
VignetteBuilder: knitr | ||
RoxygenNote: 7.1.2 | ||
RoxygenNote: 7.2.3 | ||
NeedsCompilation: yes | ||
Packaged: 2017-04-01 13:56:22 UTC; lampros |
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,19 +1,19 @@ | ||
FROM rocker/rstudio:devel | ||
|
||
|
||
LABEL maintainer='Lampros Mouselimis' | ||
|
||
|
||
RUN export DEBIAN_FRONTEND=noninteractive; apt-get -y update && \ | ||
apt-get install -y zlib1g-dev git-core pandoc pandoc-citeproc libcurl4-openssl-dev libssl-dev && \ | ||
apt-get install -y sudo && \ | ||
apt-get install -y libarmadillo-dev && \ | ||
R -e "install.packages(c( 'Rcpp', 'R6', 'data.table', 'utils', 'RcppArmadillo', 'BH', 'testthat', 'covr', 'knitr', 'rmarkdown', 'remotes' ), repos = 'https://cloud.r-project.org/' )" && \ | ||
R -e "remotes::install_github('mlampros/textTinyR', upgrade = 'always', dependencies = TRUE, repos = 'https://cloud.r-project.org/')" && \ | ||
R -e "install.packages(c( 'Rcpp', 'R6', 'data.table', 'utils', 'RcppArmadillo', 'BH', 'testthat', 'covr', 'knitr', 'rmarkdown', 'remotes' ), repos = 'https://cloud.r-project.org/' )" | ||
|
||
ADD http://www.random.org/strings/?num=10&len=8&digits=on&upperalpha=on&loweralpha=on&unique=on&format=plain&rnd=new uuid | ||
ARG BUILD_DATE | ||
|
||
RUN echo "$BUILD_DATE" | ||
RUN R -e "remotes::install_github('mlampros/textTinyR', upgrade = 'always', dependencies = TRUE, repos = 'https://cloud.r-project.org/')" && \ | ||
apt-get autoremove -y && \ | ||
apt-get clean | ||
|
||
|
||
ENV USER rstudio | ||
|
||
|
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
Oops, something went wrong.