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

phpmyadmin install configuration only works the very first time #28

Closed
apolopena opened this issue Feb 6, 2021 · 2 comments
Closed
Assignees
Labels
bug Something isn't working gitpod-config Related to gitpod configuration (bash scripts etc...)

Comments

@apolopena
Copy link
Owner

Describe the bug

The very first time the workspace is built and the workspace image is craeted then whatever value is set for the install for phpmyadmin in starter.ini will be respected. However on subsequent creations of the gitpod workspace this phpmyadmin install value will only be respected if the workspace image is rebuilt. The workspace image is cached and will only rebuild if there is a significant change to the .gitpod.Docker file.

Screenshots

Steps to reproduce

  1. Set the install value for phpmyadmin in starter.ini to 1. Push that change to your repository.
  2. Create a Gitpod workspace from your repository for the very first time.
  • phpmyadmin is successfully installed
  1. Set the install value for phpmyadmin in starter.ini to 0. Push that change to your repository.
  2. Create another Gitpod workspace from your repository.
  • phpmyadmin is still installed.

Expected behavior

When the install value for phpmyadmin in starter.ini is set to 0 and the a new Gitpod workspace is created then phpmyadmin should not be installed.

Workaround

You can workaround this issue by incrementing the value of ENV INVALIDATE_CACHE in .gitpod.Dockerfile. This will force the build of a new workspace image.

@apolopena apolopena added the bug Something isn't working label Feb 6, 2021
@apolopena apolopena self-assigned this Feb 6, 2021
@apolopena apolopena added the gitpod-config Related to gitpod configuration (bash scripts etc...) label Feb 7, 2021
@apolopena
Copy link
Owner Author

apolopena commented Feb 8, 2021

Use the workaround when creating multiple new workspaces and chaning the phpmyadmin install directive in between. This is result of the docker caching mechanism within the gitpod system.
Workspaces are cached, so unless a workspace image is forced to be rebuilt then there is guarantee that phpmyadmin will be installed or not.

It appears that when a workspace is created in gitpod from a repo for the very first time, the workspace image is built, not cached.

Regardless if you are creating new workspaces and changing the phpmyadmin install directive in starter.ini, in between creation of these workspaces then you will need to increment the value of ENV INVALIDATE_CACHE in .gitpod.Dockerfile and save it to the repository before you create the workspace to ensure that you get your desired results.

@apolopena
Copy link
Owner Author

Workaround no longer needed.
Fixed in #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gitpod-config Related to gitpod configuration (bash scripts etc...)
Projects
None yet
Development

No branches or pull requests

1 participant