Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation cannot recognize the shell in the common containers #1095

Open
skyred opened this issue Dec 20, 2021 · 3 comments
Open

Installation cannot recognize the shell in the common containers #1095

skyred opened this issue Dec 20, 2021 · 3 comments

Comments

@skyred
Copy link

skyred commented Dec 20, 2021

When run curl -fsS https://platform.sh/cli/installer | php in containers like the official docker images Drupal or PHP, below error is shown:

curl -fsS https://platform.sh/cli/installer | php
Platform.sh CLI installer

Environment check
 [*] The "json" PHP extension is installed.
 [*] The "phar" PHP extension is installed.
 [*] Git is installed.
 [*] The "openssl" PHP extension is installed.
 [*] The "pcre" PHP extension is installed.
 [*] One or both of the "mbstring" or "iconv" PHP extensions is installed.
 [*] The "curl" PHP extension is installed.
 [!] The "pcntl" and "posix" extensions are needed for some commands.
 [*] The "allow_url_fopen" setting is on.
 [*] The "apc.enable_cli" setting is off.

Download
 Finding the latest version... done
 Downloading version 3.72.1... done
 Checking file integrity... done
 Checking that the file is a valid Phar... done

Install
 Making the Phar executable... done
 Moving the Phar to your home directory... done
 Executable location: /var/www/.platformsh/bin/platform

Running self:install command...

Copying resource files... done

Setting up autocompletion... failed
   Cannot generate hook for unknown shell type 'nologin'. Available hooks
   are: bash, zsh

To set up the CLI, add the following lines to your shell configuration file:
# BEGIN SNIPPET: Platform.sh CLI configuration
HOME=${HOME:-'/var/www'}
export PATH="$HOME/"'.platformsh/bin':"$PATH"
if [ -f "$HOME/"'.platformsh/shell-config.rc' ]; then . "$HOME/"'.platformsh/shell-config.rc'; fi # END SNIPPET
@skyred skyred changed the title Support installation in the common containers Installation cannot recognize the shell in the common containers Dec 20, 2021
@pjcdawkins
Copy link
Collaborator

How do you run it? docker exec?

@skyred
Copy link
Author

skyred commented Dec 20, 2021

How do you run it? docker exec?

Yes, you can do that, or I just docker exec -ti CONTAINER_NAME bash to get in, then run curl -fsS https://platform.sh/cli/installer | php

@pjcdawkins
Copy link
Collaborator

There is a --shell-type option on the installer which you could try:

curl -fsS https://platform.sh/cli/installer | php -- --shell-type bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants