forked from code-dot-org/code-dot-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui-tests-compose.yml
46 lines (43 loc) · 1.08 KB
/
ui-tests-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
# Docker Compose file for running ui tests.
#
# To run, set the following env variables (values obtainable from Circle):
# PROPERTIES_ENCRYPTION_KEY
# CLOUDFRONT_KEY_PAIR_ID
# CLOUDFRONT_PRIVATE_KEY
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# FIREBASE_NAME
# FIREBASE_SECRET
# SAUCE_USERNAME
# SAUCE_ACCESS_KEY
#
# Also set the FIXUID and FIXGID env variables with these commands (or put them in your .bash_profile / .bashrc):
# export FIXUID=$(id -u)
# export FIXGID=$(id -g)
#
# then run:
# docker-compose -f ui-tests-compose.yml up
#
# To clean up:
# docker-compose -f ui-tests-compose.yml down
version: '3'
services:
site:
image: wintercdo/code-dot-org:0.7
user: ${FIXUID:-1000}:${FIXGID:-1000}
volumes:
- ../:/home/circleci/code-dot-org:delegated
- rbenv:/home/circleci/.rbenv
- mysqldata:/var/lib/mysql
- yarncache:/home/circleci/.cache
- gcloud_config:/home/circleci/.config/gcloud
env_file:
- env.list
command: /bin/sh -c "docker/ui_tests.sh"
ui-tests-redis:
image: redis
volumes:
mysqldata:
rbenv:
yarncache:
gcloud_config: