You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Matthijs van der Graaf (Jira)" <ji...@apache.org> on 2020/11/04 15:49:00 UTC
[jira] [Updated] (IGNITE-13673) Docker: EXTERNAL_LIBS not working
[ https://issues.apache.org/jira/browse/IGNITE-13673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthijs van der Graaf updated IGNITE-13673:
--------------------------------------------
Attachment: patch.diff
> Docker: EXTERNAL_LIBS not working
> ---------------------------------
>
> Key: IGNITE-13673
> URL: https://issues.apache.org/jira/browse/IGNITE-13673
> Project: Ignite
> Issue Type: Bug
> Components: build
> Affects Versions: 2.9
> Reporter: Matthijs van der Graaf
> Priority: Major
> Attachments: patch.diff
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> There are a few issues
> * wget not being compatible
> * "${IGNITE_HOME}"/libs/external does not exist
> * Then `run.sh` is not working properly for downloading external libs.
> Fix for `run.sh`
> {code:bash}
> #
> # Add external libs to classpath
> #
> if [ -n "${EXTERNAL_LIBS}" ]; then
> IFS=, LIBS_LIST=("${EXTERNAL_LIBS}")
> for lib in "${LIBS_LIST[@]}"; do
> echo "${lib}" >> /tmp/external_libs
> done
> mkdir -p "${IGNITE_HOME}"/libs/external
> wget --content-disposition -i /tmp/external_libs -P "${IGNITE_HOME}"/libs/external
> rm /tmp/external_libs
> LIBS=$(JARS=("${IGNITE_HOME}/libs/external"/*); IFS=:; echo "${JARS[*]}")
> if [ -z "${USER_LIBS}" ]; then
> export USER_LIBS="${LIBS}"
> else
> export USER_LIBS="${USER_LIBS}:${LIBS}"
> fi
> fi
> {code}
> Fix for wget in `Dockerfile`
> {code:bash}
> # Add missing software
> RUN apk --no-cache \
> add bash wget
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)