-
Notifications
You must be signed in to change notification settings - Fork 6
Dockerfile - Multiple Platform Support #116
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
base: main
Are you sure you want to change the base?
Conversation
Multi-architecture Dockerfile.
Building with docker and docker buildx for multiple platform support.
I tried building the image and running the container locally. However, I think more work is needed... unless I'm doing something wrong?
Perhaps the |
Another question I have is: If say a docker container runs the differ and files are output to How does it work right now in a production environment? |
I think this should be taken care of from the Dockerfile itself, by using the appropriate base image and adding the steps for downloading necessary packages so that the script can run unchanged @CodeJitsu42 could you elaborate on the tests/runs you've performed with this Dockerfile? (and also whether they cover Neil's query on viewing the actual diff result) |
@CodeJitsu42 I'm also facing the same additionally you can add a |
Adding a dockerignore file
Using ubi9 instead of ubi9-minimal
Hello @Aditya-Sood / @nelio2k added a .dockerignore file and changed the final image to redhat/ubi9:9.4 To see the reports, for now, we would suggest to add a "--stdout" parameter, in the runDiffer.sh , to do something like a In real scenario after we have the image we will use it in a k8s helm chart and have volume mounts for reports and other things. |
@Aditya-Sood @nelio2k |
We have been pre-occupied with others but can and will re-review soon. Thanks. |
Thanks for the Dockerfile setup and modification, @CodeJitsu42 . I had to modify the Diff here shown:
The run command also needs to be executed with network host, I believe...
However, I'm seeing network refused error... whereas if I run from the host natively, it is fine: I know that the docker is reaching out to the Couchbase Server, because if I specify an external IP address, it fails:
^ The above message proves that the docker container should use the host network, and is able to reach out to a Couchbase Server... but it fails in binding. I suspect this has to do with the limitation shown on the docker host network guide:
But I'm not 100% sure. In any case, I think this POC shows that dockerization is a good idea and we're on our way there, but it requires some more thought and investigation. This PR is a good start, but it's probably more nuanced than just a Dockerfile. I have filed https://jira.issues.couchbase.com/browse/MB-65665 to track this whole dockerization effort. More investigation effort will be detailed there as we march towards adding this functionality. |
Hi Nelio, Thanks for finding the time to update on this PR. I have created a new branch from main and opened a new PR to main, which can be found here: In this PR:
Please find attached the logs from xdcr-differ. Let me know if you have any questions. CodeJ |
This PR introduces support for multiple platforms.
It includes a Dockerfile and instructions detailing how users can utilize docker build and docker buildx to create multi-architecture images.
I suggest the possibility of automating the image-building process by integrating it into a job triggered whenever there are code changes in this GitHub repository.