ynishi/stack-build-docker-compose


docker-compose for stack-build image

License: MIT

Language: Makefile

Keywords: docker-compose, haskell, stack


stack-build-docker-compose

docker-compose for stack-build image

Usage

  • short cut is made with make
$ make usage

ghci

$ docker-compose run stack stack ghci
# or
$ make ghci
# with args
$ make ghci ARGS='--package mtl'
# in project
$ make do COMM=ghci PRJ=${PROJECT_NAME}

create new project

$ docker-compose run stack stack new ${PROJECT_NAME}
# or 
$ make new PRJ=${PROJECT_NAME}

build

$ docker-compose run --workdir=/stack/${PROJECT_NAME} stack stack build
# or
$ make build PRJ=${PROJECT_NAME}

exec

$ docker-compose run --workdir=/stack/${PROJECT_NAME} stack stack exec ${PROJECT_NAME}-exe
# or
$ make exec PRJ=${PROJECT_NAME}

do stack command

$ docker-compose run --workdir=/stack/${PROJECT_NAME} stack stack ${COMMAND} ${ARGS}
# or
$ make do PRJ=${PROJECT_NAME} COMM=${COMMAND} ARGS=${ARGS}

LICENSE

  • MIT, see LICENSE

Project Statistics

Sourcerank 3
Repository Size 9.77 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Yutaka Nishimura

Something wrong with this page? Make a suggestion

Last synced: 2018-05-05 17:57:22 UTC

Login to resync this repository