diff options
author | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-04-26 17:31:07 -0700 |
---|---|---|
committer | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-04-26 17:31:12 -0700 |
commit | 56a620d02f2b39ce64d07007902b53544d235a59 (patch) | |
tree | 62c162f0d19314c61274fe0d709320aaefcffa55 /sms-service/bin | |
parent | 30dae56d353d324e97e13a47891c30f384a66be9 (diff) |
Adding cert files to support https
Adding cert files generated by AAF CA
Incorporating them into the docker build as well
Issue-ID: AAF-265
Change-Id: I1ee1e031bf058a0325fe2c6fe8eed5e3948d70e7
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'sms-service/bin')
-rwxr-xr-x | sms-service/bin/build_quorum_image.sh | 10 | ||||
-rwxr-xr-x | sms-service/bin/build_sms_image.sh | 12 | ||||
-rw-r--r-- | sms-service/bin/quorumdockerfile | 2 | ||||
-rw-r--r-- | sms-service/bin/smsdockerfile | 3 |
4 files changed, 23 insertions, 4 deletions
diff --git a/sms-service/bin/build_quorum_image.sh b/sms-service/bin/build_quorum_image.sh index 4691067..b26accf 100755 --- a/sms-service/bin/build_quorum_image.sh +++ b/sms-service/bin/build_quorum_image.sh @@ -27,8 +27,13 @@ function generate_binary { cp ../target/quorumclient . } -function remove_binary { +function copy_certificates { + cp ../src/sms/auth/aaf_root_ca.cer . +} + +function cleanup { rm quorumclient + rm aaf_root_ca.cer } function build_image { @@ -51,6 +56,7 @@ function push_image { } generate_binary +copy_certificates build_image push_image -remove_binary
\ No newline at end of file +cleanup
\ No newline at end of file diff --git a/sms-service/bin/build_sms_image.sh b/sms-service/bin/build_sms_image.sh index a89e64e..cd3663f 100755 --- a/sms-service/bin/build_sms_image.sh +++ b/sms-service/bin/build_sms_image.sh @@ -27,8 +27,15 @@ function generate_binary { cp ../target/sms . } -function remove_binary { +function copy_certificates { + cp ../src/sms/auth/aaf-sms.api.simpledemo.onap.org.pem . + cp ../src/sms/auth/aaf-sms.api.simpledemo.onap.org.pr . +} + +function cleanup { rm sms + rm aaf-sms.api.simpledemo.onap.org.pem + rm af-sms.api.simpledemo.onap.org.pr } function build_image { @@ -51,6 +58,7 @@ function push_image { } generate_binary +copy_certificates build_image push_image -remove_binary
\ No newline at end of file +cleanup
\ No newline at end of file diff --git a/sms-service/bin/quorumdockerfile b/sms-service/bin/quorumdockerfile index fa4a159..3b787d7 100644 --- a/sms-service/bin/quorumdockerfile +++ b/sms-service/bin/quorumdockerfile @@ -5,7 +5,9 @@ LABEL version=2.0.0 LABEL maintainer="Girish Havaldar <hg0071052@techmahindra.com>" RUN mkdir -p /quorumclient/auth +ADD aaf_root_ca.cer /quorumclient/cert/aaf_root_ca.cer ADD quorumclient /quorumclient/bin/quorumclient RUN chmod +x /quorumclient/bin/quorumclient +WORKDIR /quorumclient ENTRYPOINT ["/quorumclient/bin/quorumclient"] diff --git a/sms-service/bin/smsdockerfile b/sms-service/bin/smsdockerfile index 629fcd5..50704b2 100644 --- a/sms-service/bin/smsdockerfile +++ b/sms-service/bin/smsdockerfile @@ -7,7 +7,10 @@ LABEL maintainer="vamshi krishna <vn00480215@techmahindra.com>" EXPOSE 10443 RUN mkdir -p /sms/auth +ADD aaf-sms.api.simpledemo.onap.org.pem /sms/cert/aaf-sms.api.simpledemo.onap.org.pem +ADD aaf-sms.api.simpledemo.onap.org.pr /sms/cert/aaf-sms.api.simpledemo.onap.org.pr ADD sms /sms/bin/sms RUN chmod +x /sms/bin/sms +WORKDIR /sms ENTRYPOINT ["/sms/bin/sms"] |