Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
api
client
showcase
.gitignore
LICENSE
Makefile
README.md
circle.yml
docker-compose.build.yml
docker-compose.circle.yml
docker-compose.dev.yml.dist
docker-compose.prod.yml.dist
docker-compose.test.yml

README.md

Scrumble Circle CI

Scrumble is an app we use at M33 to perform faster daily Scrum tasks:

It is connected to your Trello board and GoogleApps account and helps to:

  • Update your burndown chart
  • Send daily reports to your client (what is a daily report?)
  • Fill Satisfaction survey
  • Track your problems and actions

Installation

Requisites

The easiest way to develop on Scrumble is to:

Make sure your Docker installation is working fine by typing docker ps. Under Mac OS X you may have to run some commands after installing to get Docker working in your shell.

Clone the Project

git clone git@github.com:theodo/scrumble.git && cd scrumble

For Mac OS X users, the project folder must be in a subfolder of /Users, due to an issue in docker-machine.

Specify environment variables in docker-compose.dev.yml

 cp docker-compose.dev.yml.dist docker-compose.dev.yml

Launch the installation

make install

Launch the project

make start

Provisioning

sudo adduser dockeradmin && sudo groupadd docker && sudo gpasswd -a dockeradmin docker

sudo cp -R ~/.ssh /home/dockeradmin && sudo chown -R dockeradmin:dockeradmin /home/dockeradmin/.ssh

Develop

There are many commands in the makefile that are self comprehensible. Please, read the makefile.

In order to connect to the app on your machine, you'll need to have a Trello key:

  • Go to the Trello developer key generator
  • Get your public key (top of the page) and:
    • copy it in docker-compose.dev.yml
    • copy it in client/src/app.coffee in the TrelloClientProvider.init parameters
    • copy it in client/src/login/config/trello.coffee
  • Get your secret key (bottom of the page) and copy it in docker-compose.dev.yml

Deploy

Create the docker-machine remote host make create-host remoteip=xxx.xxx.xxx.xxx.

Build&push all docker images from local and pull them from remote: make build-deploy-all.

Setup database backup on server

The email will probably arrive in the spam folder.

apt install mutt
DB_USER=xxx
DB_NAME=xxx
DB_CONTAINER=xxx
TO=xxx
echo "FILENAME=dump_\`date +%d-%m-%Y"_"%H_%M_%S\`.sql
docker exec $DB_CONTAINER pg_dump --username=$DB_USER $DB_NAME > \$FILENAME
echo \"You'll find attached the Scrumble backup\" | mutt -a \$FILENAME -s \"Scrumble Backup\" -- $TO
rm \$FILENAME" >> backup.sh
chmod +x backup.sh

echo "0 0 * * * ~/backup.sh" >> /var/spool/cron/crontabs/root

Renew Let's Encrypt certificates

If the HTTPS certificates expire, follow these steps:

Space issue on server

docker rmi $(docker images -f "dangling=true" -q)