Skip to content

Commit

Permalink
[docker] Create image using released packages
Browse files Browse the repository at this point in the history
Before this commit, the image of Sir Mordred was
created downloading the sources of the GrimoireLab
components. With this change, the image is generated
using the packages defined for a GrimoireLab release.

Signed-off-by: Santiago Dueñas <sduenas@bitergia.com>
  • Loading branch information
sduenas committed Jun 7, 2022
1 parent 7d0b7b3 commit 4581007
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ USER ${DEPLOY_USER}
WORKDIR ${DEPLOY_USER_DIR}

RUN mkdir -p ${CONF_DIR} && \
wget https://raw.githubusercontent.com/chaoss/grimoirelab/master/releases/${GRIMOIRELAB_RELEASE} -O ${CONF_DIR}/requirements.cfg && \
git clone -b ${GRIMOIRELAB_RELEASE} --depth 1 https://github.com/grimoirelab/grimoirelab.git && \
cp grimoirelab/requirements.txt ${CONF_DIR}/requirements.txt && \
echo ${GRIMOIRELAB_RELEASE} > ${DEPLOY_USER_DIR}/release && \
git clone https://github.com/grimoirelab/grimoirelab.git --depth 1 && \
echo "Installing and checking GrimoireLab Release"
RUN sudo grimoirelab/utils/build_grimoirelab --build --install --check --install_system --relfile ${CONF_DIR}/requirements.cfg -l debug
RUN sudo pip install -r ${CONF_DIR}/requirements.txt

HEALTHCHECK --interval=60s --timeout=6s --retries=1 CMD healthcheck.py -c ${CONF_DIR}/setup.cfg -s 'Exception in Task Manager' || exit 1

Expand Down

0 comments on commit 4581007

Please sign in to comment.