https://github.com/botpress/botpress-cicd-example
https://github.com/botpress/botpress-cicd-example
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/botpress/botpress-cicd-example
- Owner: botpress
- Created: 2020-09-18T17:58:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-18T18:50:20.000Z (over 5 years ago)
- Last Synced: 2025-08-10T22:23:51.700Z (10 months ago)
- Language: JavaScript
- Size: 14.8 MB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# botpress-cicd-example
This repo showcases how you can build a Docker image running Botpress and use versioned files as bot definitions.
## How it works
All files in the `data/` folder are baked in the Docker image.
Upon startup, the Docker container will launch Botpress and issue a `bp push` command to send contents of the `data/` folder to the Postgres database.
## Building the Docker image
`docker build -t yourimage .`
## Running the Docker container
`docker run -d -e BPFS_STORAGE=database -e DATABASE_URL="postgres://pgusername:pgpassword@pghost:pgport/dbname" -e AUTO_MIGRATE=true -e CI_EMAIL=ci_email -e CI_PASSWORD=ci_password yourimage`
Note the "ci_email" account must be an administrator in Botpress.