Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,23 @@ Available shortcuts:
* lando
* local-dev

## Accessing the websites provided by the suite

### Firefox configuration
### Optional services

You can either configure an existing Firefox instance to use our
proxy, or run a preconfigured Firefox.
Some services are disabled by default. This is generally because they are heavy
to start and/or run, and not always necessary in a basic environment.

**To configure your current browser**:
Those services can be started as [docker compose profiles](https://docs.docker.com/compose/how-tos/profiles/),

```shell
$ ./suite --profile <PROFILE> up [...]
```

The `--profile` option can be repeated on a single command as many times for
different profiles.

The following optional profiles currently exist:
- `try`: clones mozilla-unified twice, in hg.test and in the try worker.

1. Open `Options -> Network Proxy -> Settings`
2. Choose the `Manual Proxy Configuration` radio button
Expand Down
30 changes: 29 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ services:
command: lando start_landing_worker hg
volumes:
- ../lando:/code
# Keep those in a persistent volume, as the firefox-try repo takes a while to clone.
- lando-try-worker-repos:/files/repos
restart: on-failure
depends_on:
lando:
Expand Down Expand Up @@ -353,6 +355,21 @@ services:
volumes:
- autoland-hg:/repos

autoland.hg-init-try:
platform: linux/amd64
image: mozilla/autolandhg:latest
build:
context: ../conduit-autoland-hg
dockerfile: ./Dockerfile
profiles:
# It takes a while to clone m-u, when it's not always needed.
# This service only starts when `--profile try` is passed.
- try
entrypoint: hg
command: clone https://hg.mozilla.org/mozilla-unified /repos/firefox-try
volumes:
- autoland-hg:/repos

autoland.hg:
platform: linux/amd64
image: mozilla/autolandhg:latest
Expand All @@ -366,7 +383,14 @@ services:
volumes:
- autoland-hg:/repos
depends_on:
- autoland.hg-init
autoland.hg-init:
condition: service_completed_successfully
autoland.hg-init-try:
condition: service_completed_successfully
# This service is only available when the stack is started with `--profile try`.
# We just let the service start if this dependency is missing.
required: false


###############################
# Phabricator-Emails
Expand Down Expand Up @@ -463,6 +487,9 @@ services:
volumes:
- local-dev:/home/phab
- ../review:/home/phab/review
# Mount some external sources for Try tests
# - ~/.mozbuild/lando.toml:/root/.mozbuild/lando.toml
# - ~/work/firefox/:/firefox/
depends_on:
- tinyproxy
- phabricator.test
Expand Down Expand Up @@ -569,6 +596,7 @@ volumes:
git-repos:
git_hg_sync_clones:
lando-postgres-db:
lando-try-worker-repos:
local-dev:
media:
phabricator-emails-postgres-db:
Expand Down