Repository navigation
Conversation
Author
|
I still need to make the image output the results properly. As soon I finish this issue I make this ready for preview. |
Itiro-P
marked this pull request as ready for review
August 27, 2026 19:39
Author
|
Hello, @martinezmatias The image generated should be solid for production use, for the building process I used the JDK 26 to allow newer projects. Do you want me to override this behavior to Java 8? Additionally, I can't push the image as I'm not a member of the organization (which is okay for me), though the steps of doing it are simple. After building the image: Sign at the Container Registry using your credentials: Tag the image with the organization: Push the image to the Github Container Registry: This should publish the image as a private package. You can change the visibility under the organization's settings. Best regards. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR aims to close #132 by creating a reusable Docker image to allow users running samples with minimal setup.
The
Dockerfileuses multi-stage setup and only stores thetarget/directory as result. The build is made using maven image with Java 26* and then setups an image with common JDK's to allow samples with different compliance levels. The image entrypoint is made with Python just like the old's Thomas Durieux image but made to allow the same arguments as the main Astor project.The container itself copies the target project (which needs to be already compiled) and outputs the results to the host. It's necessary to use mounted volumes so, therefore, it's recommended to only allow read permissions to input project.
Usage:
Clone this branch and build the image:
With a project already compiled, point the input/output directories to the container using volumes:
The log of the example's execution above can be seen here.
TODO:
docs/astor-docker.mdto reflect new changes.