diff --git a/lang/go-mini/box.rb b/lang/go-mini/box.rb index 224ea16..d5df66b 100644 --- a/lang/go-mini/box.rb +++ b/lang/go-mini/box.rb @@ -1,9 +1,7 @@ from "xena/alpine" -run %q[ apk add -U openssl \ - && wget https://xena.greedo.xeserv.us/pkg/bin/go1.8-linux-amd64-glibc.gz -O go1.8.gz \ - && gunzip go1.8.gz && mv go1.8 /usr/local/bin \ - && apk del openssl] +run "apk add --no-cache go1.8.1" flatten tag "xena/go-mini:1.8" +tag "xena/go-mini:1.8.1" diff --git a/lang/go/box.rb b/lang/go/box.rb new file mode 100644 index 0000000..3bda867 --- /dev/null +++ b/lang/go/box.rb @@ -0,0 +1,11 @@ +from "xena/alpine" + +run %q[ apk add --no-cache wget && cd /usr/local \ + && wget -O go.tgz https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz \ + && tar xf go.tgz && rm go.tgz ] + +env "PATH" => "$PATH:/usr/local/go/bin" + +flatten +tag "xena/go:1.8" +tag "xena/go:1.8.1" diff --git a/lang/haskell/box.rb b/lang/haskell/box.rb new file mode 100644 index 0000000..5ddbb54 --- /dev/null +++ b/lang/haskell/box.rb @@ -0,0 +1,7 @@ +from "xena/alpine" + +run "apk add gmp" +run "rm /usr/bin/vardene" + +flatten +tag "xena/haskell" diff --git a/lang/haskell/stack/Dockerfile b/lang/haskell/stack/Dockerfile new file mode 100644 index 0000000..3d41d10 --- /dev/null +++ b/lang/haskell/stack/Dockerfile @@ -0,0 +1,3 @@ +FROM xena/alpine + +RUN apk add -U curl && curl -sSL https://get.haskellstack.org/ | sh diff --git a/lang/nim/box.rb b/lang/nim/box.rb new file mode 100644 index 0000000..051e6e8 --- /dev/null +++ b/lang/nim/box.rb @@ -0,0 +1,25 @@ +#!/usr/bin/env ruby +# encoding: utf-8 + +from "xena/alpine" + +# update envvars +env "PATH" => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/nim/bin:/root/.nimble/bin", + "NIM_VERSION" => "0.16.0" + +# system deps +run %q[ apk add --no-cache --virtual nim-compiler-deps wget libc-dev gcc libgcc git perl xz tar \ + && apk add --no-cache libressl ca-certificates libcrypto1.0 libssl1.0 ] + +# download and build nim and nimble +run %q[ mkdir -p /opt && cd /opt \ + && wget https://nim-lang.org/download/nim-$NIM_VERSION.tar.xz \ + && /usr/bin/tar xJf nim-$NIM_VERSION.tar.xz && rm -f nim-$NIM_VERSION.tar.xz \ + && mv nim-$NIM_VERSION nim && cd nim \ + && sh build.sh \ + && cd .. && git clone https://github.com/nim-lang/nimble.git \ + && cd nimble && nim -d:release c -r src/nimble -y install ] + +# shipit +flatten +tag "xena/nim:0.16.0"