Public | Automated Build

Last pushed: 5 days ago
Short Description
Mozilla.ch website
Full Description

mozilla.ch

This is the official repository for the mozilla.ch website.

Local Setup

  1. Install composer: https://getcomposer.org/download/
  2. Install bower: http://bower.io/
  3. Run php composer.phar install
  4. Start server: php app/console server:run

API Keys

For the Mozillian faces you need a mozillians API key. You can generate one here. Set the key as the value for mozillians.api_key in app/config/parameters.yml (doesn't exist in the repo, it's generated with composer). Alternatively you can set the environment variable MOZILLIANS_KEY.

All other used APIs don't need a key for the used scopes.

Docker Container

Building the Docker Container

Make sure you have docker installed.

Run docker build -t mozillach/mozilla.ch . to build the docker container.

Releasing a New Docker Container

The deployed docker container is based on the release branch and built directly on docker hub. To release this container to the productive website, contact the Community IT team for now (#communityit on irc.mozilla.org).

Running the Container

Replace {mozillians API key} with a mozillians API key for the v2 API with public access privileges. See API Keys for how to get one.

Run docker run -e MOZILLIANS_KEY={mozillians API key} mozillach/mozilla.ch to start provisioning and then start apache.

To run it in a deployment situation use docker run -h mozilla.ch -p 80:80 -d -e "MOZILLAINS_KEY={mozillians API key}" mozillach/mozilla.ch. The container should not be directly exposed to incoming connections, since it respects forwarded headers by default.

Docker Pull Command
Owner
mozillach
Source Repository