Goal
Create a bash setup script that provisions the production deployment directory interactively.
Acceptance Criteria
Technical Notes
- Use
read -p for prompts, [[ $REPLY ]] && VAR="$REPLY" || VAR="$default" pattern
- Mask password input with
stty -echo
- Validate that Docker is installed before offering compose up
- The compose file will be at
/opt/geekbot/docker-compose.yml — user must run docker-compose from that directory
Dependencies
- Blocked by: Production docker-compose with custom network
Goal
Create a bash setup script that provisions the production deployment directory interactively.
Acceptance Criteria
deploy/setup.sh(POSIX-compatible bash)/opt/geekbotif it does not exist (usessudowhen needed for permissions)deploy/docker-compose.ymlto/opt/geekbot/docker-compose.yml/opt/geekbot/data/directory for SQLite volumeROCKETCHAT_SERVER_URL(default: https://chat.yourcompany.com)ROCKETCHAT_BOT_USERNAME(default: geekbot)ROCKETCHAT_BOT_PASSWORD(required, no default)ROCKETCHAT_MAIN_ADMIN(required, no default).envfile to/opt/geekbot/.envdocker compose up -dat the endTechnical Notes
read -pfor prompts,[[ $REPLY ]] && VAR="$REPLY" || VAR="$default"patternstty -echo/opt/geekbot/docker-compose.yml— user must run docker-compose from that directoryDependencies