-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
91 lines (83 loc) · 2.18 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Docker compose setup for testing s2 package install
#
# The s2 R package requires OpenSSL and Abseil, of which Abseil
# is not trivially installable. Because of this, we have several
# strategies for locating or building a version of it from the
# configure script. This file (and the images it refers to in
# tools/docker) are to make sure that the install works on a
# variety of linux platforms/system Abseil versions.
#
# Usage:
#
# docker compose run --rm ubuntu-20
#
# ...for the default behaviour (clean + install), or use
#
# docker compose run --rm -it ubuntu-20 bash
#
# ...to open the environment interactively. The build of the image
# should be cached until you explicitly decide to rebuild it using
# `docker compose build ubuntu-20`.
#
# VSCode users can leverage the Remotes extension that allows connecting
# to a running container. This involves opening a separate terminal and
# running `docker compose run --rm -it ubuntu-20 bash` to keep the
# container running (during which time you can connect to it from VSCode).
services:
ubuntu-20:
build:
context: .
args:
- IMAGE=ubuntu:20.04
dockerfile: tools/docker/debian.dockerfile
volumes:
- .:/s2
ubuntu-22:
build:
context: .
args:
- IMAGE=ubuntu:22.04
dockerfile: tools/docker/debian.dockerfile
volumes:
- .:/s2
ubuntu-24:
build:
context: .
args:
- IMAGE=ubuntu:24.04
dockerfile: tools/docker/debian.dockerfile
volumes:
- .:/s2
# CRAN platform
debian-testing:
build:
context: .
args:
- IMAGE=debian:testing
dockerfile: tools/docker/debian.dockerfile
volumes:
- .:/s2
# This is what CRAN runs
fedora-36:
build:
context: .
args:
- IMAGE=fedora:36
dockerfile: tools/docker/fedora.dockerfile
volumes:
- .:/s2
# First version that includes abseil-cpp as a system package
fedora-39:
build:
context: .
args:
- IMAGE=fedora:39
dockerfile: tools/docker/fedora.dockerfile
volumes:
- .:/s2
alpine:
build:
context: .
dockerfile: tools/docker/alpine.dockerfile
volumes:
- .:/s2