Skip to content

wide-camp-1909/sindan-docker

 
 

Repository files navigation

SINDAN Project

sindan-docker

Build Status BSD-3-Clause License Issues last commit Releases relase date

Dockerization of server-side @SINDAN suite

About SINDAN Project

Please visit website sindan-net.com for more details. (Japanese edition only)

In order to detect network failure, SINDAN project evaluates the network status based on user-side observations, and aims to establish a method that enables network operators to troubleshoot quickly.

Getting Started

These instructions will get you a copy of this project up and running on your environment for production purpose. If you want to use this for development or testing purposes, it is necessary to edit some configurations appropriately.

Prerequisites

To build images, Docker with BuildKit support is needed. GNU/Make is not necessary, but it can reduce the number of commands you type.

  • docker-engine: 18.06.0 and higher
  • docker-compose: 1.22.0 and higher

Setup secrets

Set the password of MySQL database. This file will not be tracked by Git.

$ echo PASSWORD_OF_YOUR_ENV | sha256sum | cut -d ' ' -f 1 > .secrets/db_password.txt

Register user account of SINDAN Web. An account whose name is sindan and password is changeme is registered by default. This file will not be tracked by Git.

$ cp .secrets/accounts.yml.example .secrets/accounts.yml
$ vim .secrets/accounts.yml

You can register multiple accounts in bulk.

accounts:
  - username: hoge
    email: [email protected]
    password: changeme
  - username: fuga
    email: [email protected]
    password: changeme

Build/Get docker image and initialize DB

Build dockerfile and initialize database. This might take a while.

$ cp .secrets/rails_secret_key_base.txt.example .secrets/rails_secret_key_base.txt
$ make build init

Instead of building locally, you can download built container images from DockerHub.

$ cp .secrets/rails_secret_key_base.txt.example .secrets/rails_secret_key_base.txt
$ make pull init

Deploy

Deploy containers built previous steps.

$ make run log

Open your favorite browser and go http://localhost:3000 to see SINDAN Web.

Safari screenshot

Stop and remove

$ make stop     # stop all containers
$ make clean    # remove all containers (data will not be lost)
$ make destroy  # remove all containers, volumes, images

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Tomohiro ISHIHARA - Initial work & Patch contribution - @shored
  • Taichi MIYA - Overhaul & Refactoring - @mi2428

See also the list of contributors who participated in this project.

License

This project is licensed under the BSD 3-Clause "New" or "Revised" License - see the LICENSE file for details.

About

Ready-to-run Docker images containing server-side @SINDAN suite

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 46.7%
  • Dockerfile 27.1%
  • Makefile 23.2%
  • Ruby 3.0%