summaryrefslogtreecommitdiffstats
path: root/models-sim/packages
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2022-07-13 13:38:22 +0100
committerliamfallon <liam.fallon@est.tech>2022-07-13 13:43:21 +0100
commit0ee2d997a118b4239c1a9d05fc3fd98028d0ba35 (patch)
tree9583c017b3f6b21de44c8bb649518630911b931a /models-sim/packages
parent790a7008d2d8cb1b2afb2c6d1a37af80a8bd3163 (diff)
Change scripts to sh rather than bash
The models simulator in Honolulu uses bash for running scripts but bash is not available in the alpine base image. This commit replaces bash with sh Issue-ID: POLICY-4233 Change-Id: I2cdab931257d6686c693d307c5eb742a896b0d08 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'models-sim/packages')
-rw-r--r--models-sim/packages/models-simulator-docker/src/main/docker/Dockerfile3
-rw-r--r--models-sim/packages/models-simulator-docker/src/main/docker/simulators.sh3
2 files changed, 4 insertions, 2 deletions
diff --git a/models-sim/packages/models-simulator-docker/src/main/docker/Dockerfile b/models-sim/packages/models-simulator-docker/src/main/docker/Dockerfile
index e71df4549..9a524fb36 100644
--- a/models-sim/packages/models-simulator-docker/src/main/docker/Dockerfile
+++ b/models-sim/packages/models-simulator-docker/src/main/docker/Dockerfile
@@ -4,6 +4,7 @@
# ================================================================================
# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
# Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+# Modification Copyright (C) 2022 Nordix Foundation.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -57,4 +58,4 @@ RUN find /opt/app -type d -perm 755 \
USER policy:policy
ENV PATH ${POLICY_HOME}/simulators/bin:$PATH
-ENTRYPOINT [ "bash", "simulators.sh" ]
+ENTRYPOINT [ "simulators.sh" ]
diff --git a/models-sim/packages/models-simulator-docker/src/main/docker/simulators.sh b/models-sim/packages/models-simulator-docker/src/main/docker/simulators.sh
index 1cec646de..a70deb9fc 100644
--- a/models-sim/packages/models-simulator-docker/src/main/docker/simulators.sh
+++ b/models-sim/packages/models-simulator-docker/src/main/docker/simulators.sh
@@ -1,10 +1,11 @@
-#!/bin/bash
+#!/bin/sh
#
# ============LICENSE_START=======================================================
# ONAP
# ================================================================================
# Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
# Modifications copyright (C) 2020 Bell Canada. All rights reserved.
+# Modifications Copyright (C) 2022 Nordix Foundation.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.