Code Monkey home page Code Monkey logo

test_repo's Introduction

Data analysis

  • Document here the project: aproject
  • Description: Project Description
  • Data Source:
  • Type of analysis:

Please document the project the better you can.

Stratup the project

The initial setup.

Create virtualenv and install the project:

$ sudo apt-get install virtualenv python-pip python-dev
$ deactivate; virtualenv ~/venv ; source ~/venv/bin/activate ;\
  pip install pip -U; pip install -r requirements.txt

Unittest test:

$ make clean install test

Check for aproject in gitlab.com/{group}. If your project is not set please add it:

  • Create a new project on gitlab.com/{group}/aproject

  • Then populate it:

    $ ## e.g. if group is "{group}" and project_name is "aproject" $ git remote add origin [email protected]:{group}/aproject.git $ git push -u origin master $ git push -u origin --tags

Functionnal test with a script:

$ cd /tmp
$ aproject-run

Install

Go to gitlab.com/{group}/aproject to see the project, manage issues, setup you ssh public key, ...

Create a python3 virtualenv and activate it:

$ sudo apt-get install virtualenv python-pip python-dev
$ deactivate; virtualenv -ppython3 ~/venv ; source ~/venv/bin/activate

Clone the project and install it:

$ git clone gitlab.com/{group}/aproject
$ cd aproject
$ pip install -r requirements.txt
$ make clean install test                # install and test

Functionnal test with a script:

$ cd /tmp
$ aproject-run

Continus integration

Every push of master branch will execute .gitlab-ci.yml docker jobs.

Prod deployement

Install

Install ansible

Check version:

$ ansible 2.xx.x.x
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.00170118]

Be sure you SSH public key is know by the host. Set the server in ansible/all.serverlist:

e.g
[kvm05]
87.98.197.5   ansible_user=root     ansible_ssh_user=root

Deploy prod

$ make prod_install

test_repo's People

Watchers

Åsa Kalderstam 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.