Add preload cmdline tool to docker container 33/69933/1
authorKiran Kamineni <kiran.k.kamineni@intel.com>
Fri, 5 Oct 2018 18:33:50 +0000 (11:33 -0700)
committerKiran Kamineni <kiran.k.kamineni@intel.com>
Fri, 5 Oct 2018 18:33:57 +0000 (11:33 -0700)
Add the preload tool developed in patch 69786 to
sms docker container. It will be used from there
in the kubernetes configuration.

Issue-ID: AAF-532
Change-Id: I7ca1d037514da0d56a6c47d6e0c6b845d2fd9a5e
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
sms-service/bin/build_sms_image.sh
sms-service/bin/smsdockerfile
sms-service/src/Makefile
sms-service/src/preload/Gopkg.lock

index 10b5418..f5beb4d 100755 (executable)
@@ -25,7 +25,11 @@ function generate_binary {
     pushd ../src/sms
     make build
     popd
+    pushd ../src/preload
+    make build
+    popd
     cp ../target/sms .
+    cp ../target/preload .
 }
 
 function copy_certificates {
@@ -35,7 +39,7 @@ function copy_certificates {
 }
 
 function cleanup {
-    rm sms
+    rm sms preload
     rm aaf-sms.pub
     rm aaf-sms.pr
     rm aaf_root_ca.cer
index 9b7fb9a..cdb8494 100644 (file)
@@ -12,6 +12,8 @@ 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
+RUN chmod +x /sms/bin/preload
 
 WORKDIR /sms
 ENTRYPOINT ["/sms/bin/sms"]
index 9036c73..b1c92b9 100644 (file)
@@ -5,7 +5,9 @@ buildclient:
 build: buildclient
        $(MAKE) -C sms build
        $(MAKE) -C quorumclient build
+       $(MAKE) -C preload build
 
 deploy:
        $(MAKE) -C sms deploy
        $(MAKE) -C quorumclient deploy
+       $(MAKE) -C preload deploy
index 94ca755..8994185 100644 (file)
@@ -9,20 +9,9 @@
   revision = "645ef00459ed84a119197bfb8d8205042c6df63d"
   version = "v0.8.0"
 
-[[projects]]
-  digest = "1:342378ac4dcb378a5448dd723f0784ae519383532f5e70ade24132c4c8693202"
-  name = "gopkg.in/yaml.v2"
-  packages = ["."]
-  pruneopts = "UT"
-  revision = "5420a8b6744d3b0345ab293f6fcba19c978f1183"
-  version = "v2.2.1"
-
 [solve-meta]
   analyzer-name = "dep"
   analyzer-version = 1
-  input-imports = [
-    "github.com/pkg/errors",
-    "gopkg.in/yaml.v2",
-  ]
+  input-imports = ["github.com/pkg/errors"]
   solver-name = "gps-cdcl"
   solver-version = 1