ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthijs van der Graaf (Jira)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-13673) Docker: EXTERNAL_LIBS not working
Date Wed, 04 Nov 2020 15:24:00 GMT
Matthijs van der Graaf created IGNITE-13673:
-----------------------------------------------

             Summary: 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


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)

Mime
View raw message