forked from perrygeo/docker-gdal-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (25 loc) · 870 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SHELL = /bin/bash
TAG ?= latest
all: build
build:
docker build --tag perrygeo/gdal-base:$(TAG) --file Dockerfile .
docker tag perrygeo/gdal-base:$(TAG) perrygeo/gdal-base:latest
test:
# TODO fix https://api.travis-ci.com/v3/job/166029093/log.txt
# # Test image inheritance and multistage builds
# # Problem: Dockerfile should be FROM ???, need to build against TAG from the build step
# cd tests && docker build --tag test-gdal-base-multistage --file Dockerfile.test .
# docker run --rm \
# --volume $(shell pwd)/:/app \
# test-gdal-base-multistage \
# /app/tests/run_multistage_tests.sh
# Test GDAL CLI, etc on the base image itself
docker run --rm \
--volume $(shell pwd)/:/app \
perrygeo/gdal-base:$(TAG) \
/app/tests/run_tests.sh
shell: build
docker run --rm -it \
--volume $(shell pwd)/:/app \
perrygeo/gdal-base:$(TAG) \
/bin/bash