In this short article, you will learn how to prepare your development environment to work with Opereto. While there are many ways to upload and maintain automation micro services in Opereto (which we will describe in more details later) , we recommend using our official python client and development scripts. Please note that you do not have to develop in Python or replace your favorite dev tools or programming languages. All you need is installing python on your development desktop to be able to use the upload and run scripts manually or via your IDE. 



1. Make sure you have python installed on your development desktop

$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>  

If you do not have Python install, you can download and install it from https://www.python.org/downloads (we recommend to use version 2.7.x for now).


2. Install pyopereto and boto (aws client)

$ pip install pyopereto
$ pip install boto


3. Add a credentials config file 

Create a directory opereto in your development directory and add a file named arguments.json to it as follows: 

~/DEV_DIR/opereto/arguments.yaml
opereto_host: https://OPERETO_URL
opereto_user: OPERETO_USERNAME
opereto_password: OPERETO_PASSWORD


4. Copy dev scripts to your Opereto directory

Download pyopereto zip, extract it and copy the content of the scripts directory to your preferred directory as follows:
wget -O pyopereto.zip https://github.com/opereto/pyopereto/archive/master.zip
unzip pyopereto.zip
cp -rf pyopereto-master/pyopereto/scripts/ ~/DEV_DIR/opereto/

   

bell-2x.png It is recommended to ignore rule in your source tree to all files under the ~/DEV_DIR/opereto/ directory to make sure that your opereto credentials will not be committed and pushed to your source repository. In git, you can add the following file: 

~/DEV_DIR/opereto/.gitignore
arguments.yaml

 

5. Create a temp directory on your dev desktop

On Windows: c:\Temp

On Linux
: c:/tmp

You may change the defaults in the upload dev scripts if required.


That's it ! You are ready to go. 

Next, please read the Developing Micro Service article and start developing your automation microservices.