grumpy docker image
Author: S-YOUCreated Jan 5, 2017Updated Jul 19, 2022
Not a issue, but just sharing my grumpy docker image
https://hub.docker.com/r/syou/alpine-grumpy/
Usage
quick run by using grumprun
echo 'print "hello, world"' | docker run -i --rm \
syou/alpine-grumpy grumprun
hello, worldrun grumpy inside container
docker run -it --rm syou/alpine-grumpy sh
echo 'print "hello, world"' > hello.pygrumpc hello.py > hello.gogo run hello.go
hello, world
run directly by mounting host folder
cd /tmp/
echo 'print "hello, world"' > hello.pydocker run -it --rm -v $PWD:/src/app syou/alpine-grumpy \
grumpc hello.py > hello.godocker run -it --rm -v $PWD:/src/app syou/alpine-grumpy \
go run hello.go
hello, worlddocker run -it --rm -v $PWD:/src/app syou/alpine-grumpy \
go build -ldflags "-extldflags -static" \
-o hello hello.go./hello
hello, worldNote that $PWD should be writable or use /tmp folder to write file from docker, since final image not using root user, but you can specify --user 0 if you insist, but not recommended.
Source: google/grumpy