addons-server/Dockerfile.perftests

12 строки
273 B
Docker
Исходник Обычный вид История

WIP: Cleanup locustio based performance / smoke tests, add more entities (#8358) * Port mozilla/amo-loadtest to FXA authentication and WebExtensions. This is the first part of many to improve our load-tests and allow them to be run regularly as part of a regression test suite. This commit primarily ports the existing tests over to our repository, updates them to use FxA authentication and uses a WebExtension for the upload test. This only implements the baseline for more work to come in #7744 but it's important to have authentication and the basic infrastructure working correctly. It's also still using the legacy add-on detail and listing pages, that'll obviously change - or be only true for SeaMonkey and Thunderbird related tests since we still have to support them (very low priority though) It also adds a first step of a summary report that links to new-relic. That'll need a bit more tooling and testing but it worked quite well in first tests. Refs #7744 Next steps: * Implement most of the read-only tests from #7744 * Check what needs auth in #7744, implement it properly * Implement database and cache query logging * Implement a unified merged test-report that uses the database and cache query logging and merges it with locust logs (using our new unique request id) * Fix makefile, show dummy-usage for now. * Delete generate-summary script for now * Pin and cleanup dependencies * Reverse all urls * Use passed in account for login * split things up * Use gevent for waiting, some cleanups, add first version of Dockerfile, running script, disable developer stuff for now * Add browsing collections and browsing categories * Add loads more variation, add support for thunderbird, seamonkey, multiple languages * Decrease size of docker images for local testing * Get installation and docker image mostly to work, docs, cleanups * Allow fxa environment variables be overwritten * Hit legacy site of every variation * More explicit theme testing * Add browsing for app-versions and various rss feeds * More variation in rss feeds, add featured and search tools * Add a few more response.success() calls * Test user profile pages, warn for empty collection pages * More docs * Add review browsing
2018-05-30 17:46:16 +03:00
FROM python:2.7-alpine
COPY . /code
WORKDIR /code
RUN apk --no-cache add --virtual=.build-dep build-base git \
&& pip install --no-cache-dir -r /code/requirements/perftests.txt \
&& apk del .build-dep \
&& rm -f /tmp/* /etc/apk/cache/*
EXPOSE 8089 5557 5558