Skip to content

Commit

Permalink
Update to Open5GS v2.6.2 and use ubuntu:jammy as base container image
Browse files Browse the repository at this point in the history
  • Loading branch information
Borjis131 committed May 16, 2023
1 parent cad6628 commit 79e20ea
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 40 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OPEN5GS_VERSION=v2.6.1
UBUNTU_VERSION=focal
OPEN5GS_VERSION=v2.6.2
UBUNTU_VERSION=jammy
MONGODB_VERSION=6.0
DOCKER_HOST_IP=<your_host_IP_address>
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ All the images depend on the base image. So first, update the `.env` file with t

`OPEN5GS_VERSION` is the version of Open5GS to use.
- Accepted values are the tags, branches or commit IDs used in the Open5GS project
- Default value: v2.6.1
- Tested values: v2.5.5, v2.5.6, v2.5.8, v2.6.1
- Default value: v2.6.2
- Tested values: v2.5.5, v2.5.6, v2.5.8, v2.6.1, v2.6.2

`UBUNTU_VERSION` is the version of the ubuntu Docker image used as base for the containers.
- Accepted values are the tags used by Ubuntu in Docker Hub
- Default value: focal
- Tested values: focal
- Default value: jammy
- Tested values: focal, jammy

`MONGODB_VERSION` is the version of the mongo Docker image used as database for Open5GS.
- Accepted values are the tags used by MongoDB in Docker Hub
Expand Down
7 changes: 1 addition & 6 deletions docs/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@ In other obscure cases, you want to checkout to a commit where release has been
Why would you want that? Because the docker-open5gs could have a release feature that you want to apply to an older Open5GS Release.

Sometimes it will work, sometimes it will not. It will be hard to test the interoperability between the releases published but here it is a compatibility table between versions:

| docker-open5gs version | Open5GS version | backwards compatible |
| --- | --- | --- |
| v2.5.8 | v2.5.6 | yes |
| v2.6.1 | v2.5.8 | no |
Sometimes it will work, sometimes it will not.
6 changes: 3 additions & 3 deletions images/amf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1

# global build-time arguments for FROM statements
ARG OPEN5GS_VERSION="v2.6.1"
ARG UBUNTU_VERSION="focal"
ARG OPEN5GS_VERSION="v2.6.2"
ARG UBUNTU_VERSION="jammy"

FROM base:${OPEN5GS_VERSION} AS builder

Expand Down Expand Up @@ -30,7 +30,7 @@ COPY --from=builder /open5gs/install/lib/x86_64-linux-gnu/libogscrypt.so.2 /open
/open5gs/install/lib/x86_64-linux-gnu/libogssbi-openapi.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsmetrics.so.2 \
/open5gs/install/lib/x86_64-linux-gnu/libogssctp.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsngap.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsasn1c-ngap.so.2 \
/open5gs/install/lib/x86_64-linux-gnu/libogsasn1c-common.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsasn1c-util.so.2 \
/open5gs/install/lib/x86_64-linux-gnu/libogsnas-5gs.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsnas-common.so.2 /open5gs/install/lib/x86_64-linux-gnu/libcm_prom.so \
/open5gs/install/lib/x86_64-linux-gnu/libogsnas-5gs.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsnas-common.so.2 /open5gs/install/lib/x86_64-linux-gnu/libprom.so \
/open5gs/install/lib/x86_64-linux-gnu/

# copy entrypoint script
Expand Down
4 changes: 2 additions & 2 deletions images/ausf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1

# global build-time arguments for FROM statements
ARG OPEN5GS_VERSION="v2.6.1"
ARG UBUNTU_VERSION="focal"
ARG OPEN5GS_VERSION="v2.6.2"
ARG UBUNTU_VERSION="jammy"

FROM base:${OPEN5GS_VERSION} AS builder

Expand Down
4 changes: 2 additions & 2 deletions images/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
# global build-time arguments for FROM statements
# (https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact)

ARG UBUNTU_VERSION="focal"
ARG UBUNTU_VERSION="jammy"

FROM ubuntu:${UBUNTU_VERSION} AS builder

# build-time arguments for builder
ARG OPEN5GS_VERSION="v2.6.1"
ARG OPEN5GS_VERSION="v2.6.2"
ARG DEBIAN_FRONTEND="noninteractive"

# install dependencies
Expand Down
4 changes: 2 additions & 2 deletions images/bsf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1

# global build-time arguments for FROM statements
ARG OPEN5GS_VERSION="v2.6.1"
ARG UBUNTU_VERSION="focal"
ARG OPEN5GS_VERSION="v2.6.2"
ARG UBUNTU_VERSION="jammy"

FROM base:${OPEN5GS_VERSION} AS builder

Expand Down
4 changes: 2 additions & 2 deletions images/nrf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1

# global build-time arguments for FROM statements
ARG OPEN5GS_VERSION="v2.6.1"
ARG UBUNTU_VERSION="focal"
ARG OPEN5GS_VERSION="v2.6.2"
ARG UBUNTU_VERSION="jammy"

FROM base:${OPEN5GS_VERSION} AS builder

Expand Down
4 changes: 2 additions & 2 deletions images/nssf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1

# global build-time arguments for FROM statements
ARG OPEN5GS_VERSION="v2.6.1"
ARG UBUNTU_VERSION="focal"
ARG OPEN5GS_VERSION="v2.6.2"
ARG UBUNTU_VERSION="jammy"

FROM base:${OPEN5GS_VERSION} AS builder

Expand Down
6 changes: 3 additions & 3 deletions images/pcf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1

# global build-time arguments for FROM statements
ARG OPEN5GS_VERSION="v2.6.1"
ARG UBUNTU_VERSION="focal"
ARG OPEN5GS_VERSION="v2.6.2"
ARG UBUNTU_VERSION="jammy"

FROM base:${OPEN5GS_VERSION} AS builder

Expand All @@ -27,7 +27,7 @@ COPY --from=builder /open5gs/install/etc/open5gs/pcf.yaml /open5gs/install/etc/o
COPY --from=builder /open5gs/install/etc/open5gs/tls/ca.crt /open5gs/install/etc/open5gs/tls/pcf.crt /open5gs/install/etc/open5gs/tls/pcf.key /open5gs/install/etc/open5gs/tls/
COPY --from=builder /open5gs/install/lib/x86_64-linux-gnu/libogscrypt.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsproto.so.2 \
/open5gs/install/lib/x86_64-linux-gnu/libogscore.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogssbi.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsapp.so.2 \
/open5gs/install/lib/x86_64-linux-gnu/libogssbi-openapi.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsdbi.so.2 /open5gs/install/lib/x86_64-linux-gnu/libcm_prom.so \
/open5gs/install/lib/x86_64-linux-gnu/libogssbi-openapi.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsdbi.so.2 /open5gs/install/lib/x86_64-linux-gnu/libprom.so \
/open5gs/install/lib/x86_64-linux-gnu/libogsmetrics.so.2 /open5gs/install/lib/x86_64-linux-gnu/

# create directory to store the logs
Expand Down
4 changes: 2 additions & 2 deletions images/scp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1

# global build-time arguments for FROM statements
ARG OPEN5GS_VERSION="v2.6.1"
ARG UBUNTU_VERSION="focal"
ARG OPEN5GS_VERSION="v2.6.2"
ARG UBUNTU_VERSION="jammy"

FROM base:${OPEN5GS_VERSION} AS builder

Expand Down
6 changes: 3 additions & 3 deletions images/smf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1

# global build-time arguments for FROM statements
ARG OPEN5GS_VERSION="v2.6.1"
ARG UBUNTU_VERSION="focal"
ARG OPEN5GS_VERSION="v2.6.2"
ARG UBUNTU_VERSION="jammy"

FROM base:${OPEN5GS_VERSION} AS builder

Expand Down Expand Up @@ -35,7 +35,7 @@ COPY --from=builder /open5gs/install/lib/x86_64-linux-gnu/libogscrypt.so.2 /open
/open5gs/install/lib/x86_64-linux-gnu/libogsdiameter-gx.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsdiameter-common.so.2 \
/open5gs/install/lib/x86_64-linux-gnu/libogsdiameter-gy.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsdiameter-s6b.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsdiameter-rx.so.2 \
/open5gs/install/lib/x86_64-linux-gnu/libogspfcp.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsgtp.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsipfw.so.2 \
/open5gs/install/lib/x86_64-linux-gnu/libfdcore.so.7 /open5gs/install/lib/x86_64-linux-gnu/libfdproto.so.7 /open5gs/install/lib/x86_64-linux-gnu/libcm_prom.so \
/open5gs/install/lib/x86_64-linux-gnu/libfdcore.so.7 /open5gs/install/lib/x86_64-linux-gnu/libfdproto.so.7 /open5gs/install/lib/x86_64-linux-gnu/libprom.so \
/open5gs/install/lib/x86_64-linux-gnu/

# create directory to store the logs
Expand Down
4 changes: 2 additions & 2 deletions images/udm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1

# global build-time arguments for FROM statements
ARG OPEN5GS_VERSION="v2.6.1"
ARG UBUNTU_VERSION="focal"
ARG OPEN5GS_VERSION="v2.6.2"
ARG UBUNTU_VERSION="jammy"

FROM base:${OPEN5GS_VERSION} AS builder

Expand Down
4 changes: 2 additions & 2 deletions images/udr/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1

# global build-time arguments for FROM statements
ARG OPEN5GS_VERSION="v2.6.1"
ARG UBUNTU_VERSION="focal"
ARG OPEN5GS_VERSION="v2.6.2"
ARG UBUNTU_VERSION="jammy"

FROM base:${OPEN5GS_VERSION} AS builder

Expand Down
6 changes: 3 additions & 3 deletions images/upf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# syntax=docker/dockerfile:1

# global build-time arguments for FROM statements
ARG OPEN5GS_VERSION="v2.6.1"
ARG UBUNTU_VERSION="focal"
ARG OPEN5GS_VERSION="v2.6.2"
ARG UBUNTU_VERSION="jammy"

FROM base:${OPEN5GS_VERSION} AS builder

Expand Down Expand Up @@ -31,7 +31,7 @@ COPY --from=builder /open5gs/install/etc/open5gs/upf.yaml /open5gs/install/etc/o
COPY --from=builder /open5gs/install/lib/x86_64-linux-gnu/libogsproto.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogscore.so.2 \
/open5gs/install/lib/x86_64-linux-gnu/libogsapp.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogspfcp.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsgtp.so.2 \
/open5gs/install/lib/x86_64-linux-gnu/libogstun.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsipfw.so.2 /open5gs/install/lib/x86_64-linux-gnu/libogsmetrics.so.2 \
/open5gs/install/lib/x86_64-linux-gnu/libcm_prom.so /open5gs/install/lib/x86_64-linux-gnu/
/open5gs/install/lib/x86_64-linux-gnu/libprom.so /open5gs/install/lib/x86_64-linux-gnu/

# copy helper_functions and entrypoint scripts
COPY ./helper_functions.sh /open5gs/helper_functions.sh
Expand Down

0 comments on commit 79e20ea

Please sign in to comment.