mirror of
https://github.com/mozilla-services/syncstorage-rs.git
synced 2026-03-29 01:02:20 +01:00
Some checks failed
Glean probe-scraper / glean-probe-scraper (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncstorage-rs (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncserver-postgres (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncstorage-rs-spanner-python-utils (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncserver-postgres-python-utils (push) Has been cancelled
Build, Tag and Push Container Images to GAR Repository / build-and-push-syncserver-mysql (push) Has been cancelled
MySQL Build and Test / build-and-test-mysql (push) Has been cancelled
MySQL Build and Test / build-mysql-image (push) Has been cancelled
MySQL Build and Test / mysql-e2e-tests (push) Has been cancelled
Postgres Build and Test / build-and-test-postgres (push) Has been cancelled
Postgres Build and Test / build-postgres-image (push) Has been cancelled
Postgres Build and Test / postgres-e2e-tests (push) Has been cancelled
Publish Sync docs to pages / build-mdbook (push) Has been cancelled
Publish Sync docs to pages / build-openapi (push) Has been cancelled
Publish Sync docs to pages / combine-and-prepare (push) Has been cancelled
Publish Sync docs to pages / deploy (push) Has been cancelled
Spanner Build, Test, and Push / build-and-test-spanner (push) Has been cancelled
Spanner Build, Test, and Push / build-spanner-image (push) Has been cancelled
Spanner Build, Test, and Push / spanner-e2e-tests (push) Has been cancelled
test: molotov sync loadtests
37 lines
984 B
Docker
37 lines
984 B
Docker
# SyncStorage-LoadTest
|
|
|
|
FROM python:3.10-slim
|
|
|
|
RUN mkdir -p /app
|
|
ADD . /app
|
|
WORKDIR /app
|
|
|
|
# Building:
|
|
# you can build a local docker image using
|
|
# `docker build . --tag syncstorage-loadtest:local`
|
|
|
|
# system setup
|
|
RUN \
|
|
BUILD_DEPS="git build-essential" && \
|
|
# wget not required but nice to have
|
|
RUN_DEPS="wget libssl-dev" && \
|
|
apt-get update && \
|
|
apt-get install -yq --no-install-recommends ${BUILD_DEPS} ${RUN_DEPS} && \
|
|
pip install --no-cache-dir poetry && \
|
|
apt-get purge -yq --auto-remove ${BUILD_DEPS} && \
|
|
apt-get autoremove -yqq && \
|
|
apt-get clean -y
|
|
|
|
# app install
|
|
RUN poetry config virtualenvs.create false && \
|
|
poetry install --no-dev --no-interaction --no-ansi
|
|
|
|
# Using:
|
|
# Start an interactive terminal using
|
|
# `docker run --net=host -it syncstorage-loadtest:local`
|
|
# This will start a bash shell as root.
|
|
# You can fire off a load test by calling:
|
|
# `SERVER_URL=http://${HOST}:${PORT}#${SECRET} molotov -v`
|
|
|
|
ENTRYPOINT ["/bin/bash"]
|