summaryrefslogtreecommitdiffstats
path: root/sms-service/bin
diff options
context:
space:
mode:
authorManjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>2020-06-05 09:18:55 -0700
committerManjunath Ranganathaiah <manjunath.ranganathaiah@intel.com>2020-06-05 09:25:50 -0700
commit516213f563b079c982fa706aa9d97c27581e8655 (patch)
treeedf7480389df05db9f4f069c0668b56444aa5765 /sms-service/bin
parenta7cd299e6c7f9e546f5170949b8aa5ba4e7e0a04 (diff)
Remove expired certs and key, use them from oom.HEADmaster
Issue-ID: AAF-1159 Signed-off-by: Manjunath Ranganathaiah <manjunath.ranganathaiah@intel.com> Change-Id: I658af495ce2e30e34f94bcb57bc06c335a7b724b
Diffstat (limited to 'sms-service/bin')
-rwxr-xr-xsms-service/bin/build_sms_image.sh10
-rw-r--r--sms-service/bin/smsdockerfile4
2 files changed, 1 insertions, 13 deletions
diff --git a/sms-service/bin/build_sms_image.sh b/sms-service/bin/build_sms_image.sh
index 5dead3f..9384843 100755
--- a/sms-service/bin/build_sms_image.sh
+++ b/sms-service/bin/build_sms_image.sh
@@ -33,17 +33,8 @@ function generate_binary {
cp ../target/preload .
}
-function copy_certificates {
- cp ../src/sms/certs/aaf_root_ca.cer .
- cp ../src/sms/certs/aaf-sms.pub .
- cp ../src/sms/certs/aaf-sms.pr .
-}
-
function cleanup {
rm sms preload
- rm aaf-sms.pub
- rm aaf-sms.pr
- rm aaf_root_ca.cer
}
function build_image {
@@ -66,7 +57,6 @@ function push_image {
}
generate_binary
-copy_certificates
build_image
push_image
cleanup
diff --git a/sms-service/bin/smsdockerfile b/sms-service/bin/smsdockerfile
index 829f89b..19f44d9 100644
--- a/sms-service/bin/smsdockerfile
+++ b/sms-service/bin/smsdockerfile
@@ -7,10 +7,8 @@ LABEL maintainer="vamshi krishna <vn00480215@techmahindra.com>"
EXPOSE 10443
RUN addgroup aaf && adduser -H -D -g "" -G aaf aaf && \
mkdir -p /sms/auth && \
+ mkdir -p /sms/certs && \
chown -R aaf:aaf /sms
-ADD aaf_root_ca.cer /sms/certs/aaf_root_ca.cer
-ADD aaf-sms.pub /sms/certs/aaf-sms.pub
-ADD aaf-sms.pr /sms/certs/aaf-sms.pr
ADD sms /sms/bin/sms
RUN chmod +x /sms/bin/sms
ADD preload /sms/bin/preload