gnowledge / gstudio-docker

Docker file for gstudio
5 stars 14 forks source link

Testing #1

Closed mrunal4 closed 9 years ago

mrunal4 commented 9 years ago

Highlights of updates -

  1. Logs files
    Capturing output and errors as logs in log files

     <command>    | sed -e "s/^/$(date +%Y%b%d-%I%M%S%p) $   /"  2>&1 | tee -a ${INSTALL_LOG_FILE}
  2. smtpd.sh smtpd command to run in background

     python -m smtpd -n -c DebuggingServer localhost:1025 &
  3. git-pull.sh Automatically executing git pull and checking git status after it to verify the correct execution

       git pull command
            git pull origin mongokit
       git status command
            git status
  4. initialize.sh Added ST, AT, RT, property_order_reset, Sync_Snapshot_field, git pull and smtpd

    i.  AT, ST, RT
            python manage.py create_schema STs_run1.csv
            python manage.py create_schema ATs.csv
            python manage.py create_schema RTs.csv
            python manage.py create_schema STs_run2.csv
    ii.  property_order_reset
            echo "execfile('property_order_reset.py')" | python manage.py shell
    iii. Sync_Snapshot_field
            python manage.py Sync_Snapshot_feild
    iv. git-pull (executing the shell file)
            sh /home/docker/code/git-pull.sh
    v.  smtpd.sh (executing the shell file)
            sh /home/docker/code/smtpd.sh
  5. Dockerfile

    i.   Capturing output and errors as logs in log files
          <command>    | sed -e "s/^/$(date +%Y%b%d-%I%M%S%p) $   /"  2>&1 | tee -a ${INSTALL_LOG_FILE}
      ii.   To enable ssh access
          apt-get install -y openssh-client openssh-server 
      iii.  bash (commands) auto completion
           apt-get install -y bash-completion
    iv. SCSS/SAAS stylesheets (ruby and compass)
           apt-get update
           apt-get install -y ruby ruby-dev
           gem install compass
    v.  bower components
            apt-get install -y wget
            wget http://www.metastudio.org/static/bower_components.tar.bz2
            tar xvjf bower_components.tar.bz2
            mv -v /home/docker/code/bower_components /home/docker/code/gstudio/gnowsys-ndf/gnowsys_ndf/ndf/static/ndf/
    vi. Exposing the extra ports
           EXPOSE 22  
           EXPOSE 25
           EXPOSE 8000
  6. build-docker.sh

    i.   Logs directory check and creation
    ii.  Prerequisites - Checking for OS version and architecture
                          Checking type of user and permission
                          Internet checking
                          Checking wget package
    iii. Docker application / package checking and installation
    iv. Creating local copy of replica code via git clone or update via git pull 
    v.  Build Docker-Image via docker build command (using Dockerfile)
    vi. Verify image creation
    vii. Start the Docker-container via docker run command (using newly created docker image)
    viii. Copy host logs(pre-install logs) inside docker container 
    ix. Verify initialization of docker-container and display message of completion