Skip to content

Commit

Permalink
Move to latest p4 container
Browse files Browse the repository at this point in the history
Signed-off-by: Salvatore Daniele <[email protected]>
  • Loading branch information
SalDaniele committed Oct 9, 2024
1 parent 2df7c7a commit 326edb8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions extraConfigDpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,13 @@ def ExtraConfigDpu(cc: ClustersConfig, cfg: ExtraConfigArgs, futures: dict[str,
if isinstance(vendor_plugin, IpuPlugin):
# TODO: Remove when this container is properly started by the vsp
# We need to manually start the p4 sdk container currently for the IPU plugin
img = "quay.io/sdaniele/intel-ipu-p4-sdk:temp_wa_5-28-24"
p4_img = "wsfd-advnetlab239.anl.eng.bos2.dc.redhat.com:5000/intel-ipu-p4-sdk:10-9-2024"
lh.run_or_die(f"podman pull --tls-verify=false {p4_img}")
lh.run_or_die(f"podman tag {p4_img} {imgReg.url}/intel-ipu-p4-sdk:10-9-2024")
lh.run_or_die(f"podman push {imgReg.url}/intel-ipu-p4-sdk:10-9-2024")
uname = acc.run("uname -r").out.strip()
logger.info("Manually starting P4 container")
cmd = f"podman run --network host -d --privileged --entrypoint='[\"/bin/sh\", \"-c\", \"sleep 5; sh /entrypoint.sh\"]' -v /lib/modules/{uname}:/lib/modules/{uname} -v data1:/opt/p4 {img}"
cmd = f"podman run --network host -d --privileged --entrypoint='[\"/bin/sh\", \"-c\", \"sleep 5; sh /entrypoint.sh\"]' -v /lib/modules/{uname}:/lib/modules/{uname} -v data1:/opt/p4 {imgReg.url}/intel-ipu-p4-sdk:10-9-2024"
acc.run_or_die(cmd)
# Build on the ACC since an aarch based server is needed for the build
# (the Dockerfile needs to be fixed to allow layered multi-arch build
Expand Down

0 comments on commit 326edb8

Please sign in to comment.