Skip to content

Commit

Permalink
wip: 一時的なコミット
Browse files Browse the repository at this point in the history
  • Loading branch information
takeYY committed Jun 27, 2023
1 parent e2b6773 commit aa43209
Show file tree
Hide file tree
Showing 5 changed files with 291 additions and 352 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"python.linting.lintOnSave": true,
"editor.formatOnSave": true,
"python.formatting.provider": "black",
"python.formatting.provider": "none",
"python.formatting.blackArgs": ["--line-length=120"],
"editor.codeActionsOnSave": {
"source.organizeImports": true
Expand All @@ -27,7 +27,7 @@
"[python]": {
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.defaultFormatter": "ms-python.python"
"editor.defaultFormatter": "ms-python.black-formatter"
},
"cSpell.words": [
"fastapi",
Expand Down
30 changes: 17 additions & 13 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
FROM python:3.10
FROM python:3.11-slim-bullseye

# Jumanpp の導入
RUN wget https://github.com/ku-nlp/jumanpp/releases/download/v2.0.0-rc3/jumanpp-2.0.0-rc3.tar.xz \
&& apt-get update \
&& apt-get install -y sudo \
&& apt-get install -y make \
&& apt-get install -y cmake \
&& apt-get install -y tar \
&& tar xJvf jumanpp-2.0.0-rc3.tar.xz \
&& cd jumanpp-2.0.0-rc3/ \
&& mkdir bld \
&& cd bld \
&& cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
&& sudo make install
# RUN apt-get update \
# && apt-get install -y sudo \
# && apt-get install -y make \
# && apt-get install -y cmake \
# && apt-get install -y tar \
# && apt-get install -y wget \
# && wget https://github.com/ku-nlp/jumanpp/releases/download/v2.0.0-rc3/jumanpp-2.0.0-rc3.tar.xz \
# && tar -xJvf jumanpp-2.0.0-rc3.tar.xz \
# && cd jumanpp-2.0.0-rc3/ \
# && mkdir bld \
# && cd bld \
# && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
# && sudo make install

RUN apt-get update \
&& apt-get install -y curl

# 作業ディレクトリ
WORKDIR /api
Expand Down
17 changes: 17 additions & 0 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,20 @@ Filmography の API 部分を扱う
<div align="center">
<img src="./assets/home.png" width="640px">
</div>

---

## エラー解決

### `TypeError: cannot pickle '_thread.RLock' object`

- TODO: 必ず消すこと
- Mac が固まったので、再起動していつものようにコンテナを起動したら、発生
- 調査中
- 試行
- `dependency-injector``4.40`から`4.41`にした
- ダメ
- `python``3.10`から`3.11`にした
- ダメ
- `dill`をインストールした
- ダメ
Loading

0 comments on commit aa43209

Please sign in to comment.