Add docker tasks.

master
Shunsuke Michii 9 years ago
parent 5a45e720fb
commit ad17bf0e32

@ -2,7 +2,6 @@ FROM alpine:3.4
RUN apk add --no-cache g++ make go RUN apk add --no-cache g++ make go
RUN mkdir -p /tmp/go-lbiwebp RUN mkdir -p /tmp/go-lbiwebp
COPY Makefile /tmp/go-libwebp/Makefile COPY Makefile /tmp/go-libwebp/Makefile

@ -1,5 +1,6 @@
BUILDDIR=/tmp BUILDDIR=/tmp
WORKDIR=github.com/harukasan/go-libwebp WORKDIR=github.com/harukasan/go-libwebp
CURDIR=$(shell pwd)
all: test all: test
@ -17,7 +18,20 @@ libwebp:
&& make install \ && make install \
) )
docker-test:
docker run -v ${CURDIR}:/go/src/github.com/harukasan/go-libwebp -it go-libwebp
docker-sh:
docker run -v ${CURDIR}:/go/src/github.com/harukasan/go-libwebp -it go-libwebp sh
docker-build:
docker build -t go-libwebp .
.PHONY: \ .PHONY: \
all \ all \
test test \
docker-test \
docker-sh \
docker-build

Loading…
Cancel
Save