Skip to content

Commit

Permalink
Merge pull request telefonicaid#4438 from fisuda/patch
Browse files Browse the repository at this point in the history
(JP) ADD documentation about Flask dependency (telefonicaid#4437)
  • Loading branch information
fgalan authored Oct 17, 2023
2 parents 865c60b + d3601a6 commit 3c8c05c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
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

0 comments on commit 3c8c05c

Please sign in to comment.