Skip to content

rueyjye/bucky-management

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bucky-Management

Maintainability

Overview

Bucky-management is a web application that shows test result executed by Bucky-core.

Getting Started

We prepare two docker-compose files to start up Bucky-managemnt.

  • docker-compose.yml: Using DB container in docker-compose.yml
  • docker-compose.without_db.yml: Using external DB

Set environment variables

Take care of following points when setting environment variables:

  • You must set RAILS_ENV, because it doesn't have default value
  • Use default value when starting by docker-compose.yml
export RAILS_ENV=${RAILS_ENV} # e.g. production, development, test

# You don't need to export if you're going to use default value.
export BUCKY_DB_USERNAME=${BUCKY_DB_USERNAME} # default: root
export BUCKY_DB_PASSWORD=${BUCKY_DB_PASSWORD} # default: password
export BUCKY_DB_HOSTNAME=${BUCKY_DB_HOSTNAME} # default: db
# You need to export database name and secret key base in production environment.
export BUCKY_DB_NAME=${BUCKY_DB_NAME}
export SECRET_KEY_BASE=${SECRET_KEY_BASE}

Build and start Bucky-management

# Use DB container
docker-compose up --build -d
# Use external DB
docker-compose -f docker-compose.without_db.yml up --build -d

Migration database and table

# Only at first time not created DB yet.
docker exec -it bm-app rails db:create
# Do this if new migration file is added.
docker exec -it bm-app rails db:migrate

Publish secret key base and set to environment variables

export SECRET_KEY_BASE=$(docker exec -it bm-app rake secret)

# Restart Bucky-management to reflect environment variables
docker-compose up --build -d

Check your Bucky-management dashboard

http://localhost

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 63.2%
  • HTML 25.6%
  • JavaScript 7.5%
  • CSS 2.4%
  • Dockerfile 1.3%