WSL/SLF GitLab Repository

Commit 7364c0be authored by Sam's avatar Sam
Browse files

fix adding ckan extensions and deps into pipenv

parent 2eecb67b
......@@ -52,14 +52,15 @@ RUN pip install --no-cache-dir pipenv==11.9.0 \
&& PIPENV_VENV_IN_PROJECT=1 pipenv install \
-r /opt/repos/ckan-forked/requirements.txt
# CKAN
RUN pipenv run python -m pip install -e \
"/opt/repos/ckan-forked"
RUN PIPENV_VENV_IN_PROJECT=1 pipenv run \
python -m pip install -e "/opt/repos/ckan-forked"
# Additional plugins
COPY envidat_extensions.* /opt/repos/
RUN chmod +x /opt/repos/envidat_extensions.sh \
&& /opt/repos/envidat_extensions.sh
RUN rm /opt/python/Pipfile /opt/python/Pipfile.lock
RUN PIPENV_VENV_IN_PROJECT=1 pipenv run \
python -m pip install -r "/opt/repos/envidat_extensions.txt" \
&& rm /opt/python/Pipfile /opt/python/Pipfile.lock
......
......@@ -7,7 +7,8 @@ while read -r repo_url; do
git clone --depth 1 "$repo_url" ./ckanext
if [ -f ./ckanext/requirements.txt ]; then
echo "Installing dependencies for $repo_url"
pip install -r ./ckanext/requirements.txt
PIPENV_VENV_IN_PROJECT=1 pipenv run \
python -m pip install -r "./ckanext/requirements.txt"
fi
rm -rf ./ckanext
done </opt/repos/envidat_extensions.txt
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment