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

Support multiple php version in one workspace #3161

Open
rainbowdrg opened this issue Mar 4, 2022 · 1 comment
Open

Support multiple php version in one workspace #3161

rainbowdrg opened this issue Mar 4, 2022 · 1 comment

Comments

@rainbowdrg
Copy link

Hi,

I need to have one workspace to support multiple versions of php for my project that integrate with many different php versions of services

I know I can create many workspaces with different php version but I wish to make it all in one to save resources. And also can run composer install without switch between workspace containers

I have tried add the code below at the end of workspace/Dockerfile and it work previously.

RUN apt-get install -y --allow-downgrades --allow-remove-essential \
        --allow-change-held-packages \
        php8.0-cli \
        php8.0-common \
        php8.0-curl \
        php8.0-intl \
        php8.0-xml \
        php8.0-mbstring \
        php8.0-mysql \
        php8.0-pgsql \
        php8.0-sqlite \
        php8.0-sqlite3 \
        php8.0-zip \
        php8.0-bcmath \
        php8.0-memcached \
        php8.0-gd \
        php8.0-dev \
    && apt-get clean

But when I try rebuild workspace today, I got error message: Unable to locate package php8.0-cli. My workspace main version using latest php 8.1

Please advice me any way to make one workspace support multiple php versions.

Thanks.

@Dhayllin
Copy link

How do you do in the development environment not dockering to switch php versions?

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

No branches or pull requests

2 participants