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

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

Open
chhsiao1981 opened this issue Aug 28, 2021 · 3 comments
Open

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

chhsiao1981 opened this issue Aug 28, 2021 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@chhsiao1981
Copy link
Collaborator

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 chhsiao1981 added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Aug 28, 2021
@tingyuchang
Copy link
Collaborator

tingyuchang commented Aug 29, 2021

我覺得用一個 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
Copy link
Collaborator

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

@chhsiao1981
Copy link
Collaborator Author

@tingyuchang

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants