diff --git a/php+cli/Dockerfile b/php+cli/Dockerfile index bb98ace..939525b 100644 --- a/php+cli/Dockerfile +++ b/php+cli/Dockerfile @@ -4,6 +4,13 @@ RUN apt-get -qq update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +# Install a funky cool repl. +RUN composer global require -q psy/psysh:@stable && \ + ln -s /root/.composer/vendor/psy/psysh/bin/psysh /usr/local/bin/repl && \ + /usr/local/bin/repl -v + +COPY psysh-config.php /root/.config/psysh/config.php + # On build, add anything in with Dockerfile into /app ONBUILD ADD ./ /app diff --git a/php+cli/psysh-config.php b/php+cli/psysh-config.php new file mode 100644 index 0000000..3848e59 --- /dev/null +++ b/php+cli/psysh-config.php @@ -0,0 +1,26 @@ + [ + new \Psy\Command\ParseCommand, + ], + 'defaultIncludes' => $defaultIncludes, + 'startupMessage' => sprintf('You are on %s Uptime: %s', trim(shell_exec('hostname')), trim(shell_exec('uptime -p'))), + //'prompt' => $animals[array_rand($animals)], + 'updateCheck' => 'never', + 'useBracketedPaste' => true +]; \ No newline at end of file