Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add group ziti to container images #804

Merged
merged 2 commits into from
Feb 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ RUN mkdir -m0755 /licenses
COPY ./LICENSE-Apache /licenses/apache.txt

### Add necessary Red Hat repos and packages
RUN INSTALL_PKGS="iproute procps" && \
RUN INSTALL_PKGS="iproute procps shadow-utils" && \
qrkourier marked this conversation as resolved.
Show resolved Hide resolved
microdnf -y update --setopt=install_weak_deps=0 --setopt=tsflags=nodocs && \
microdnf -y install --setopt=install_weak_deps=0 --setopt=tsflags=nodocs ${INSTALL_PKGS}
qrkourier marked this conversation as resolved.
Show resolved Hide resolved

Expand All @@ -49,6 +49,10 @@ COPY --from=fetch-ziti-artifacts /tmp/ziti-edge-tunnel /usr/local/bin
COPY ./docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
RUN mkdir -m0777 /ziti-edge-tunnel
RUN groupadd --system --gid 2171 ziti

RUN UNINSTALL_PKGS="shadow-utils" && \
microdnf -y remove ${UNINSTALL_PKGS}

ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "run" ]
Loading