As IceCube moves forward in its Java Application Server technology, this requires a new configuration to utilize the new components. A lot of what went into the older Mercury Standard has been outdated or included into the newer applications.
The following is how to setup and maintain the new DAQ developer's sandbox, otherwise known as 'The Copper Standard' configuration. This is opposed to the Gold (integration/test) or Platinum (deployment/production) configurations.
This is still done in 4 basic steps. Updating your configuration (from an existing installed configuration) will depend on which of these 4 components have changed. You will be told via the daq-dev email list if any of these components need to be updated. Assumed is general Unix shell knowledge and root access for the first step only (unless you decide to install JBoss and BFD someplace you need root).
Keep in mind that these instructions are RedHat Linux/bash-centric and are intended as a guide on how to install and update these components. They will need to be modified appropriately when working with another platform (Gentoo, Mac OSX, Cygwin, etc.) or a different user shell (tcsh), etc.
There are several suggested additions to your ~/.bashrc file in here. So it is suggested that you read through the instructions, understand them, make all the additions to your ~/.bashrc file, then in a new shell go though the configuration commands.
Discussions of the Mercury Standard are stored at the daq-dev archive. You do not need to be subscribed to the list to view the archive.
| Steps | Convention |
|
To be stored in your .bashrc
Special notes for Cygwin users
|
# rpm -ivh http://glacier.lbl.gov/j2sdk-1_4_2_05-linux-i586.rpm
This will install the JDK into /usr/java/j2sdk1.4.2_05. Add the following to your ~/.bashrc:
export JAVA_HOME =/usr/java/j2sdk1.4.2_05
export PATH =${JAVA_HOME} /bin:${PATH}
Download the JBoss tar file from glacier:
Then untar it creating a jboss-3.2.5 directory:
Create a link that points to the real JBoss directory.
Finaly define your
This should be the absolute path to the pristine JBoss installation
directory. Every attempt should be made to resolve any symlinks you
have in your path to JBoss.
Re-source your .bashrc to pickup the new env var. It is required later on.
If you run into problems during this phase, take a look at the BFD FAQ. It probably has your problem listed there.
Start in your
Install (or update) directly from Rsync on Glacier:
Now make the bfd command available to you on the command
line (this could be done many ways, this is one possibiliy): add
the following alias to your ~/.bashrc:
Now initialize (or re-initialize) the bfd tools dir under the JBoss
installation:
Create a bfd workspace into which you can checkout the daq-mercury
project from bfd:
Now define the top level of the DAQ developer's (your) JBoss deployment
tree by having
Be sure that your .bashrc has been sourced at this point. You can
logout/login again before proceeding.
Consult the BFD FAQ if
you get errors runing this script.
Finally, the setup-iceboss.sh script defines a few commands for
starting and stopping jboss. To have those commands available to
you, source that script in your ~/.bashrc by adding the
following to it:
Start jboss in the foreground (so you will want this in it's own window)
Use the jboss command. To stop it use Ctrl-C in that
same window, or the nojboss command from another.
$ cd
$ wget http://glacier.lbl.gov/jboss-3.2.5.tar.gz
$ tar zxf jboss-3.2.5.tar.gz
$ ln -s jboss-3.2.5 jboss
export
export
export
export
$ cd
$ mkdir -p
$ rsync --delete -rlpt rsync://glacier.lbl.gov/DAQ.Dev.Linux-i386/
alias
$ cd
$ rm -rf tools
$ bfd reinit -t
export
export
$ cd
$ mkdir BFD_workspace
$ cd BFD_workspace
$ bfd init
$ source ./setup.sh
$ bfd co -r V01-01-00 mercury-setup
export
export
export
Run the script to set up the jboss delpoyment area(s):
$ python2 ./mercury-setup/HgStandard.py --reset
source
$ jboss
Advanced Topics: