2018-10-18 05:03:28 +02:00
|
|
|
FROM photon:2.0
|
2018-07-19 10:47:05 +02:00
|
|
|
|
2018-10-18 05:03:28 +02:00
|
|
|
RUN tdnf install -y shadow sudo >>/dev/null\
|
2018-07-19 10:47:05 +02:00
|
|
|
&& tdnf clean all \
|
|
|
|
&& mkdir /chartserver/ \
|
2018-11-09 08:02:59 +01:00
|
|
|
&& mkdir /harbor/ \
|
2018-07-19 10:47:05 +02:00
|
|
|
&& groupadd -r -g 10000 chartuser \
|
|
|
|
&& useradd --no-log-init -m -r -g 10000 -u 10000 chartuser
|
2018-09-03 11:40:26 +02:00
|
|
|
COPY ./make/photon/chartserver/binary/chartm /chartserver/
|
|
|
|
COPY ./make/photon/chartserver/docker-entrypoint.sh /docker-entrypoint.sh
|
2018-11-09 08:02:59 +01:00
|
|
|
COPY ./make/photon/common/install_cert.sh /harbor
|
2018-07-19 10:47:05 +02:00
|
|
|
|
2018-08-20 11:00:40 +02:00
|
|
|
VOLUME ["/chart_storage"]
|
2018-07-19 10:47:05 +02:00
|
|
|
EXPOSE 9999
|
|
|
|
|
|
|
|
RUN chown -R 10000:10000 /chartserver \
|
|
|
|
&& chmod u+x /chartserver/chartm \
|
|
|
|
&& chmod u+x /docker-entrypoint.sh
|
|
|
|
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -sS 127.0.0.1:9999/health || exit 1
|
|
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|