mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-09 18:43:34 -05:00
install to /usr and use current rakubrew
This commit is contained in:
parent
04f39392e8
commit
e5c7ba186d
1 changed files with 12 additions and 10 deletions
22
Dockerfile
22
Dockerfile
|
@ -34,6 +34,8 @@ ARG CLJ_KONDO_VERSION='2020.06.21'
|
||||||
ARG GO_VERSION='v1.27.0'
|
ARG GO_VERSION='v1.27.0'
|
||||||
# Raku Linter
|
# Raku Linter
|
||||||
ARG RAKU_VER="2020.06"
|
ARG RAKU_VER="2020.06"
|
||||||
|
ARG RAKU_INSTALL_PATH=/usr
|
||||||
|
ARG RAKUBREW_HOME=/tmp/rakubrew
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Run APK installs #
|
# Run APK installs #
|
||||||
|
@ -190,18 +192,18 @@ RUN curl -sSLO https://github.com/pinterest/ktlint/releases/latest/download/ktli
|
||||||
################
|
################
|
||||||
|
|
||||||
# Environment
|
# Environment
|
||||||
ENV PATH="/root/raku-install/bin:/root/raku-install/share/perl6/site/bin:/root/.rakudobrew/bin:${PATH}" \
|
ENV PATH="$RAKU_INSTALL_PATH/share/perl6/site/bin:${PATH}"
|
||||||
ENV="/root/.profile"
|
|
||||||
|
|
||||||
# Basic setup, programs and init
|
# Basic setup, programs and init
|
||||||
RUN git clone https://github.com/tadzik/rakudobrew ~/.rakudobrew \
|
RUN mkdir -p $RAKUBREW_HOME/bin \
|
||||||
&& eval "$(~/.rakudobrew/bin/rakudobrew init Sh)"\
|
&& curl -sSLo $RAKUBREW_HOME/bin/rakubrew https://rakubrew.org/perl/rakubrew \
|
||||||
&& rakudobrew build moar $RAKU_VER --configure-opts='--prefix=/root/raku-install' \
|
&& chmod 755 $RAKUBREW_HOME/bin/rakubrew \
|
||||||
&& rm -rf /root/.rakudobrew/versions/moar-$RAKU_VER \
|
&& eval "$($RAKUBREW_HOME/bin/rakubrew init Sh)"\
|
||||||
&& rakudobrew register moar-$RAKU_VER /root/raku-install \
|
&& rakubrew build moar $RAKU_VER --configure-opts='--prefix=$RAKU_INSTALL_PATH' \
|
||||||
&& rakudobrew global moar-$RAKU_VER \
|
&& rm -rf $RAKUBREW_HOME/versions/moar-$RAKU_VER \
|
||||||
&& rakudobrew build-zef \
|
&& rakubrew build-zef \
|
||||||
&& rm -rf /root/.rakudobrew
|
&& rm -rf $RAKUBREW_HOME
|
||||||
|
|
||||||
################################
|
################################
|
||||||
# Install editorconfig-checker #
|
# Install editorconfig-checker #
|
||||||
|
|
Loading…
Reference in a new issue