Public | Automated Build

Last pushed: 8 months ago
Short Description
build
Full Description

Synopsis

Django web app for creating and maintaining bots

Code Example

Motivation

Bot Rush

General compose commands

  • docker-compose build
  • docker-compose up

Dev and Prod compose commands

  • local dev
    • docker-compose -f docker-compose.yml -f docker-compose.override.yml up
  • local prod
    • docker-compose -f docker-compose.prod.yml -f docker-compose.prod.override.yml up

Docker cloud commands

  • Start
    • docker-cloud stack up
  • Start from file and set stack name
    • docker-cloud stack update -f docker-cloud.yml (uuid or name)
  • Redeploy
    • docker-cloud stack redeploy vicibots
  • backup
    • docker-cloud service run -n downloader -p 22:2222 -e AUTHORIZED_KEYS="$(cat ~/.ssh/id_rsa.pub)" --volumes-from db
    • scp -r -P 2222 root@downloader-1.uuid.cont.dockerapp.io:/dbdata .

Current project commands

while using on mac where might be some problems with psql, therefore backup of d b is recommended

to start with sample db perform this command

  • psql -U postgres -h docker_machine_ip_address postgres < dump.sql

dump db command

  • pg_dump dbname > dump.sql

Running manage.py command

  • docker-compose run web /usr/local/bin/python manage.py

Reference

Depends on node-bot npm service for communication

Contributors

Armen Khachikyan

License

A short snippet describing the license (MIT, Apache, etc.)

Docker Pull Command
Owner
armmenn
Source Repository

Comments (0)