BetterRaku

This commit is contained in:
Lucas Gravley 2020-07-16 10:39:51 -05:00
parent 15cd021893
commit 88f4978ba3

View file

@ -29,10 +29,6 @@ ARG PSSA_VERSION='latest'
ARG ARM_TTK_NAME='master.zip' ARG ARM_TTK_NAME='master.zip'
ARG ARM_TTK_URI='https://github.com/Azure/arm-ttk/archive/master.zip' ARG ARM_TTK_URI='https://github.com/Azure/arm-ttk/archive/master.zip'
ARG ARM_TTK_DIRECTORY='/opt/microsoft' ARG ARM_TTK_DIRECTORY='/opt/microsoft'
# Raku Linter
ARG RAKU_VER="2020.06"
ARG RAKU_INSTALL_PATH=/usr
ARG RAKUBREW_HOME=/tmp/rakubrew
# Dart Linter # Dart Linter
## stable dart sdk: https://dart.dev/get-dart#release-channels ## stable dart sdk: https://dart.dev/get-dart#release-channels
ARG DART_VERSION='2.8.4' ARG DART_VERSION='2.8.4'
@ -171,17 +167,9 @@ RUN wget https://storage.googleapis.com/dart-archive/channels/stable/release/${D
################ ################
# Install Raku # # Install Raku #
################ ################
# Environment
ENV PATH="$RAKU_INSTALL_PATH/share/perl6/site/bin:${PATH}"
# Basic setup, programs and init # Basic setup, programs and init
RUN mkdir -p $RAKUBREW_HOME/bin \ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \
&& curl -sSLo $RAKUBREW_HOME/bin/rakubrew https://rakubrew.org/perl/rakubrew \ && apk add --update --no-cache rakudo zef
&& chmod 755 $RAKUBREW_HOME/bin/rakubrew \
&& eval "$($RAKUBREW_HOME/bin/rakubrew init Sh)"\
&& rakubrew build moar $RAKU_VER --configure-opts='--prefix=$RAKU_INSTALL_PATH' \
&& rm -rf $RAKUBREW_HOME/versions/moar-$RAKU_VER \
&& rakubrew build-zef \
&& rm -rf $RAKUBREW_HOME
################################ ################################
# Install editorconfig-checker # # Install editorconfig-checker #