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

Enable local testability #5568

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

apparle
Copy link
Collaborator

@apparle apparle commented Nov 10, 2024

This PR enables the ability to build and test images locally. It does 2 things:

  1. Updates the Dockerfile for mastercontainer to separate out the cloning step into its own stage, such that it can be overridden by user input to pick changes from local path with below command. This follows the principle described in https://www.docker.com/blog/dockerfiles-now-support-multiple-build-contexts/
cd Containers/mastercontainer
docker buildx build --build-context aio_root=../../ -t nextcloud/all-in-one:latest .
  1. Since the hash of a locally built image will never match the latest image, mandating "Update mastercontainer" makes local testing impossible. This PR adds ability to skip the mastercontainer update. This also addresses allow to restart containers without updating mastercontainer, if a mastercontainer update is available #5468

@szaimen
Copy link
Collaborator

szaimen commented Nov 11, 2024

Hi @apparle thanks a lot for so many useful contributions! 😊

I just invited you to the repo to make collaboration easier :)

@szaimen
Copy link
Collaborator

szaimen commented Nov 11, 2024

btw this PR has some conflicts...

@szaimen szaimen added 2. developing Work in progress enhancement New feature or request labels Nov 11, 2024
@szaimen szaimen added this to the next milestone Nov 11, 2024
@apparle
Copy link
Collaborator Author

apparle commented Nov 11, 2024

btw this PR has some conflicts...

Merged main and resolved conflicts. Also resolved lint issues.

@szaimen szaimen added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 11, 2024
@szaimen szaimen modified the milestones: v10.0.0, next Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants