Skip to content

Update local VO setup

Taking over @nhardi 's changes (from !28 (closed)) for ease of setup in fresh environments, i.e Ubuntu docker containers or VMs.

Further changes added to Tester.java for better cleanup and termination of java, mysqld, slapd processes.

How to test (tested in Ubuntu 18.04 docker image):

  • Pull Ubuntu 18.04 docker image
  • Install mysql-server slapd ldap-utils openjdk-11-jdk
  • Alternatively can directly pull gitlab-registry.cern.ch/adangwal/jalien/jalien-modified:version0.1 docker image
  • Clone this branch
  • Run the container and mount the cloned branch using docker container run -v /path/to/clone:/jalien -it gitlab-registry.cern.ch/adangwal/jalien/jalien-modified:version0.1 /bin/bash
  • Run ./compile.sh and ./testj test (inside docker container)
  • On error, make sure that ~/.globus/alien.p12 exists, should be available in ~/.j/testVO/globus. If not, run openssl pkcs12 -password pass: -export -in cacert.pem -name alien -inkey cakey.pem -out alien.p12 in ~/.j/testVO/globus and create symlink to ~/.globus
  • After which ./testj test will execute successfully
  • Run ./testj start and ./testj sh to verify JCentral, JBox and JSh works.

Future work: Create script to automate setup of JCentral inside docker environment.

Merge request reports