Skip to content

Commit cad0268

Browse files
AkhileshSaminenipull[bot]
authored andcommitted
Upgrade the NAT docker to bookworm (#18799)
* Upgrade the NAT docker to bookworm Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com> * Corrected the iptables Makefile Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com> * Updated the fullcone patch for iptables 1.8.9 version Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com> --------- Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
1 parent 0cfb024 commit cad0268

File tree

5 files changed

+86
-278
lines changed

5 files changed

+86
-278
lines changed

dockers/docker-nat/Dockerfile.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% from "dockers/dockerfile-macros.j2" import install_debian_packages, copy_files %}
2-
FROM docker-swss-layer-bullseye-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}
2+
FROM docker-swss-layer-bookworm-{{DOCKER_USERNAME}}:{{DOCKER_USERTAG}}
33

44
ARG docker_container_name
55

rules/docker-nat.mk

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ DOCKER_NAT_DBG = $(DOCKER_NAT_STEM)-$(DBG_IMAGE_MARK).gz
77
$(DOCKER_NAT)_PATH = $(DOCKERS_PATH)/$(DOCKER_NAT_STEM)
88

99
$(DOCKER_NAT)_DEPENDS += $(SWSS) $(IPTABLESIP4TC) $(IPTABLESIP6TC) $(IPTABLESIPTC) $(IPXTABLES12) $(IPTABLES)
10-
$(DOCKER_NAT)_DBG_DEPENDS = $($(DOCKER_SWSS_LAYER_BULLSEYE)_DBG_DEPENDS)
10+
$(DOCKER_NAT)_DBG_DEPENDS = $($(DOCKER_SWSS_LAYER_BOOKWORM)_DBG_DEPENDS)
1111
$(DOCKER_NAT)_DBG_DEPENDS += $(SWSS_DBG) $(LIBSWSSCOMMON_DBG)
12-
$(DOCKER_NAT)_DBG_IMAGE_PACKAGES = $($(DOCKER_SWSS_LAYER_BULLSEYE)_DBG_IMAGE_PACKAGES)
12+
$(DOCKER_NAT)_DBG_IMAGE_PACKAGES = $($(DOCKER_SWSS_LAYER_BOOKWORM)_DBG_IMAGE_PACKAGES)
1313

14-
$(DOCKER_NAT)_LOAD_DOCKERS += $(DOCKER_SWSS_LAYER_BULLSEYE)
14+
$(DOCKER_NAT)_LOAD_DOCKERS += $(DOCKER_SWSS_LAYER_BOOKWORM)
1515

1616
$(DOCKER_NAT)_VERSION = 1.0.0
1717
$(DOCKER_NAT)_PACKAGE_NAME = nat
@@ -38,5 +38,5 @@ $(DOCKER_NAT)_FILES += $(SUPERVISOR_PROC_EXIT_LISTENER_SCRIPT)
3838

3939
$(DOCKER_NAT)_BASE_IMAGE_FILES += natctl:/usr/bin/natctl
4040

41-
SONIC_BULLSEYE_DOCKERS += $(DOCKER_NAT)
42-
SONIC_BULLSEYE_DBG_DOCKERS += $(DOCKER_NAT_DBG)
41+
SONIC_BOOKWORM_DOCKERS += $(DOCKER_NAT)
42+
SONIC_BOOKWORM_DBG_DOCKERS += $(DOCKER_NAT_DBG)

rules/iptables.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# iptables package
22

3-
IPTABLES_VERSION = 1.8.7
4-
IPTABLES_VERSION_SUFFIX = 1
3+
IPTABLES_VERSION = 1.8.9
4+
IPTABLES_VERSION_SUFFIX = 2
55
IPTABLES_VERSION_FULL = $(IPTABLES_VERSION)-$(IPTABLES_VERSION_SUFFIX)
66

77
IPTABLES = iptables_$(IPTABLES_VERSION_FULL)_$(CONFIGURED_ARCH).deb

src/iptables/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DERIVED_TARGETS = libip4tc2_$(IPTABLES_VERSION_FULL)_$(CONFIGURED_ARCH).deb \
1111
IPTABLES_URL = http://deb.debian.org/debian/pool/main/i/iptables
1212

1313
DSC_FILE = iptables_$(IPTABLES_VERSION_FULL).dsc
14-
ORIG_FILE = iptables_$(IPTABLES_VERSION).orig.tar.bz2
14+
ORIG_FILE = iptables_$(IPTABLES_VERSION).orig.tar.xz
1515
DEBIAN_FILE = iptables_$(IPTABLES_VERSION_FULL).debian.tar.xz
1616

1717
DSC_FILE_URL = $(IPTABLES_URL)/$(DSC_FILE)

0 commit comments

Comments
 (0)