SHARE
TWEET

Untitled

a guest Apr 24th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. # KALIMAN
  3. ADD ./kaliman_requirements.txt /tmp/kaliman_requirements.txt
  4.  
  5. # Build with:
  6. # docker build -t image_name --build-arg ARTIFACTORY_API_USER=$ARTIFACTORY_API_USER  --build-arg ARTIFACTORY_API_KEY=$ARTIFACTORY_API_KEY  .
  7. ARG ARTIFACTORY_API_USER
  8. ARG ARTIFACTORY_API_KEY
  9. ENV PIP_CONFIG_DIR /root/.pip
  10. ENV PIP_CONFIG_FILE ${PIP_CONFIG_DIR}/pip.conf
  11. RUN set -ex \
  12.     && mkdir -p $PIP_CONFIG_DIR \
  13.     && echo '[global]' >> $PIP_CONFIG_FILE \
  14.     && echo 'timeout = 60' >> $PIP_CONFIG_FILE \
  15.     && echo 'extra-index-url = https://pypi.org/simple' >> $PIP_CONFIG_FILE \
  16.     && echo "index-url = https://${ARTIFACTORY_API_USER}:${ARTIFACTORY_API_KEY}@globaldevtools.bbva.com/artifactory/api/pypi/devops-adoption-kaliman/simple" >> $PIP_CONFIG_FILE \
  17.     && PIP_CONFIG_FILE=$PIP_CONFIG_FILE pip install -r /tmp/kaliman_requirements.txt \
  18.     && rm -rf $PIP_CONFIG_DIR
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top