_____ _ _ _ _ ___ | __ \ | | | | | | | | |__ \ | | | | __ _| |_ __ _| |__ _ _ ___| | _____| |_ ) | | | | |/ _` | __/ _` | '_ \| | | |/ __| |/ / _ \ __| / / | |__| | (_| | || (_| | |_) | |_| | (__| < __/ |_ / /_ |_____/ \__,_|\__\__,_|_.__/ \__,_|\___|_|\_\___|\__| |____|
Images are available in Dockerhub.
Images included:
- databucket/app:2.2.5-alpine alpine based image
- databucket/app:2.2.5-slim debian slim based image
Image tags without platform suffix:
- databucket/app:latest alpine based image
- databucket/app:2.2.5 alpine based image
Images require providing information about mysql instance where app should store it's data.
Environment variables to be used:
| variable | description | default value | 
|---|---|---|
| TITLE | application title | Databucket | 
| DB_HOST | database host url | localhost | 
| DB_PORT | database port | 3306 | 
| DB_NAME | database name | databucket | 
| DB_USER | database username | databucket | 
| DB_PASSWORD | database user password | data1234! | 
| DB_PROPERTIES | database properties (starts with ?, separated by&) | `` | 
Database user must have the following privileges:
ALTER, CREATE, DELETE, DROP, EVENT, EXECUTE, INSERT, REFERENCES, SELECT, TRIGGER, UPDATE.Database should be set to NOT require binary logging.
To disable it run below command.
SET GLOBAL log_bin_trust_function_creators = 1;For more details see MySQL documentation.
If you'd like to create your databucket docker environment, but don't want to setup mysql on your own, use provided sample docker-compose.yaml with my.cnf configuration file.
docker-compose -p databucket -f ./docker-compose.yaml up -dAbove command will create docker environment with two containers databucket-app and databucket-mysql.
databucket-app will expose port 8080, so app can be reached under localhost:8080.
Run one of below commands from repository root.
| command | scope | 
|---|---|
| make all | builds alpineandslimimages | 
| make slim | builds slimimage | 
| make alpine | builds alpineimage | 
| make tag_latest | re-tags alpineandslimimages withlatestversion instead of current (ie.2.2.5-alpine) | 
| make tag_version | re-tags alpineimage with version only tag (ie.2.2.5) | 
| make release | pushes alpineandslimimages to docker-hub (requires respective credentials) | 
| make release_latest | pushes latest images to docker-hub (requires respective credentials) | 
| make release_version | pushes versioned images to docker-hub (requires respective credentials) | 
docker build -t databucket-app:2.2.5-alpine databucket-docker-alpineor
docker build -t databucket-app:2.2.5-slim databucket-docker-slimComming soon.