Ptt-official-app / go-pttbbsweb

golang 版本的 pttbbs app/web backend
https://doc.devptt.dev
GNU General Public License v3.0
33 stars 17 forks source link

1 個 script 就可以完成 default install 的 script. #315

Open chhsiao1981 opened 3 years ago

chhsiao1981 commented 3 years ago

Is your feature request related to a problem? Please describe.

https://github.com/Ptt-official-app/go-openbbsmiddleware#docker-compose

希望可以將這個 session 變成 1 個 script.

./scripts/docker_install.sh [MIDDLEWARE_HOME]

其中 [MIDDLEWARE_HOME] 是自訂的某個 physical directory.

這個 script 會在 [MIDDLEWARE_HOME] 裡完成所有基本設定. [MIDDLEWARE_HOME]/etc [MIDDLEWARE_HOME]/etc/production.ini [MIDDLEWARE_HOME]/etc/postfix [MIDDLEWARE_HOME]/mongo [MIDDLEWARE_HOME]/static

docker_compose.env

Describe the solution you'd like

Describe alternatives you've considered

Additional context

tingyuchang commented 3 years ago

我覺得用一個 script 完成相關設定蠻好的,不過在 go-openbbsmiddleware 相關的 files,感覺可以把 template, ini 放在一起,當作是 go-openbbsmiddleware 所要的檔案 . ├── docker-compose.yaml ├── docker_compose.env ├── go-openbbsmiddleware │   ├── attemptregister.template │   ├── emailtoken.template │   ├── idemailtoken.template │   └── production.ini ├── go-pttbbs ├── mongo ├── postfix │   ├── main.cf │   └── master.cf ├── scripts │   └── docker_initbbs.sh └── static

另外我認為應該要把 docker-compose 獨立出一個 repository 出來,這樣子比較不會跟既有(go-openbbsmiddleware)的 folder 搞混

tingyuchang commented 3 years ago

https://github.com/tingyuchang/demo-bbs-docker. 大概是這樣的感覺

chhsiao1981 commented 3 years ago

@tingyuchang

(那就 README.md 裡直接 refer 你的 repo 好了 XD)