Skip to content

Commit

Permalink
Remove Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
castroinsua committed Sep 4, 2024
1 parent 050f5f4 commit 1e7cd8a
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 189 deletions.
4 changes: 0 additions & 4 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
^.*\.Rproj$
^\.Rproj\.user$
init.R
paleobioDB-Ex.R
.gitignore
.git
^\.travis\.yml$
NEWS.md
build
Docker
.*\.tar\.gz$
^README\.Rmd$
^\.github$
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

6 changes: 0 additions & 6 deletions Docker/Dockerfile

This file was deleted.

6 changes: 0 additions & 6 deletions Docker/Dockerfile-build

This file was deleted.

58 changes: 0 additions & 58 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -219,64 +219,6 @@ the fossil records.
pbdb_temporal_resolution(canidae)
```

## Docker

We include a Dockerfile to ease working on the package as it fulfills
all its system dependencies.

How to load the package with Docker:

1. Install Docker. Reference here: https://docs.docker.com/get-started/

2. Build the docker image. From the root folder of this
repository, type:

```bash
docker build -t rpbdb Docker
```

This command will create a docker image in your system based on some
of the [rocker/tidyverse](https://hub.docker.com/r/rocker/tidyverse/)
images. You can see the new image with `docker image ls`.

3. Start a container for this image. Type the following command
picking some `<password>` of your choice.

```bash
docker run -d --name="rpbdb_rstudio" --rm -p 8787:8787 \
-e PASSWORD=<password> -v $PWD:/home/rstudio rpbdb
```

This will start a container with access to your current folder where
all the code of the package is. Inside the container, the code will
be located in `/home/rstudio`. It also exposes the port 8787 of the
container so you may access the RStudio web application which is
bundled in the Rocker base image.

4. Then, you can either:

- Navigate to `http://localhost:8787`. Enter with username
"rstudio" and the password you used in the command above.

- Or you can enter the container via console with:

```bash
docker exec -ti -u rstudio -w /home/rstudio rpbdb_rstudio R
```

Either from RStudio or from within the container you can install the
package from source with:

```r
install.packages(".", repos = NULL, type = "source")
```

5. When you are finished, you can stop the container:

```bash
docker container stop rpbdb_rstudio
```

## Meta

Please report any [issues or bugs](https://github.com/ropensci/paleobioDB/issues).
Expand Down
59 changes: 0 additions & 59 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,65 +341,6 @@ pbdb_temporal_resolution(canidae)
#> [1381] 0.1173 2.5683 2.5683 2.5683 2.5683 0.0117 0.0117 1.0260 0.6450 0.0117
#> [1391] 0.0117 0.7623 0.6450 0.6450 0.6450

## Docker

We include a Dockerfile to ease working on the package as it fulfills
all its system dependencies.

How to load the package with Docker:

1. Install Docker. Reference here:
<https://docs.docker.com/get-started/>

2. Build the docker image. From the root folder of this repository,
type:

``` bash
docker build -t rpbdb Docker
```

This command will create a docker image in your system based on some of
the [rocker/tidyverse](https://hub.docker.com/r/rocker/tidyverse/)
images. You can see the new image with `docker image ls`.

3. Start a container for this image. Type the following command picking
some `<password>` of your choice.

``` bash
docker run -d --name="rpbdb_rstudio" --rm -p 8787:8787 \
-e PASSWORD=<password> -v $PWD:/home/rstudio rpbdb
```

This will start a container with access to your current folder where all
the code of the package is. Inside the container, the code will be
located in `/home/rstudio`. It also exposes the port 8787 of the
container so you may access the RStudio web application which is bundled
in the Rocker base image.

4. Then, you can either:

- Navigate to `http://localhost:8787`. Enter with username
“rstudio” and the password you used in the command above.

- Or you can enter the container via console with:

``` bash
docker exec -ti -u rstudio -w /home/rstudio rpbdb_rstudio R
```

Either from RStudio or from within the container you can install the
package from source with:

``` r
install.packages(".", repos = NULL, type = "source")
```

5. When you are finished, you can stop the container:

``` bash
docker container stop rpbdb_rstudio
```

## Meta

Please report any [issues or
Expand Down
3 changes: 0 additions & 3 deletions build/build-image.sh

This file was deleted.

17 changes: 0 additions & 17 deletions build/build-package.sh

This file was deleted.

3 changes: 0 additions & 3 deletions build/source-all.R

This file was deleted.

7 changes: 0 additions & 7 deletions build/test-internal-functions.R

This file was deleted.

0 comments on commit 1e7cd8a

Please sign in to comment.