Skip to content

Instantly share code, notes, and snippets.

@intlabs
Created December 9, 2016 16:57
Show Gist options
  • Save intlabs/dc8b14c09afab8132b18c3a9605b2483 to your computer and use it in GitHub Desktop.
Save intlabs/dc8b14c09afab8132b18c3a9605b2483 to your computer and use it in GitHub Desktop.
ubuntu kolla-build experiments
FROM ubuntu:16.04
RUN apt-get update && \
apt-get install -y \
build-essential \
git \
git-review \
python-virtualenv \
python-dev \
python-pip \
gcc \
libssl-dev \
libffi-dev \
crudini \
jq \
sshpass \
hostname \
docker.io
WORKDIR /root
RUN git clone http://git.openstack.org/openstack/kolla.git ./kolla
RUN mkdir -p .venv && \
virtualenv .venv/Kolla-Kube && \
. .venv/Kolla-Kube/bin/activate && \
cd ./kolla && \
pip install -e . && \
oslo-config-generator --config-file etc/oslo-config-generator/kolla-build.conf && \
mkdir -p /etc/kolla && \
mv etc/kolla/kolla-build.conf /etc/kolla && \
crudini --set /etc/kolla/kolla-build.conf DEFAULT base ubuntu && \
crudini --set /etc/kolla/kolla-build.conf DEFAULT install_type source && \
crudini --set /etc/kolla/kolla-build.conf DEFAULT threads 1 && \
crudini --set /etc/kolla/kolla-build.conf DEFAULT namespace peaches
RUN echo "#/bin/sh" > /start.sh && \
echo "cd /root" >> /start.sh && \
echo ". .venv/Kolla-Kube/bin/activate" >> /start.sh && \
echo "bash" >> /start.sh && \
chmod +x /start.sh
ENTRYPOINT ["/start.sh"]
LABEL org.label-schema.docker.cmd="docker run -it -v /var/run/docker.sock:/var/run/docker.sock:rw <image_id>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment