mirror of
https://github.com/docker-library/haproxy.git
synced 2026-11-20 21:29:04 +03:00
Specify WORKDIR /var/lib/haproxy (#203)
* Specify WORKDIR /var/lib/haproxy Resolves docker-library/haproxy#200 * Explain WORKDIR reason
This commit is contained in:
1 parent
4be428c205
commit
079f579414
15 files changed
+54
No files matched your search
Generated
+3
@@ -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"]
|
||||
Generated
+3
@@ -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"]
|
||||
Generated
+3
@@ -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"]
|
||||
Generated
+3
@@ -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"]
|
||||
Generated
+3
@@ -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"]
|
||||
Generated
+3
@@ -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"]
|
||||
Generated
+3
@@ -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"]
|
||||
Generated
+3
@@ -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"]
|
||||
Generated
+3
@@ -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"]
|
||||
Generated
+3
@@ -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"]
|
||||
Generated
+4
@@ -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"]
|
||||
Generated
+4
@@ -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"]
|
||||
Generated
+4
@@ -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"]
|
||||
Generated
+4
@@ -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"]
|
||||
@@ -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"]
|
||||
Reference in new issue
Block a user