-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from koumoul-dev/public_url
add public_url option
- Loading branch information
Showing
12 changed files
with
110 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Run tests inside docker without requiring full installation of dependencies on local machine | ||
# Simply run "docker build -f Dockerfile_test ." | ||
# WARNING: sometimes it fails with a core dumped exception | ||
|
||
FROM node:6-stretch | ||
MAINTAINER Petr Sloup <petr.sloup@klokantech.com> | ||
|
||
RUN apt-get -qq update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get -y install \ | ||
apt-transport-https \ | ||
curl \ | ||
unzip \ | ||
build-essential \ | ||
python \ | ||
libcairo2-dev \ | ||
libgles2-mesa-dev \ | ||
libgbm-dev \ | ||
libllvm3.9 \ | ||
libprotobuf-dev \ | ||
libxxf86vm-dev \ | ||
xvfb \ | ||
&& apt-get clean | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
RUN wget -O test_data.zip https://github.com/klokantech/tileserver-gl/releases/download/v1.3.0/test_data.zip | ||
RUN unzip -q test_data.zip -d test_data | ||
|
||
ENV NODE_ENV="test" | ||
|
||
COPY package.json . | ||
RUN npm install | ||
COPY / . | ||
RUN xvfb-run --server-args="-screen 0 1024x768x24" npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.