-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch the load tester to pypy-3.10
- Loading branch information
Showing
3 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
# 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/. | ||
|
||
FROM python:3.11-slim | ||
FROM pypy:3.10-slim-bookworm | ||
|
||
LABEL org.opencontainers.image.authors="[email protected]" | ||
|
||
# Add gcc since there are no wheels for some packages for arm64/aarch64 | ||
# (g++/make for gevent on pypy) | ||
RUN apt-get update && apt-get install -y git && \ | ||
if [ -n "$(arch | grep 'arm64\|aarch64')" ]; then \ | ||
apt install -y --no-install-recommends gcc python3-dev; \ | ||
apt install -y --no-install-recommends gcc g++ make python3-dev; \ | ||
fi | ||
|
||
ENV LANG=C.UTF-8 | ||
|
@@ -36,4 +37,4 @@ COPY ./locustfile.py locustfile.py | |
EXPOSE 8089 5557 | ||
|
||
USER locust | ||
ENTRYPOINT locust -f locustfile.py --websocket_url ${SERVER_URL} --endpoint_url ${ENDPOINT_URL} | ||
ENTRYPOINT locust -f locustfile.py --websocket_url ${SERVER_URL} --endpoint_url ${ENDPOINT_URL} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters