Open
Description
On the heels of #430, what I'm trying to do is simply to have a Rakudo installation that uses /github/home
as a home, as opposed to /home/raku
(or any other user, for that matter). Alas, that does not seem to be possible
Context
Essentially, follow instructions to install zef in a standard way:
RUN git clone --depth 1 https://github.com/ugexe/zef.git \
&& cd zef && ls -alt . && raku -I. bin/zef install . \
&& ls -alt ${WORKDIR} && ls -alt ${HOME} \
&& zef install Linenoise \
&& cd .. && rm -rf zef``
Expected Behavior
Install as usual
Actual Behavior
First a warning:
Use of uninitialized value element of type Any in string context.
Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
Then, seconds later, an error:
===> CompUnit::Repository install target is not writeable/installable: /github/home/zef/auto
in sub guess-path at /github/home/zef/lib/Zef/Config.rakumod (Zef::Config) line 21
Need a valid installation target to continue
Steps to Reproduce
FROM ghcr.io/jj/raku-gha
ENV PKGS="git" PKGS_TMP="make gcc linux-headers musl-dev" WORKDIR="/github/home" HOME=$WORKDIR
LABEL version="1.0.1" maintainer="[email protected]" rakuversion=$VER
USER root
RUN apk update && apk upgrade && apk add --no-cache $PKGS $PKGS_TMP
USER raku
# Environment
ENV PATH="${WORKDIR}/.raku/bin:${WORKDIR}/.raku/share/perl6/site/bin:${PATH}" \
ENV="${WORKDIR}/.profile"
# Basic setup, programs and init
WORKDIR $WORKDIR
RUN git clone --depth 1 https://github.com/ugexe/zef.git \
&& cd zef && ls -alt . && raku -I. bin/zef install . \
&& ls -alt ${WORKDIR} && ls -alt ${HOME} \
&& zef install Linenoise \
&& cd .. && rm -rf zef
USER root
RUN apk del $PGKS_TMP
USER raku
ENTRYPOINT ["raku"]
Your Environment
- raku -v
2021.10
Metadata
Assignees
Labels
No labels