Skip to content

Commit

Permalink
Remove p2p user by default
Browse files Browse the repository at this point in the history
  • Loading branch information
felichita committed Jul 1, 2024
1 parent e4b18ef commit df60a3a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions dockerfile/cosmos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ COPY --from=build-env /root/bin /bin
# Install libraries
COPY --from=build-env /root/lib /lib

# Install p2p user
RUN addgroup --gid 1111 -S p2p && adduser --uid 1111 -S p2p -G p2p
RUN chown 1111:1111 -R /home/p2p
RUN chown 1111:1111 -R /etc/apk
RUN chown 1111:1111 -R /tmp
# # Install p2p user
# RUN addgroup --gid 1111 -S p2p && adduser --uid 1111 -S p2p -G p2p
# RUN chown 1111:1111 -R /home/p2p
# RUN chown 1111:1111 -R /etc/apk
# RUN chown 1111:1111 -R /tmp

WORKDIR /home/p2p
USER p2p
# USER p2p
12 changes: 6 additions & 6 deletions dockerfile/cosmos/local.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ WORKDIR /bin
# Install jq
COPY --from=infra-toolkit /usr/local/bin/jq /bin/

# Install p2p user
COPY --from=infra-toolkit /etc/passwd /etc/passwd
COPY --from=infra-toolkit --chown=1111:1111 /home/p2p /home/p2p
COPY --from=infra-toolkit --chown=1111:1111 /etc/apk /etc/apk
COPY --from=infra-toolkit --chown=1111:1111 /tmp /tmp
# # Install p2p user
# COPY --from=infra-toolkit /etc/passwd /etc/passwd
# COPY --from=infra-toolkit --chown=1111:1111 /home/p2p /home/p2p
# COPY --from=infra-toolkit --chown=1111:1111 /etc/apk /etc/apk
# COPY --from=infra-toolkit --chown=1111:1111 /tmp /tmp

# Install chain binary
FROM init-env AS build-env
Expand Down Expand Up @@ -129,4 +129,4 @@ COPY --from=build-env /root/bin /bin
COPY --from=build-env /root/lib /lib

WORKDIR /home/p2p
USER p2p
# USER p2p
12 changes: 6 additions & 6 deletions dockerfile/cosmos/localcross.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ COPY --from=build-env /root/bin /bin
# Install libraries
COPY --from=build-env /root/lib /lib

# Install p2p user
RUN addgroup --gid 1111 -S p2p && adduser --uid 1111 -S p2p -G p2p
RUN chown 1111:1111 -R /home/p2p
RUN chown 1111:1111 -R /etc/apk
RUN chown 1111:1111 -R /tmp
# # Install p2p user
# RUN addgroup --gid 1111 -S p2p && adduser --uid 1111 -S p2p -G p2p
# RUN chown 1111:1111 -R /home/p2p
# RUN chown 1111:1111 -R /etc/apk
# RUN chown 1111:1111 -R /tmp

WORKDIR /home/p2p
USER p2p
# USER p2p
12 changes: 6 additions & 6 deletions dockerfile/cosmos/native.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ COPY --from=build-env /root/bin /bin
# Install libraries
COPY --from=build-env /root/lib /lib

# Install p2p user
RUN addgroup --gid 1111 -S p2p && adduser --uid 1111 -S p2p -G p2p
RUN chown 1111:1111 -R /home/p2p
RUN chown 1111:1111 -R /etc/apk
RUN chown 1111:1111 -R /tmp
# # Install p2p user
# RUN addgroup --gid 1111 -S p2p && adduser --uid 1111 -S p2p -G p2p
# RUN chown 1111:1111 -R /home/p2p
# RUN chown 1111:1111 -R /etc/apk
# RUN chown 1111:1111 -R /tmp

WORKDIR /home/p2p
USER p2p
# USER p2p

0 comments on commit df60a3a

Please sign in to comment.