Skip to content

Commit

Permalink
[ATMOSPHERE-498]add user and group to ovn container image to rebuild …
Browse files Browse the repository at this point in the history
…for dpdk file ac… (#2024)

fix #1982

Reviewed-by: Mohammed Naser <[email protected]>
  • Loading branch information
yaguangtang authored Oct 25, 2024
1 parent f2ab55e commit 9569f73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions images/ovn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,11 @@ EOF
COPY --from=ovn-kubernetes --link /src/dist/images/ovndb-raft-functions.sh /root/ovndb-raft-functions.sh
COPY --from=ovn-kubernetes --link /src/dist/images/ovnkube.sh /root/ovnkube.sh
COPY --from=ovn-kubernetes --link /usr/bin/ovn-kube-util /usr/bin/ovn-kube-util

ARG PROJECT
ENV OVS_USER_ID=42424
RUN \
groupadd -g 42424 ${PROJECT} && \
useradd -u 42424 -g 42424 -M -d /var/lib/${PROJECT} -s ${SHELL} -c "${PROJECT} User" ${PROJECT} && \
mkdir -p /etc/${PROJECT} /var/log/${PROJECT} /var/lib/${PROJECT} /var/cache/${PROJECT} && \
chown -Rv ${PROJECT}:${PROJECT} /etc/${PROJECT} /var/log/${PROJECT} /var/lib/${PROJECT} /var/cache/${PROJECT}
2 changes: 2 additions & 0 deletions zuul.d/container-images/ovn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
- linux/amd64
build_args:
- "RELEASE={{ zuul.branch | replace('stable/', '') }}"
- PROJECT=ovn
- OVN_COMPONENT=central
tags:
- "{{ zuul.branch | replace('stable/', '') }}"
Expand All @@ -52,6 +53,7 @@
- linux/arm64
build_args:
- "RELEASE={{ zuul.branch | replace('stable/', '') }}"
- PROJECT=ovn
- OVN_COMPONENT=host
tags:
- "{{ zuul.branch | replace('stable/', '') }}"
Expand Down

0 comments on commit 9569f73

Please sign in to comment.