Fix deployment of open5gs on architecture other than x86
This commit is contained in:
@@ -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 \
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user