Fix docker run step
This commit is contained in:
parent
c43c043521
commit
1acde593b5
@ -1,13 +1,15 @@
|
|||||||
FROM ubuntu:14.04
|
FROM ubuntu:14.04
|
||||||
|
|
||||||
RUN apt-get update -y && \
|
RUN apt-get update -y
|
||||||
apt-get install -y build-essential git-core python-pip python-software-properties software-properties-common && \
|
RUN apt-get install -y build-essential git-core python-pip python-software-properties software-properties-common
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN apt-get -y install gcc-4.8 g++-4.8 curl automake gdb libtool make cmake pkg-config libboost1.55-dev llvm-3.4 \
|
RUN apt-get -y install gcc-4.8 g++-4.8 libboost1.55-all-dev llvm-3.4
|
||||||
protobuf-compiler libprotoc-dev libprotobuf7 libprotobuf-dev libbz2-dev libstxxl-dev libstxxl1 libxml2-dev \
|
RUN apt-get -y install protobuf-compiler libprotoc-dev libprotobuf-dev
|
||||||
libzip-dev lua5.1 liblua5.1-0-dev rubygems libtbb-dev libgdal-dev && \
|
RUN apt-get -y install libbz2-dev libstxxl-dev libstxxl1 libxml2-dev
|
||||||
pip install awscli
|
RUN apt-get -y install libzip-dev lua5.1 liblua5.1-0-dev libtbb-dev libgdal-dev ruby1.9
|
||||||
|
RUN apt-get -y install curl cmake
|
||||||
|
|
||||||
|
RUN pip install awscli
|
||||||
|
|
||||||
# luabind
|
# luabind
|
||||||
RUN curl https://gist.githubusercontent.com/DennisOSRM/f2eb7b948e6fe1ae319e/raw/install-luabind.sh | sudo bash
|
RUN curl https://gist.githubusercontent.com/DennisOSRM/f2eb7b948e6fe1ae319e/raw/install-luabind.sh | sudo bash
|
||||||
|
@ -10,6 +10,6 @@ docker build \
|
|||||||
docker run \
|
docker run \
|
||||||
-i \
|
-i \
|
||||||
-e "CXX=g++" \
|
-e "CXX=g++" \
|
||||||
-v `pwd`:/home/mapbox/build \
|
-v `pwd`:/home/mapbox/osrm-backend \
|
||||||
-t mapbox/osrm:linux \
|
-t mapbox/osrm:linux \
|
||||||
build/docker/test.sh
|
osrm-backend/docker/test.sh
|
||||||
|
@ -7,11 +7,13 @@ export TRAVIS_OS_NAME=linux
|
|||||||
export CMAKEOPTIONS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++-4.8"
|
export CMAKEOPTIONS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++-4.8"
|
||||||
export OSRM_PORT=5000
|
export OSRM_PORT=5000
|
||||||
export OSRM_TIMEOUT=60
|
export OSRM_TIMEOUT=60
|
||||||
|
export PATH=$PATH:/home/mapbox/.gem/ruby/1.9.1/bin:/home/mapbox/osrm-backend/vendor/bundle/ruby/1.9.1/bin
|
||||||
|
export BRANCH=develop
|
||||||
|
|
||||||
rvm use 1.9.3
|
cd /home/mapbox/osrm-backend
|
||||||
gem install bundler
|
gem install --user-install bundler
|
||||||
bundle install
|
bundle install --path vendor/bundle
|
||||||
|
[ -d build ] && rm -rf build
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
cmake .. $CMAKEOPTIONS -DBUILD_TOOLS=1
|
cmake .. $CMAKEOPTIONS -DBUILD_TOOLS=1
|
||||||
@ -21,4 +23,4 @@ make tests -j`nproc`
|
|||||||
./datastructure-tests
|
./datastructure-tests
|
||||||
./algorithm-tests
|
./algorithm-tests
|
||||||
cd ..
|
cd ..
|
||||||
cucumber -p verify
|
bundle exec cucumber -p verify
|
||||||
|
Loading…
Reference in New Issue
Block a user