Skip to content

Instantly share code, notes, and snippets.

@leoh0
Last active October 8, 2016 12:12
Show Gist options
  • Select an option

  • Save leoh0/4ac1d603e18f75d847a9f77d128b34da to your computer and use it in GitHub Desktop.

Select an option

Save leoh0/4ac1d603e18f75d847a9f77d128b34da to your computer and use it in GitHub Desktop.
FROM tox-openstack-base:latest
WORKDIR /app
ARG BRANCH=kilo
ARG PROJECT
ENV UPPER_CONSTRAINTS_FILE=/upper-constraints.txt
RUN mkdir -p /temp/ && git clone -b kakao/$BRANCH https://github.com/openstack/requirements.git /temp/ && mv /temp/upper-constraints.txt ../ && rm -rf /temp/
RUN git clone -b kakao/$BRANCH https://github.com/openstack/$PROJECT.git /app/
RUN tox -e py27 --notest
RUN mv /app/.tox /.tox && rm -rf /app && mkdir -p /app
ONBUILD COPY . /app
ONBUILD RUN ln -s ../.tox .
FROM ubuntu:16.04
MAINTAINER Eohyung Lee ([email protected])
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -yqq install \
build-essential python-pip software-properties-common \
python-dev git
RUN echo "krb5-config krb5-config/default_realm string MYDOMAIN.COM" | debconf-set-selections && \
echo "krb5-config krb5-config/kerberos_servers string krbserver.mydomain.com" | debconf-set-selections && \
echo "krb5-config krb5-config/admin_server string krbserver.mydomain.com" | debconf-set-selections && \
apt-get -yqq install libmysqlclient-dev libxml2-dev \
libxslt1-dev mysql-client libpq-dev libvirt-dev \
libnspr4-dev pkg-config libsqlite3-dev libzmq-dev \
libffi-dev libldap2-dev libsasl2-dev ccache \
krb5-config libkrb5-dev libssl-dev liberasurecode-dev \
libjpeg8-dev curl
RUN pip install tox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment