Skip to content

4.5.0 rocky10.0 #2

Merged
merged 2 commits into from
Jul 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ LABEL comanage_registry_src_url=${COMANAGE_REGISTRY_SRC_URL}
ARG COMANAGE_REGISTRY_DIR
ENV COMANAGE_REGISTRY_DIR=${COMANAGE_REGISTRY_DIR:-/srv/comanage-registry}

ARG CACHEDIR
ENV CACHEDIR=${CACHEDIR:-${COMANAGE_REGISTRY_DIR}/app/tmp/cache}

RUN yum -y update && yum -y install \
busybox \
&& yum clean -y all
Expand All @@ -23,12 +26,13 @@ RUN mkdir -p "${COMANAGE_REGISTRY_DIR}" \
&& wget -O comanage.tar.gz ${COMANAGE_REGISTRY_SRC_URL} \
&& tar -zxf comanage.tar.gz -C ${COMANAGE_REGISTRY_DIR} --strip-components=1 \
&& rm -f comanage.tar.gz \
# Setup the tmp directory
&& rm -rf ${COMANAGE_REGISTRY_DIR}/app/tmp \
&& cp -r ${COMANAGE_REGISTRY_DIR}/app/tmp.dist ${COMANAGE_REGISTRY_DIR}/app/tmp \
&& chown -R apache:apache ${COMANAGE_REGISTRY_DIR}/app/tmp \
&& cd ${COMANAGE_REGISTRY_DIR}/local \
&& ln -s ${COMANAGE_REGISTRY_DIR}/app/tmp tmp \
&& chown -h apache:apache ${COMANAGE_REGISTRY_DIR}/local/tmp \
# Setup the webroot directory. The permissions and the symbolic link under the appache root directory
&& chown -h apache:apache ${COMANAGE_REGISTRY_DIR}/app/webroot \
&& chown -h apache:apache ${COMANAGE_REGISTRY_DIR}/local/webroot \
&& cd /var/www/html \
&& ln -s ${COMANAGE_REGISTRY_DIR}/app/webroot registry

Expand Down