1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
# Docker image for tdiary development
Your editor is vscode? See bottom of this document.
## how to build an image
```
% docker build -t tdiary-devel .devcontainer
```
## how to run in the Docker
```
% docker run -v $(pwd):/workspace -p 9292:9292 -it --rm tdiary-devel
```
or debugging `contrib` in the parent directory:
```
% docker run -v $(pwd):/usr/src/app -v $(pwd)/../contrib:/usr/src/contrib -p 9292:9292 -it --rm tdiary-devel
```
## develoment on vscode remote-container
1. Open the folder of this repository by Remte-Container Extention, then starting build a image automatically.
2. Only at first, run `.devcontainer/setup-app.sh` for making `tdiary.conf` and `.htpasswd`.
3. Open Debug (`Ctrl + Shift + D`) and start "Debug tDiary".
4. Open [`http://localhost:9292`](http://localhost:9292) in your browser.
|