go-openbbsmiddleware icon indicating copy to clipboard operation
go-openbbsmiddleware copied to clipboard

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

Open chhsiao1981 opened this issue 4 years ago • 3 comments

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

chhsiao1981 avatar Aug 28 '21 14:08 chhsiao1981

我覺得用一個 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 avatar Aug 29 '21 07:08 tingyuchang

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

tingyuchang avatar Aug 29 '21 09:08 tingyuchang

@tingyuchang

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

chhsiao1981 avatar Sep 01 '21 23:09 chhsiao1981