Fix deployment of open5gs on architecture other than x86

This commit is contained in:
herlesupreeth
2023-07-19 15:12:51 +02:00
parent a621683e88
commit d0875021b9
10 changed files with 34 additions and 30 deletions

View File

@@ -27,7 +27,6 @@
FROM ubuntu:focal as builder
ENV DEBIAN_FRONTEND=noninteractive
ENV LD_LIBRARY_PATH=/open5gs/install/lib/x86_64-linux-gnu
# Install updates and dependencies
RUN apt-get update && \
@@ -76,7 +75,6 @@ RUN cd open5gs/webui && npm clean-install && npm run build
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
ENV LD_LIBRARY_PATH=/open5gs/install/lib/x86_64-linux-gnu
RUN apt-get update && \
apt-get install -y --no-install-recommends \

View File

@@ -26,6 +26,8 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
export LD_LIBRARY_PATH=/open5gs/install/lib/$(uname -m)-linux-gnu
if [[ -z "$COMPONENT_NAME" ]]; then
echo "Error: COMPONENT_NAME environment variable not set"; exit 1;
elif [[ "$COMPONENT_NAME" =~ ^(amf-[[:digit:]]+$) ]]; then