README.md 1.49 KB
Newer Older
1 2
Build the image
---------------
3 4 5 6

::

  $ docker build -t snf-occi-client:<version> .
7 8 9

This will build a new image, which can be pushed or kept local.

10 11 12 13 14 15
Alternatively, you can, of course, use the grnet repository to build the image:

::

  $ docker build -t snf-occi-client:<version> https://github.com/grnet/snf-occi.git#master:test

16 17 18 19 20 21 22
Run a new container
-------------------
You need either a client proxy or a pair of keys.

If you have a pair of keys, load the directory containing them as /root/.globus
Then run the appropriate commands to generate a proxy

23
::
24

25 26 27
  $ docker run -v ${HOME}/.globus:/root/.globus -ti snf-occi-client:latest
  # fetch-crl -p 20
  # voms-proxy-init -voms fedcloud.egi.eu -rfc
28

29 30 31 32 33
If you already have a valid proxy, load it somewhere on the machine

::

  $ docker run -v my_proxy:/data/my_proxy  -ti snf-occi-client:latest
34 35 36 37 38 39 40 41 42

What is in the container
------------------------
You will find all the tools from egifedcloud/fedcloud-userinterface:latest plus
a shell script to test the snf-occi application.

To run the script, you must set some variables, either when you RUN the
container or while you are inside the container.

43 44 45 46 47 48
::

  OCCI_ENDPOINT
  USER_PROXY
  OS_TPL
  RESOURCE_TPL
49 50 51

For instance, if you have a proxy, you may want to run something like:

52 53 54
::

  $ docker run -v my_proxy:/data/my_proxy \
55 56 57
    -e OCCI_ENDPOINT="https://okeanos-occi2.hellasgrid.gr:9000" \
    -e USER_PROXY="/data/my_proxy" \
    -e OS_TPL="debian_base" -e RESOURCE_TPL="c2r2048d20drbd" \
58 59
    -ti snf-occi-client:latest