|
@@ -23,7 +23,7 @@ ENV NAME="hue" \
|
|
|
SUPERVISOR_VERSION=4.0.2
|
|
SUPERVISOR_VERSION=4.0.2
|
|
|
|
|
|
|
|
# create hue user
|
|
# create hue user
|
|
|
-RUN groupadd -g 1123 ${HUEUSER} && useradd -g 1123 -d ${HUE_HOME} -s /bin/bash -u 1123 ${HUEUSER}
|
|
|
|
|
|
|
+RUN groupadd -g 1000 ${HUEUSER} && useradd -g 1000 -d ${HUE_HOME} -s /bin/bash -u 1000 ${HUEUSER}
|
|
|
|
|
|
|
|
RUN mkdir -p ${HUE_LOG_DIR} && chown -R ${HUEUSER}:${HUEUSER} ${HUE_LOG_DIR}
|
|
RUN mkdir -p ${HUE_LOG_DIR} && chown -R ${HUEUSER}:${HUEUSER} ${HUE_LOG_DIR}
|
|
|
RUN echo "Include /etc/httpd/conf.d/hue_httpd.conf" >> /etc/httpd/conf/httpd.conf
|
|
RUN echo "Include /etc/httpd/conf.d/hue_httpd.conf" >> /etc/httpd/conf/httpd.conf
|
|
@@ -32,11 +32,13 @@ COPY static ${HUE_HOME}/build/static
|
|
|
COPY hue_httpd.conf /etc/httpd/conf.d/hue_httpd.conf
|
|
COPY hue_httpd.conf /etc/httpd/conf.d/hue_httpd.conf
|
|
|
COPY hue.conf /etc/httpd/conf.d/hue.conf
|
|
COPY hue.conf /etc/httpd/conf.d/hue.conf
|
|
|
COPY run_httpd.sh ${HUE_HOME}
|
|
COPY run_httpd.sh ${HUE_HOME}
|
|
|
|
|
+RUN sed -i "s|Listen 80|Listen 8080|g" /etc/httpd/conf/httpd.conf && sed -i "s|User apache|User hive|g" /etc/httpd/conf/httpd.conf && sed -i "s|Group apache|Group hive|g" /etc/httpd/conf/httpd.conf
|
|
|
RUN chown -R ${HUEUSER}:${HUEUSER} ${HUE_HOME}/build/static \
|
|
RUN chown -R ${HUEUSER}:${HUEUSER} ${HUE_HOME}/build/static \
|
|
|
/etc/httpd/conf.d/hue* \
|
|
/etc/httpd/conf.d/hue* \
|
|
|
${HUE_HOME}/run_httpd.sh && chmod -v +x ${HUE_HOME}/run_httpd.sh
|
|
${HUE_HOME}/run_httpd.sh && chmod -v +x ${HUE_HOME}/run_httpd.sh
|
|
|
|
|
+RUN mkdir -p /run && chown -R ${HUEUSER}:${HUEUSER} /run && mkdir -p /tmp/httpd && chown -R ${HUEUSER}:${HUEUSER} /tmp/httpd && chown -R ${HUEUSER}:${HUEUSER} /etc/httpd && chown -R ${HUEUSER}:${HUEUSER} /var/log && chown -R ${HUEUSER}:${HUEUSER} /etc/httpd/logs
|
|
|
|
|
|
|
|
-EXPOSE 80
|
|
|
|
|
|
|
+EXPOSE 8080
|
|
|
# https://httpd.apache.org/docs/2.4/stopping.html#gracefulstop
|
|
# https://httpd.apache.org/docs/2.4/stopping.html#gracefulstop
|
|
|
STOPSIGNAL SIGINT
|
|
STOPSIGNAL SIGINT
|
|
|
|
|
|