Skip to content

Commit

Permalink
Updated dockerfiles to remove build warnings due to docker syntax (#136)
Browse files Browse the repository at this point in the history
* Updated dockerfiles to remove build warnings due to docker syntax

* Update Dockerfile.nf
  • Loading branch information
Justin-Garey authored Dec 24, 2024
1 parent a60a008 commit 0ae63bb
Show file tree
Hide file tree
Showing 19 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM golang:1.21.8-bullseye AS builder

LABEL maintainer="Free5GC <support@free5gc.org>"

ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Install dependencies
RUN apt-get update \
Expand Down
6 changes: 4 additions & 2 deletions base/Dockerfile.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Dockerfile responsible to compile specific NF from free5gc sources on the host
#

FROM free5gc/base as my-base
FROM free5gc/base AS my-base

ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive
ARG F5GC_MODULE

# Get Free5GC
Expand All @@ -16,6 +16,8 @@ RUN cd $GOPATH/src/free5gc \
# Alpine is used for debug purpose. You can use scratch for a smaller footprint.
FROM alpine:3.15

ARG F5GC_MODULE

WORKDIR /free5gc
RUN mkdir -p cert/ public

Expand Down
4 changes: 2 additions & 2 deletions base/Dockerfile.nf.webconsole
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Dockerfile responsible to compile webconsole NF from sources on the host
#

FROM free5gc/base as my-base
FROM free5gc/base AS my-base

ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Get Free5GC
COPY free5gc/ $GOPATH/src/free5gc/
Expand Down
4 changes: 2 additions & 2 deletions n3iwue/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:1.21.10-bullseye AS builder

LABEL maintainer="Free5GC <support@free5gc.org>"

ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Install dependencies
RUN apt-get update \
Expand All @@ -14,7 +14,7 @@ RUN apt-get update \

FROM bitnami/minideb:bullseye

ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update \
&& apt-get install libsctp-dev lksctp-tools iproute2 iputils-ping procps psmisc tcpdump sudo -y \
Expand Down
2 changes: 1 addition & 1 deletion nf_amf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE amf
ENV F5GC_MODULE=amf
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
2 changes: 1 addition & 1 deletion nf_ausf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE ausf
ENV F5GC_MODULE=ausf
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
2 changes: 1 addition & 1 deletion nf_chf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE chf
ENV F5GC_MODULE=chf
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
2 changes: 1 addition & 1 deletion nf_n3iwf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE n3iwf
ENV F5GC_MODULE=n3iwf
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
2 changes: 1 addition & 1 deletion nf_nef/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE nef
ENV F5GC_MODULE=nef
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
2 changes: 1 addition & 1 deletion nf_nrf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE nrf
ENV F5GC_MODULE=nrf
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
2 changes: 1 addition & 1 deletion nf_nssf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE nssf
ENV F5GC_MODULE=nssf
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
2 changes: 1 addition & 1 deletion nf_pcf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE pcf
ENV F5GC_MODULE=pcf
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
2 changes: 1 addition & 1 deletion nf_smf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE smf
ENV F5GC_MODULE=smf
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
2 changes: 1 addition & 1 deletion nf_tngf/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE tngf
ENV F5GC_MODULE=tngf
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
2 changes: 1 addition & 1 deletion nf_udm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE udm
ENV F5GC_MODULE=udm
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
2 changes: 1 addition & 1 deletion nf_udr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM alpine:3.15
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE udr
ENV F5GC_MODULE=udr
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
6 changes: 3 additions & 3 deletions nf_upf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM free5gc/base as my-base
FROM free5gc/base AS my-base

RUN git clone https://github.com/free5gc/go-gtp5gnl.git && mkdir "go-gtp5gnl/bin" && \
cd "go-gtp5gnl/cmd/gogtp5g-tunnel" && go build -o "${GOPATH}/gtp5g-tunnel" . && \
Expand All @@ -10,8 +10,8 @@ FROM bitnami/minideb:bullseye
LABEL description="free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE upf
ENV DEBIAN_FRONTEND noninteractive
ENV F5GC_MODULE=upf
ENV DEBIAN_FRONTEND=noninteractive
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down
4 changes: 2 additions & 2 deletions ueransim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM gcc:9.4.0 AS builder

LABEL maintainer="Free5GC <support@free5gc.org>"

ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Install dependencies
RUN apt-get update \
Expand All @@ -16,7 +16,7 @@ RUN apt-get update \

FROM bitnami/minideb:bullseye

ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Install runtime dependencies + ping
RUN apt-get update \
Expand Down
4 changes: 2 additions & 2 deletions webui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ FROM bitnami/minideb:bullseye
LABEL description="Free5GC open source 5G Core Network" \
version="Stage 3"

ENV F5GC_MODULE webui
ENV DEBIAN_FRONTEND noninteractive
ENV F5GC_MODULE=webui
ENV DEBIAN_FRONTEND=noninteractive
ARG DEBUG_TOOLS

# Install debug tools ~ 100MB (if DEBUG_TOOLS is set to true)
Expand Down

0 comments on commit 0ae63bb

Please sign in to comment.