Commit 675ba10c authored by Jonas Busse's avatar Jonas Busse

some changes in linux and unix dockercalls. need to modify windows scripts also

parent e3895853
Pipeline #180 canceled with stage
@echo off
REM @FOR /f "tokens=*" %i IN ('docker-machine env dev') DO @%i
docker run -e DRHASKELLHOSTPATH=%cd% -v %cd%:/tmp/drhaskell-src -it jonasbusse/drhaskell drhaskell-lint %1 %2 %3
\ No newline at end of file
docker run -e DRHASKELLHOSTPATH=%cd% --rm -v %cd%:/tmp/drhaskell-src -it jonasbusse/drhaskell drhaskell-lint %1 %2 %3
\ No newline at end of file
#!/bin/bash
dname=""
for arg in "$@"
do
if [ -e $arg ]
then
dname=$(dirname "$arg")
fi
done
eval $(docker-machine env)
docker run -e DRHASKELLHOSTPATH=$(pwd) -v $(pwd)/:/tmp/drhaskell-src -it jonasbusse/drhaskell:latest drhaskell-lint $1 $2 $3
\ No newline at end of file
docker run -e DRHASKELLHOSTPATH="$dname" -v "$dname"/:/tmp/drhaskell-src --rm -it jonasbusse/drhaskell:latest drhaskell-lint "$@"
\ No newline at end of file
@echo off
REM @FOR /f "tokens=*" %i IN ('docker-machine env dev') DO @%i
docker run -v %cd%:/tmp/drhaskell-src -it jonasbusse/drhaskell drhaskell
\ No newline at end of file
docker run -v %cd%:/tmp/drhaskell-src --rm -it jonasbusse/drhaskell drhaskell
\ No newline at end of file
#!/bin/bash
eval $(docker-machine env)
docker run -v $(pwd)/:/tmp/drhaskell-src -it jonasbusse/drhaskell:latest drhaskell
\ No newline at end of file
docker run -v $(pwd)/:/tmp/drhaskell-src --rm -it jonasbusse/drhaskell:latest drhaskell "$@"
\ No newline at end of file
#!/bin/bash
dname=""
for arg in "$@"
do
if [ -e $arg ]
then
dname=$(dirname "$arg")
fi
done
docker run -e DRHASKELLHOSTPATH="$dname" -v "$dname"/:/tmp/drhaskell-src --rm -it jonasbusse/drhaskell:latest drhaskell-lint "$@"
\ No newline at end of file
#!/bin/bash
sudo docker run -v $(pwd)/:/tmp/drhaskell-src --rm -it jonasbusse/drhaskell:latest drhaskell "$@"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment