Giter Club home page Giter Club logo

diaspora-docker's Introduction

Diaspora-Docker Circle CI

HOW TO

See HOW TO Wiki

Diaspora version

The dockerfiles use the master branch of Diaspora so they are always up to date with the latest version of Diaspora. You can check the build on Circle CI which is regularly triggered.

Update your image

You have two differents ways to update your image :

Rebuild the image

You need to export your database, the public/uploads directory and you configuration files (config/).

Then, you just need to git pull or git clone the repository and rebuild a new image. In your new image, reimport the database and the public/uploads repository.

Finally, you need to modify the new config/ files to have the same options than the previous image.

Or update manually

Stop your image :

# docker stop your_instance_id

Commit your image to save it :

 # docker commit your_instance_id your_image_name:your_tag

Get the tty of your image :

 # docker run -i -t your_image_id

Upgrade the system :

 # apt-get update && apt-get upgrade

Become the diaspora user :

 # su diaspora

Update Diaspora with the updating guide : https://wiki.diasporafoundation.org/Updating

Note: If you need to update rvm, you'll need to specify the --default option with rvm use. Example:

rvm use 2.1 --default

Exit from your image, and commit it :

# docker commit your_instance_updated_id your_image_updated_name:your_tag

Architecture

Diagram

Architecture

Steps to build an image :

  • build without_http_sql from Debian Wheezy
  • build with_http_sql from without_http_sql
  • build final diaspora from with_http_sql

Without_http_sql

From the Debian Wheezy image, the Dockerfile :

  • Install all packages needed by Diaspora (ruby from rvm)
  • Add diaspora user
  • Clone diaspora repository

With_http_sql

From the without_http_sql image, the Dockerfile :

  • Install apache/nginx
  • Enable modules for the http server (apache)
  • Install mysql/postgresql with a default password
  • Add shell scripts to install and start diaspora
  • Add triggers instruction when the image will be used as the base for the final build (add configurations, run install scripts ...)

Dev (without assets precompiled)

From the without_http_sql image, the Dockerfile :

  • Install nginx
  • Install mysql
  • Add default configuration files
  • Install Diaspora without assets precompiled
  • Autostart Diaspora when run the image

Final (Example)

From the with_http_sql image, the Dockerfile builds the final Diaspora image with the configuration you want. You have to put in the directory of the Dockerfile :

  • database.yml with the password you want for diaspora
  • diaspora.conf (conf for the http server)
  • diaspora.crt
  • diaspora.key
  • diaspora.yml

diaspora-docker's People

Contributors

chocobozzz avatar m0 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.