This service (Previously called Senbonzakura) generates partial .MAR (Mozilla ARchive) files to update Firefox from Version A to Version B. It generates these on demand via API.
- A Linux machine with docker installed
./tests/launch_dev_env.shto generate 2 docker containers:
- A container running RabbitMQ server. This container will be linked to the main container. See docker documentation for the details.
- Funsize container will be running in foreground. The checkout root directory will be mounted to the
/appdirectory inside the container. This means that your file changes will be propagated to the container.
- The application logs will show up in the
- Funzise REST API can be accessed at http://localhost:5000
- The task queue can be monitored at http://localhost:5555/
- Ctrl+C to stop the container. The rabbitmq contaner will be stopped automatically
- You can run
./tests/launch_dev_env.sh /bin/bashto get shell access to the funsize container. Note that the services won't be running. You can start them by running
- To run funsize with S3 cache backend (by default it uses local cache), export the following variables:
export AWS_ACCESS_KEY_ID=your_aws_key_id export AWS_SECRET_ACCESS_KEY=your_aws_sikrit export FUNSIZE_S3_UPLOAD_BUCKET=bucket-name
- To delete ALL docker containers and images use the following commands
# Delete all containers docker rm $(docker ps -a -q) # Delete all images docker rmi $(docker images -q)
Running Unit Tests
tox command. It will create a temporary virtualenv under
.tox and run the tests.
The client side to call for partials lies in this python package script:
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
You can find a full copy of the MPL in the included LICENSE.md file.