-
Notifications
You must be signed in to change notification settings - Fork 2
Testing
Pull the docker image:
sudo docker pull alogo53/gridftp
Start it:
sudo docker run -t -i alogo53/gridftp /bin/bash
restart the server:
/etc/init.d/globus-gridftp-server restart
Copy the user certificates to the host machine:
sudo docker ps
Take the id from the previous command. If for example it was 'fe379af583ef' use it to copy the certificates:
sudo docker cp fe379af583ef:/root/.globus $HOME
change owner:
sudo chown -R $USER $HOME/.globus
Also copy the host and CA certificates to lobcder if not compiled yet:
sudo docker cp fe379af583ef:/etc/grid-security/certificates/ lobcder/lobcder-master/src/main/resources/certs/
change owner:
sudo chown -R $USER lobcder/lobcder-master/src/main/resources/certs/
or in the deployed lobcder instance:
sudo docker cp fe379af583ef:/etc/grid-security/certificates/ lobcder/lobcder-master/src/main/resources/certs/
change owner:
sudo chown -R $USER $CATALINA_HOME/webapps/lobcder
Initialize the proxy certificate with GRID pass phrase 'pass':
grid-proxy-init -debug
Test it:
globus-url-copy -v file:/etc/group gsiftp://172.17.0.2/tmp/group
Insert the credentials to lobcder:
INSERT INTO lobcderDB2.credential_table (username, password) VALUES ('user', 'pass');
Get the credential credintialId:
select * from lobcderDB2.credential_table where username ='user' and password ='pass';
Assuming the credintialId was '3' Insert the storage site url to lobcder:
INSERT INTO lobcderDB2.storage_site_table (resourceUri, credentialRef, currentNum, currentSize, uotaNum, quotaSize, isCache, extra, encrypt, private, removing, readOnly) VALUES ('gsiftp://172.17.0.2/root/', 3, NULL, NULL, NULL, NULL, false, NULL, false, false, false, false);
Now lobcder will be using the gridFTP server from the host in 172.17.0.2