Specify WORKDIR /var/lib/haproxy (#203)

* Specify WORKDIR /var/lib/haproxy

Resolves docker-library/haproxy#200

* Explain WORKDIR reason
This commit is contained in:
Tim Düsterhus authored and GitHub committed 2023-01-20 15:11:23 -08:00
1 parent 4be428c205
commit 079f579414
15 files changed
+54

No files matched your search

+3
View File
@@ -100,4 +100,7 @@ RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]
# no USER for backwards compatibility (to try to avoid breaking existing users)
# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+3
View File
@@ -93,4 +93,7 @@ RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]
# no USER for backwards compatibility (to try to avoid breaking existing users)
# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+3
View File
@@ -100,4 +100,7 @@ RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]
# no USER for backwards compatibility (to try to avoid breaking existing users)
# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+3
View File
@@ -93,4 +93,7 @@ RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
ENTRYPOINT ["docker-entrypoint.sh"]
# no USER for backwards compatibility (to try to avoid breaking existing users)
# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+3
View File
@@ -96,4 +96,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
USER haproxy
# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+3
View File
@@ -89,4 +89,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
USER haproxy
# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+3
View File
@@ -96,4 +96,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
USER haproxy
# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+3
View File
@@ -89,4 +89,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
USER haproxy
# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+3
View File
@@ -96,4 +96,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
USER haproxy
# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+3
View File
@@ -89,4 +89,7 @@ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
USER haproxy
# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+4
View File
@@ -96,4 +96,8 @@ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
USER haproxy
# https://github.com/docker-library/haproxy/issues/200
WORKDIR /var/lib/haproxy
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+4
View File
@@ -89,4 +89,8 @@ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
USER haproxy
# https://github.com/docker-library/haproxy/issues/200
WORKDIR /var/lib/haproxy
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+4
View File
@@ -96,4 +96,8 @@ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
USER haproxy
# https://github.com/docker-library/haproxy/issues/200
WORKDIR /var/lib/haproxy
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+4
View File
@@ -89,4 +89,8 @@ COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
USER haproxy
# https://github.com/docker-library/haproxy/issues/200
WORKDIR /var/lib/haproxy
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]
+8
View File
@@ -170,4 +170,12 @@ ENTRYPOINT ["docker-entrypoint.sh"]
{{ ) else ( -}}
USER haproxy
{{ ) end -}}
{{ if [ "2.0", "2.2", "2.4", "2.5", "2.6" ] | index(env.version) then ( -}}
# no WORKDIR for backwards compatibility (to try to avoid breaking existing users)
{{ ) else ( -}}
# https://github.com/docker-library/haproxy/issues/200
WORKDIR /var/lib/haproxy
{{ ) end -}}
CMD ["haproxy", "-f", "/usr/local/etc/haproxy/haproxy.cfg"]