Skip to content
Permalink
Browse files

switch to racemap docker repo

  • Loading branch information...
normanrz committed May 25, 2019
1 parent 3e76258 commit 3b2f26df41ce34fc0c7bf807998a7414e43dea45
Showing with 13 additions and 13 deletions.
  1. +11 −11 .circleci/config.yml
  2. +2 −2 README.md
@@ -7,14 +7,14 @@ jobs:

- run:
name: Build docker container
command: docker build -t "normanrz/elevation-service:${CIRCLE_BUILD_NUM}" .
command: docker build -t "racemap/elevation-service:${CIRCLE_BUILD_NUM}" .

- run:
name: Run unit tests
command: |
docker run \
--rm \
"normanrz/elevation-service:${CIRCLE_BUILD_NUM}" \
"racemap/elevation-service:${CIRCLE_BUILD_NUM}" \
yarn test
- run:
@@ -26,7 +26,7 @@ jobs:
-eTILE_SET_PATH=s3:// \
-p3000:3000 \
--name elevation \
"normanrz/elevation-service:${CIRCLE_BUILD_NUM}"
"racemap/elevation-service:${CIRCLE_BUILD_NUM}"
sleep 5
RESULT=$(curl \
-d '[[51.3, 13.4], [51.4, 13.3]]' \
@@ -51,7 +51,7 @@ jobs:
-p3000:3000 \
--name elevation \
-v$(pwd)/data:/app/data \
"normanrz/elevation-service:${CIRCLE_BUILD_NUM}"
"racemap/elevation-service:${CIRCLE_BUILD_NUM}"
sleep 5
RESULT=$(curl \
-d '[[51.3, 13.4], [51.4, 13.3]]' \
@@ -68,15 +68,15 @@ jobs:
command: |
echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
docker tag \
"normanrz/elevation-service:${CIRCLE_BUILD_NUM}" \
"normanrz/elevation-service:${CIRCLE_BRANCH}"
docker push "normanrz/elevation-service:${CIRCLE_BUILD_NUM}"
docker push "normanrz/elevation-service:${CIRCLE_BRANCH}"
"racemap/elevation-service:${CIRCLE_BUILD_NUM}" \
"racemap/elevation-service:${CIRCLE_BRANCH}"
docker push "racemap/elevation-service:${CIRCLE_BUILD_NUM}"
docker push "racemap/elevation-service:${CIRCLE_BRANCH}"
if [ "${CIRCLE_BRANCH}" == "master" ]; then
docker tag \
"normanrz/elevation-service:${CIRCLE_BUILD_NUM}" \
"normanrz/elevation-service:latest"
docker push "normanrz/elevation-service:latest"
"racemap/elevation-service:${CIRCLE_BUILD_NUM}" \
"racemap/elevation-service:latest"
docker push "racemap/elevation-service:latest"
fi
docker logout
@@ -39,15 +39,15 @@ aws s3 cp --recursive s3://elevation-tiles-prod/skadi /path/to/data/folder
Run the docker container:

```bash
docker run --rm -v/path/to/data/folder:/app/data -p3000:3000 normanrz/elevation-service
docker run --rm -v/path/to/data/folder:/app/data -p3000:3000 racemap/elevation-service
```

## Usage with S3-hosted data

Run the docker container:

```bash
docker run --rm -eTILE_SET_PATH=s3:// -p3000:3000 normanrz/elevation-service
docker run --rm -eTILE_SET_PATH=s3:// -p3000:3000 racemap/elevation-service
```

## License

0 comments on commit 3b2f26d

Please sign in to comment.
You can’t perform that action at this time.