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

Fix docker build readme and shell #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ TeXの環境構築が困難な場合、一式セットアップ済みの[docker
Dockerがうまく動くようになっている場合、以下のコマンドで細かい準備なしにビルドを行うことができます。

```
$ docker pull vvakame/review:4.1
$ docker pull vvakame/review:5.0
$ ./build-in-docker.sh
```

Expand Down
3 changes: 3 additions & 0 deletions build-in-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@
# docker run -i -t -v $(pwd):/book vvakame/review:5.0 /bin/bash

docker run -t --rm -v $(pwd):/book vvakame/review:5.0 /bin/bash -ci "cd /book && ./setup.sh && REVIEW_CONFIG_FILE=$REVIEW_CONFIG_FILE npm run pdf"

# Linux上でDockerを使うと書き込まれたファイルの所有権がroot:rootになってしまうため
sudo chown -R `id -u`:`id -g` ./