forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spice-proxy: move spice-proxy to kubevirt repository
- add spice-proxy Dockerfile - run spice-proxy as non-root user, part of the fix for kubevirt#113 Signed-off-by: Lukianov Artyom <[email protected]>
- Loading branch information
Lukianov Artyom
committed
Jul 3, 2017
1 parent
0102edd
commit 19331a7
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM centos:7.2.1511 | ||
|
||
MAINTAINER Roman Mohr <[email protected]> | ||
|
||
EXPOSE 3128 | ||
|
||
RUN yum install -y squid && yum clean all | ||
|
||
RUN sed -i -e "s/http_access deny CONNECT !SSL_ports/http_access deny CONNECT !Safe_ports/" /etc/squid/squid.conf | ||
RUN echo "pid_filename /home/proxy/run/squid.pid" >> /etc/squid/squid.conf | ||
|
||
RUN useradd --create-home -s /bin/bash proxy | ||
RUN chown -R proxy /var/log/squid && chown -R proxy /var/spool/squid | ||
RUN cp /etc/squid/squid.conf /home/proxy && chown proxy /home/proxy/squid.conf | ||
WORKDIR /home/proxy | ||
USER proxy | ||
RUN mkdir /home/proxy/run | ||
|
||
CMD squid -NCd1 -f /home/proxy/squid.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters