Change scripts to sh rather than bash 09/129909/1
authorliamfallon <liam.fallon@est.tech>
Wed, 13 Jul 2022 12:38:22 +0000 (13:38 +0100)
committerliamfallon <liam.fallon@est.tech>
Wed, 13 Jul 2022 12:43:21 +0000 (13:43 +0100)
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>
models-sim/packages/models-simulator-docker/src/main/docker/Dockerfile
models-sim/packages/models-simulator-docker/src/main/docker/simulators.sh
models-sim/policy-models-simulators/src/main/package/docker/simulators.sh

index e71df45..9a524fb 100644 (file)
@@ -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" ]
index 1cec646..a70deb9 100644 (file)
@@ -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.
index 7e38f37..01521cb 100644 (file)
@@ -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.