Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(JP) ADD documentation about Flask dependency (#4437) #4438

Merged
merged 2 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/manuals.jp/user/walkthrough_apiv2.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ broker を再起動するには、*root* として実行するか、`sudo` コ
# ./accumulator-server.py --port 1028 --url /accumulate --host ::1 --pretty-print -v
```

このスクリプトには Flask version 2.0.2 と paho-mqtt version 1.6.1 が必要であることに注意してください。
これらは、`pip install Flask==2.0.2` と `pip install paho-mqtt==1.6.1` を使用してインストールできます。
このスクリプトには Flask version 2.0.2 (Werkzeug 2.0.2 とともに) と paho-mqtt version 1.6.1 が必要であることに注意してください。
これらは、それぞれ、`pip install Flask==2.0.2 Werkzeug==2.0.2` と `pip install paho-mqtt==1.6.1` を使用してインストールできます。
さらに、Python 3.10.x を使用することをお勧めします。ベース・オペレーティングシステムの Python
インストールと競合する場合は、[virtualenv](https://virtualenv.pypa.io/en/latest/) を使用することを
お勧めします。
Expand Down
14 changes: 9 additions & 5 deletions test/functionalTest/README.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@ accumulator-server.py -u
```
FROM debian:stable
RUN apt-get update -y
RUN apt-get install -y python3
RUN apt-get install -y python3-pip
RUN pip install Flask==2.0.2
RUN pip install Werkzeug==2.0.2
RUN pip install paho-mqtt==1.6.1
RUN apt-get install -y python3 python3-venv python3-pip

# Create a virtual environment
RUN python3 -m venv /venv
ENV PATH="/venv/bin:$PATH"

# Install required packages within the virtual environment
RUN pip install Flask==2.0.2 Werkzeug==2.0.2 paho-mqtt==1.6.1

COPY . /app
WORKDIR /app
ENTRYPOINT [ "python3", "./accumulator-server.py"]
Expand Down
Loading