Group Exercises

This page contains information about the general setup for the course project and the initial setup of the ACS development environment. It assumes that you are working within the standard virtual machine prepared for the course.

General Setup

Course virtual machine

To run the SL5 vmware virtual machine SL5 (32 bits) containing the ACS release 2014.2 you'll need the latest version of vmware player (linux, windows), vmware workstation (linux, windows) or vmware fusion (mac). To reduce the load on the host machine, each machine is running at user level 3 (no graphical environment). Your host environment should be able to

Network

The network is configured to assign a fix IP address to each virtual machine. The course virtual machines will be named:
  • database
  • instrument
  • telescope
  • scheduler
  • integration
Each machine has the following users defined:
  • dba
  • ins
  • tel
  • sch
  • its

Group Exercise #1: Setting up an ACS work environment

Before you begin

  1. Check that your machine is booting correctly and getting a fix IP address
  2. Check that almamgr account exits and that you can login to it
  3. Check that the /alma/ACS-2014.2/ directory exists and is populated
  4. Check that your development account is using a bash shell
    • Simply run echo $SHELL and check that the output reads /bin/bash

Setting up the ACS environment variables

  1. Create a .acs directory
    • run cp -r /alma/ACS-2014.2/ACSSW/config/.acs $HOME
  2. Source the ACS bash profile
    • add the following lines to your $HOME/.bashrc file
      export INTROOT=$HOME/introot
      source .acs/.bash_profile.acs
  1. Logout and login your account and open an xterm. The prompt should read
 user> 

Starting/stopping ACS services and running the tools

  1. Start the ACS Command Center typing acscommandcenter at the command line
  2. Start ACS services and manager pressing the start button on the GUI. Alternatively, type acsStart at the command line
  3. Start containers. ACS default demo containers are named:
    • bilboContainer (C++)
    • frodoContainer (Java)
    • aragornContainer (Python)
  4. You can use the ACS Command Center or alternatively the following command lines:
acsStartContainer -<lang> <name>
acsStopContainer <name>
  1. Start the tools from the Tools menu. Object Explorer and Logging Client in particular. Alternatively you can start the tools from the command line with the following commands:
objexp
jlog
  1. Activate and deactivate ACS components from the object explorer
  2. Stop ACS and all running containers by pressing the stop button on the GUI or using the command
line: acsStop

Group Exercise #2: Setting up a development environment

Setting up the your local git repository

Git is used as the source code repository. Below are the elementary working commands. A more complete git commands reference is here. Before you start you need to define your git user name (same as development account) and e-mail:
  • git-config --global user.name $USER
  • git-config --global user.email $USER@$HOSTNAME

Cloning the course repository

There is a central git repository at the integration server. You will clone that repository and do all further changes locally by issuing:
  • git clone ssh://integration/opt/git/los.git

Pulling from the repository to get updates

You can get the latests updates for your local repository from the central server:
  • git pull

Pushing to the repository to provide your updates

To commit changes to your local repository:
  • git add [changed files]
  • git commit
And to push your changes back to the central server (and make them available to others):
  • git push
If you are not sure you can always check the change status:
  • git status

Setting up your INTROOT area

Create an integration root area for your personal account (INTROOT) by issuing the following commands:
rm –rf $INTROOT
getTemplateForDirectory INTROOT $INTROOT

Setting up your your first software module

Documentation about tools and module structure: ALMA Software Development Tools and Integration Procedures. Create a new module using the getTemplate command:
  • cd ~/
  • getTemplate -> directoryStructure -> create WS_MODROOT area ->
Inside the ICD module, run make all to compile the IDL files and generate all stubs and skeletons.
  • cd ~//ICD/src; make clean all install
  • cd ˜///src; make clean all install

Group Exercise #N: LOS Development

The suggested development teams composition is:

Database

Scheduler

Instrument

Telescope

Integration

  • Jorge, Tomás

First Day

Second Day

Group Exercise #N: LOS Integration

Third Day

Conclusions and Final Remarks

-- Jorge Ibsen - 2014-08-22

Edit | Attach | Watch | Print version | History: r17 | r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2014-08-24 - JorgeIbsen
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback