Sign inSign up

databucket/app

By databucket

Updated over 6 years ago

See at www.databucket.pl

Image
0

1.3K

databucket/app repository overview

    _____        _        _                _        _      ___  
   |  __ \      | |      | |              | |      | |    |__ \  
   | |  | | __ _| |_ __ _| |__  _   _  ___| | _____| |_      ) |  
   | |  | |/ _` | __/ _` | '_ \| | | |/ __| |/ / _ \ __|    / /  
   | |__| | (_| | || (_| | |_) | |_| | (__|   <  __/ |_    / /_  
   |_____/ \__,_|\__\__,_|_.__/ \__,_|\___|_|\_\___|\__|  |____|  

Docker images for Databucket 2

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

Running the images

Images require providing information about mysql instance where app should store it's data.
Environment variables to be used:

variabledescriptiondefault value
DB_HOSTdatabase host urllocalhost
DB_PORTdatabase port3306
DB_NAMEdatabase namedatabucket
DB_USERdatabase usernamedatabucket
DB_PASSWORDdatabase user passworddata1234!

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.

docker-compose

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 -d

Above 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.

Building images locally

Run one of below commands from repository root.

Linux/OS X

commandscope
make allbuilds alpine and slim images
make slimbuilds slim image
make alpinebuilds alpine image
make tag_latestre-tags alpine and slim images with latest version instead of current (ie. 2.2.5-alpine)
make tag_versionre-tags alpine image with version only tag (ie. 2.2.5)
make releasepushes alpine and slim images to docker-hub (requires respective credentials)
make release_latestpushes latest images to docker-hub (requires respective credentials)
make release_versionpushes versioned images to docker-hub (requires respective credentials)

Windows

docker build -t databucket-app:2.2.5-alpine databucket-docker-alpine

or

docker build -t databucket-app:2.2.5-slim databucket-docker-slim

Building images in TravisCI

Comming soon.

Tag summary

Content type

Image

Digest

Size

158.2 MB

Last updated

over 6 years ago

docker pull databucket/app