From d9784d158cbdb1d46b14b9ae00436ce0ab7d4ed2 Mon Sep 17 00:00:00 2001 From: Moshe Date: Thu, 21 Jun 2018 11:19:39 +0300 Subject: Add startup script to docker image Issue-ID: VNFSDK-275 Change-Id: I75ee935b630c73293f9d3098e866088186c39cf7 Signed-off-by: Moshe --- docker/Dockerfile | 4 ++++ docker/startup.sh | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 docker/startup.sh diff --git a/docker/Dockerfile b/docker/Dockerfile index 62095ca..816371b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -49,3 +49,7 @@ COPY ./exec_tests.sh /usr/local/bin/ ENV NSB_DIR="/opt/nsb_bin" \ PYTHONPATH="${PYTHONPATH}:${NSB_DIR}/trex_client:${NSB_DIR}/trex_client/stl" + +ADD startup.sh /startup.sh +RUN chmod 755 /startup.sh +ENTRYPOINT /startup.sh \ No newline at end of file diff --git a/docker/startup.sh b/docker/startup.sh new file mode 100644 index 0000000..71d0e7f --- /dev/null +++ b/docker/startup.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +############################################################################## +# Copyright 2018 EuropeanSoftwareMarketingLtd. +# =================================================================== +# Licensed under the ApacheLicense, Version2.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 +# +# 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 +############################################################################## + +tail -f /dev/null \ No newline at end of file -- cgit 1.2.3-korg