Skip to content

Instantly share code, notes, and snippets.

@dhm116
Created June 24, 2013 20:01
Show Gist options
  • Save dhm116/5853089 to your computer and use it in GitHub Desktop.
Save dhm116/5853089 to your computer and use it in GitHub Desktop.
Sample Dockerfile resulting in `lookup failed` errors due to performing `make install` on the CDF library
from ubuntu
maintainer dhm116@arl.psu.edu
#run apt-get install -y python python-setuptools #python-numpy python-scipy python-pandas
#run python easy_install pip logbook gevent zerorpc
RUN apt-get -y update
RUN apt-get install -y -q software-properties-common
RUN apt-get install -y -q python-software-properties
RUN add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
RUN apt-get -y update
#SHIMS
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl
ENV DEBIAN_FRONTEND noninteractive
# EDITORS
RUN apt-get install -y -q vim
RUN apt-get install -y -q nano
# TOOLS
RUN apt-get install -y -q curl
RUN apt-get install -y -q git
RUN apt-get install -y -q make
RUN apt-get install -y -q wget
# BUILD
RUN apt-get install -y -q build-essential
RUN apt-get install -y -q g++
# ZEROMQ
#RUN apt-get install -y -q zeromq
RUN apt-get install -y -q libzmq-dev
RUN apt-get install -y -q python-zmq
# PYTHON
#RUN apt-get install -y -q python-software-properties
RUN apt-get install -y -q python
RUN apt-get install -y -q python-all-dev
RUN apt-get install -y -q python-distribute
RUN apt-get install -y -q python-pip
RUN apt-get install -y -q libevent-dev
RUN pip install --upgrade pip
RUN pip install logbook
#RUN pip install gevent
RUN easy_install greenlet
RUN easy_install gevent
RUN pip install zerorpc
RUN apt-get install -y -q python-numpy
RUN apt-get install -y -q python-scipy
RUN apt-get install -y -q python-pandas
#ADD spacepy-0.1.4.tar.gz /tmp/spacepy-0.1.4.tar.gz
#RUN cd /tmp && tar xvf spacepy-0.1.4.tar.gz
#RUN cd /tmp/spacepy-0.1.4 && python setup.py install
RUN mkdir -p /padrt/cdf/lib
ADD http://cdaweb.gsfc.nasa.gov/pub/software/cdf/dist/cdf34_1/linux/cdf34_1-dist-cdf.tar.gz /tmp/cdf34_1-dist-cdf.tar.gz
RUN cd /tmp && tar xvf cdf34_1-dist-cdf.tar.gz
RUN cd /tmp/cdf34_1-dist && make OS=linux ENV=gnu all
RUN cd /tmp/cdf34_1-dist && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment