Adding multithreading support to the application
[aaf/sshsm.git] / bin / caservicecontainer / README
1
2 ### Create a directory /tmp/volume (mkdir -p /tmp/volume) on host.
3 ### This is used as shared volume and mounted inside container
4
5 ### Build docker image with a base image
6
7 ````
8 $ docker build -t <imagename> -f dockerfile .
9 ````
10
11 ### Running the CA service container - Below command will run and log you into the container
12
13 ````
14 $ docker run -d -e DATA_FOLDER=<Location of shared directory> -v /tmp/run/dbus:/var/run/dbus:rw -v /tmp/volume:/tmp/files:rw --name <containername> -i -t --entrypoint=/bin/bash <imagename>
15 ````
16
17 ### Login to the container
18 ````
19 $ docker exec -it <containername> /bin/bash
20 ````
21
22 ### Running the Import utility
23 ````
24 $ import.sh
25 ````
26
27 ### Running the Import utility with stress test with multithreading
28 ````
29 $ ./testca/test/multithreadimport.sh
30 ````
31 #### Make sure the TABRMD container is running on the same dbus mountpoint on the host as the CA service container
32
33 ### Expected Input files for SoftHSM operations
34 ### 1. passphrase 2. privkey.pem.gpg 3. ca.cert
35 ### Output - None
36
37 ### Expected Input files for TPM Hardware opeartion
38 ### 1. ca.cert 2. duPEncKey 3. dupPriv 4. dupPub 5. dupSymseed 6. tpm_handle (srkhandle)
39 ### Output - None
40
41 ### Expected Input for Application's operations
42 ### 1. test.csr 2. CaSign.java(Application file) 3. ca.cert
43 ### Output - test.cert (in /tmp Directory)