Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathancallahan committed Jul 28, 2020
2 parents 852d22f + 62f47c4 commit 92f7ad3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
FROM mazamascience/spatialutils:0.6.5
FROM mazamascience/spatialutils:0.6.6

#######################################################################
# For PWFSLSmoke
RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& rm -rf /tmp/downloaded_packages/ /tmp/*.rds
#RUN apt-get update \
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/ \
# && rm -rf /tmp/downloaded_packages/ /tmp/*.rds

# Update to latest CRAN version of currently installed R packages
RUN r -e "update.packages(repos = 'https://cran.rstudio.com', \
ask = FALSE)"
#RUN r -e "update.packages(repos = 'https://cran.rstudio.com', \
# ask = FALSE)"

# Install extra R packages from CRAN
RUN install2.r --error -r "https://cran.rstudio.com" \
optparse \
PWFSLSmoke

# Install latest updates from GitHub
RUN installGithub.r \
mazamascience/PWFSLSmoke
#RUN installGithub.r \
# mazamascience/PWFSLSmoke

4 changes: 2 additions & 2 deletions docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# PRODUCTION version -----------------------------------------------------------
production_build:
docker build --no-cache -t mazamascience/pwfslsmoke:1.2.112 -t mazamascience/pwfslsmoke:latest .
docker build --no-cache -t mazamascience/pwfslsmoke:1.2.113 -t mazamascience/pwfslsmoke:latest .

production_publish:
docker login && docker push mazamascience/pwfslsmoke:1.2.112
docker login && docker push mazamascience/pwfslsmoke:1.2.113
6 changes: 3 additions & 3 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ You should then be able to see something like the following:
```
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mazamascience/pwfslsmoke 1.2.112 1824e396e3f3 34 seconds ago 2.61GB
mazamascience/pwfslsmoke 1.2.113 1824e396e3f3 34 seconds ago 2.61GB
mazamascience/pwfslsmoke latest 1824e396e3f3 34 seconds ago 2.61GB
...
```
Expand All @@ -31,7 +31,7 @@ obtained on July 08, 2020 -- Fourth of July Fireworks!!!:


```
docker run -ti mazamascience/pwfslsmoke R --vanilla
docker run -ti --rm mazamascience/pwfslsmoke R --vanilla
...
library(PWFSLSmoke)
wa <- airnow_loadLatest() %>%
Expand Down Expand Up @@ -62,6 +62,6 @@ make production_publish
This image can also be pulled from DockerHub with:

```
docker pull mazamascience/pwfslsmoke:1.2.112
docker pull mazamascience/pwfslsmoke:1.2.113
```

0 comments on commit 92f7ad3

Please sign in to comment.