Reorganise the sidecars 63/1263/2
authorE. Scott Daniels <daniels@research.att.com>
Tue, 29 Oct 2019 13:05:21 +0000 (09:05 -0400)
committerE. Scott Daniels <daniels@research.att.com>
Tue, 29 Oct 2019 13:40:31 +0000 (09:40 -0400)
The sidecar directory formally under src/ is moved to the top level.
The docker file originally at the top level is moved to the listener
directory in the new sidecar directory as it only builds an image
for running the listener.

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: Idd05de886af1fd5dea587e22ff00d234e49a555c

17 files changed:
sidecars/listener/.gitignore [moved from src/sidecars/listener/.gitignore with 100% similarity]
sidecars/listener/Dockerfile [new file with mode: 0644]
sidecars/listener/Makefile [moved from src/sidecars/listener/Makefile with 100% similarity]
sidecars/listener/README [moved from src/sidecars/listener/README with 100% similarity]
sidecars/listener/TESTING [moved from src/sidecars/listener/TESTING with 100% similarity]
sidecars/listener/build_dev_env.sh [moved from src/sidecars/listener/build_dev_env.sh with 100% similarity]
sidecars/listener/build_images.sh [moved from src/sidecars/listener/build_images.sh with 100% similarity]
sidecars/listener/mc_listener.c [moved from src/sidecars/listener/mc_listener.c with 100% similarity]
sidecars/listener/mcl.c [moved from src/sidecars/listener/mcl.c with 100% similarity]
sidecars/listener/mcl.h [moved from src/sidecars/listener/mcl.h with 100% similarity]
sidecars/listener/mcl_dev.df [moved from src/sidecars/listener/mcl_dev.df with 100% similarity]
sidecars/listener/mcl_runtime.df [moved from src/sidecars/listener/mcl_runtime.df with 100% similarity]
sidecars/listener/pipe_reader.c [moved from src/sidecars/listener/pipe_reader.c with 100% similarity]
sidecars/listener/rdc.c [moved from src/sidecars/listener/rdc.c with 100% similarity]
sidecars/listener/sender.c [moved from src/sidecars/listener/sender.c with 100% similarity]
sidecars/listener/unit_test.c [moved from src/sidecars/listener/unit_test.c with 100% similarity]
sidecars/listener/verify.sh [moved from src/sidecars/listener/verify.sh with 100% similarity]

diff --git a/sidecars/listener/Dockerfile b/sidecars/listener/Dockerfile
new file mode 100644 (file)
index 0000000..14f0ba9
--- /dev/null
@@ -0,0 +1,49 @@
+# vim: ts=4 sw=4 noet:
+
+# -------------------------------------------------------------------------------
+#    Copyright (c) 2018-2019 AT&T Intellectual Property.
+#
+#   Licensed under the Apache License, Version 2.0 (the "License");
+#   you may not use this file except in compliance with the License.
+#   You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
+# -------------------------------------------------------------------------------
+
+# CAUTION:   This file eventually should exist in the ci directory, however until
+#                      this can be confirmed, and the .yaml file(s) in the ci project changed
+#                      to indicaate that ci/Dockerfile should be used, this is here with minor
+#                      changes needed to exist at the root.
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+# CI to verify the MC application components
+# Inherits C toolchain from buildpack-deps:stretch then adds cmake and better shell(s).
+
+# It is assumed that this docker file is used with a build command run at the
+# root level of the repo (directory containing the ci directory). E.g.
+#      docker build -f ci/Dockerfile .
+
+FROM buildpack-deps:stretch
+
+RUN apt-get update && apt-get -q -y install cmake ksh
+
+# stuff our repo things into a scratch area
+RUN mkdir /playpen
+ADD . /playpen
+
+
+# add any unit test scripts that need to be driven, e.g.
+# RUN ksh test/mcl_unit_test.ksh
+
+#  This is a final/only script which might print useful things to the log and ALWAYS succeeds.
+RUN ksh /playpen/ci/stats.ksh
+
+# there is no cmd; the build/verification assumes that if the image is created
+# successfully, e.g. none of the previous run commands fail, that the environment
+# is successfully vetted.