Skip to content

Commit

Permalink
get it working on M2 Mac
Browse files Browse the repository at this point in the history
In addition, get it working on Podman.

Discussion of the Apple silicon M1/M2 arm64 chip:
rocker-org/rocker-versioned2#144
  • Loading branch information
pdurbin committed Feb 12, 2023
1 parent a007373 commit bfd41f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM rocker/tidyverse:3.5.0
FROM rocker/tidyverse:4.2.2
ADD . /
RUN ./run.sh
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

Just a little R project using ggplot2.

Most recently tested using Podman on an M2 Mac.

```
docker rm extract
docker build -t pdurbin/notice .
docker create --name extract pdurbin/notice
docker cp extract:/results/figure.png /tmp
docker cp extract:/results/figure.svg /tmp
docker build --platform linux/x86_64 -t pdurbin/notice .
docker create --platform linux/x86_64 --name extract pdurbin/notice
mkdir /tmp/out
docker cp extract:/results/figure.png /tmp/out
#docker cp extract:/results/figure.svg /tmp
```
2 changes: 1 addition & 1 deletion code/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ ggplot(renewal, aes(x = Events)) +
)

ggsave(path = "results", filename = "figure.png", width = 7, height = 3)
ggsave(path = "results", filename = "figure.svg", width = 7, height = 3)
#ggsave(path = "results", filename = "figure.svg", width = 7, height = 3)

0 comments on commit bfd41f4

Please sign in to comment.