Skip to content

Commit 92cfc06

Browse files
oktalzGopher Bot
authored andcommitted
CLEANUP/MINOR: resolve warnings during docker build
1 parent 11cd38e commit 92cfc06

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

build/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ COPY --from=builder-c /src/haproxy_wrapper /usr/local/sbin/haproxy_wrapper
5454
RUN apk --no-cache add socat openssl util-linux htop tzdata curl libcap && \
5555
rm -f /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi /etc/haproxy/dataplaneapi.yml && \
5656
rm -f /usr/local/bin/dataplaneapi-v2 /usr/bin/dataplaneapi-v2 && \
57-
chgrp -R haproxy /usr/local/etc/haproxy /run /var /usr/local/sbin/haproxy_wrapper && \
58-
chmod -R ug+rwx /usr/local/etc/haproxy /run /var /usr/local/sbin/haproxy_wrapper && \
57+
chown -R "${S6_USER}:${S6_GROUP}" /usr/local/etc/haproxy /run /var && \
58+
chmod -R ug+rwx /usr/local/etc/haproxy /run /var && \
59+
chmod u+rx /usr/local/sbin/haproxy_wrapper && \
5960
setcap 'cap_net_bind_service=+ep' /usr/local/sbin/haproxy_wrapper && \
6061
case "${TARGETPLATFORM}" in \
6162
"linux/arm64") S6_ARCH=aarch64 ;; \

build/Dockerfile.dev

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ COPY --from=builder-c /src/haproxy_wrapper /usr/local/sbin/haproxy_wrapper
3333

3434
RUN apk --no-cache add socat openssl util-linux htop tzdata curl libcap && \
3535
rm -f /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi /etc/haproxy/dataplaneapi.yml && \
36-
chgrp -R haproxy /usr/local/etc/haproxy /run /var /usr/local/sbin/haproxy_wrapper && \
37-
chmod -R ug+rwx /usr/local/etc/haproxy /run /var /usr/local/sbin/haproxy_wrapper && \
36+
chown -R "${S6_USER}:${S6_GROUP}" /usr/local/etc/haproxy /run /var && \
37+
chmod -R ug+rwx /usr/local/etc/haproxy /run /var && \
38+
chmod u+rx /usr/local/sbin/haproxy_wrapper && \
3839
setcap 'cap_net_bind_service=+ep' /usr/local/sbin/haproxy_wrapper && \
3940
case "${TARGETPLATFORM}" in \
4041
"linux/arm64") S6_ARCH=aarch64 ;; \

build/Dockerfile.pebble

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ COPY --from=builder-c /src/haproxy_wrapper /usr/local/sbin/haproxy_wrapper
4949

5050
RUN apk --no-cache add socat openssl util-linux htop tzdata curl libcap && \
5151
rm -f /usr/local/bin/dataplaneapi /usr/bin/dataplaneapi && \
52-
chgrp -R haproxy /usr/local/etc/haproxy /run /var /usr/local/sbin/haproxy_wrapper && \
53-
chmod -R ug+rwx /usr/local/etc/haproxy /run /var /usr/local/sbin/haproxy_wrapper && \
52+
chown -R "${S6_USER}:${S6_GROUP}" /usr/local/etc/haproxy /run /var && \
53+
chmod -R ug+rwx /usr/local/etc/haproxy /run /var && \
54+
chmod u+rx /usr/local/sbin/haproxy_wrapper && \
5455
setcap 'cap_net_bind_service=+ep' /usr/local/sbin/haproxy_wrapper && \
5556
chown -R haproxy:haproxy /var/lib/pebble/default && \
5657
chmod ugo+rwx /var/lib/pebble/default/* && \

0 commit comments

Comments
 (0)