Code Monkey home page Code Monkey logo

gstudio-docker's Introduction

gstudio-docker

Docker file for gstudio

To build the docker image, we need to clone the project in your docker host, and run the script build-docker.sh. This script clones the gstudio code and builds the image. After clining the gstudio-docker, download and install the static javascript depedencies from http://gnowledge.org/~nagarjun/bower_components.tar.gz. unzip the contents of this file in the project directory before starting the buuild-docker.sh script.

The image uses Ubuntu 14.04, django, nginx, mongodb, and several code dependent python libraries and OS level libraries. The image builds to about 1.6GB.

Under development

  • autostart of mongod issue to be resolved
  • schema files to be updated for course builder and course player
  • single point data directory for all data (mongo, sqlite, static files, rcs files, mail queue, etc.)
  • after successful completion of the above tasks the docker project to be published in dockerhub.
  • security enhancements
    • run all services as non-root user
    • expose only port 80
    • gpg keys installation script for school servers joining auto-sync program.

Building the Image

Build the image by running "build-docker.sh" script from the project directory after cloning the project files. If you are re-building the image, delete the 'gstudio' directory to get the fresh updates from gstudio project.

Script details

1. script name : build-docker.sh
   execution   : bash build-docker.sh
   use	       : used for the following -
	    1. installing docker application
	    2. building the images and starting the container
	    3. loading the imaes and starting the container 
   procedure   : bash build-docker.sh
   	    1. it will check docker application
	    1.1. if it is installed, print the version. 
	    1.2. if it is not installed, install the same. 
	    2. reboot the system.
	    3. again execute the same command after reboot (bash build-docker.sh) to load the image / build the image.
	    3.1 load the image.
	    3.2 build the image.
	    	3.2.1 Please give branch name of online repo  
	    4. start the container.

2. script name : initialize.sh
   execution   : bash initialize.sh
   use	       : used for the following -
	    1. starting the applications at the startup of a docker container
	    2. execute application related scripts

3. script name : numa-arch-check.sh
   execution   : bash numa-arch-check.sh
   use	       : used for the following -
	    1. check of numa arch.

4. script name : generate-self-certified-certificate-ssl.sh
   execution   : bash generate-self-certified-certificate-ssl.sh
   use	       : used for the following -
	    1. generate ssl certificate (self certified ssl certificate).

5. script name : local_settings_changes.sh
   execution   : bash local_settings_changes.sh
   use	       : used for the following -
	    1. generate ssl certificate (self certified ssl certificate).

6. script name : smtpd.sh
   execution   : bash smtpd.sh
   use	       : used for the following -
	    1. starting smtpd 

7. script name : Bulk-User-creation.sh
   execution   : bash Bulk-User-creation.sh
   use	       : used for the following -
	    1. creating the bulk users. It makes use of "Users.csv" for creating user details for creation.
   		    Note : First add new usernames and passwords in "Users.csv".

8. script name : git-update.sh
   execution   : bash git-update.sh
   use	       : used for the following -
	    1. updating the code from git

9. script name : ss-gpg-setup.sh
   execution   : bash ss-gpg-setup.sh
   use	       : used for the following -  (Under developement)
	    1. take installing user and school details.
	    2. generate gpg keys.

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.