forked from clasp-developers/clasp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (42 loc) · 1.43 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
# docker-compose uses this file to build clasp or cando in 2 steps.
# To compile clasp, you need to have docker set up, and docker-compose installed.
# To build cando, the cando extension must be present at ./extensions/cando
# To checkout cando's 'testing' branch, do this:
# git clone [email protected]:drmeister/cando.git extensions/cando
# cd extensions/cando && git checkout testing && cd -
version: '2'
services:
# first, run: docker-compose run clasp-build
# this will compile clasp and copy it's build output ./build/clasp.tgz
# Expected time: 90 min
clasp-build:
image: clasp-build
build:
context: .
dockerfile: tools/dockerfiles/clasp-build/Dockerfile
entrypoint: tar -cvzf /build/clasp.tgz -C /out/clasp .
volumes:
- ./build:/build
# To build clasp only, run: docker-compose build clasp
# Expected time: 2 min
# This will start with a smaller base image, that has only the runtime
# dependencies, and unpack ./build/clasp.tgz into the directory /home/app
clasp:
image: clasp
build:
context: .
dockerfile: tools/dockerfiles/clasp/Dockerfile
depends_on:
- clasp-build
# To build cando, run: docker-compose run cando --help
# this should build the clasp image as a dependency
cando:
image: cando
build:
context: .
dockerfile: tools/dockerfiles/cando/Dockerfile
depends_on:
- clasp
ports:
- "8888:8888"
- "4005:4005"