| # |
| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| # |
| |
| # Gets the latest Ubuntu from dockerhub |
| FROM ubuntu:latest |
| |
| MAINTAINER "dev@qpid.apache.org" |
| |
| # Install all the required packages. Some in this list were picked off from proton's INSTALL.md (https://github.com/apache/qpid-proton/blob/master/INSTALL.md) and the rest are from dispatch (https://github.com/apache/qpid-dispatch/blob/master/README) |
| RUN apt-get update && apt-get -y install gcc cmake cmake-curses-gui uuid-dev libssl-dev libsasl2-2 libsasl2-dev swig python-dev ruby-dev libperl-dev git make doxygen valgrind emacs |
| |
| # Create a main directory and clone the qpid-proton repo from github |
| RUN mkdir /main && cd /main && git clone https://github.com/apache/qpid-proton.git && cd /main/qpid-proton && mkdir /main/qpid-proton/build |
| |
| WORKDIR /main/qpid-proton/build |
| |
| # make and install proton |
| RUN cmake .. -DSYSINSTALL_BINDINGS=ON -DCMAKE_INSTALL_PREFIX=/usr -DSYSINSTALL_PYTHON=ON && make install |
| |
| # Clone the qpid-dispatch git repo |
| RUN cd /main && git clone https://github.com/apache/qpid-dispatch.git && mkdir /main/qpid-dispatch/build |
| |
| WORKDIR /main/qpid-dispatch/build |
| RUN cmake .. -DCMAKE_INSTALL_PREFIX=/usr && make install |
| |
| # Add site-packages to the PYTHONPATH environment variable. This is because Ubuntu does not list the site-packages folder in the sys.path |
| ENV PYTHONPATH=/usr/lib/python2.7/site-packages |
| |
| # Uncomment the following line if you would like to run all the dispatch unit tests and system tests. |
| # RUN ctest -VV |
| |
| # Start the dispatch router |
| CMD ["qdrouterd"] |