-
Notifications
You must be signed in to change notification settings - Fork 443
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
1.2.0-M8 adds an ADD opt command to the Dockerfile - why? #936
Comments
The first aid to solve this in the application was:
This removes the command from |
Thanks for your question. To be honest, I can't remember. I had this commit and this commit in mind, but both are released with version |
I added the lines mentioned above (filtering out ADD), and as expected, the result is an image with no application included. So... I'm confused, what is the issue? |
I'm sorry, I don't. |
Ah, too bad 😩 thanks for taking a look ❤️ |
From the issue details:
From the Docker documentation:
Have you misunderstood the ordering of arguments? This does not copy While there have been some changes to the code, this was its behavior since the earliest implementation. |
Update: I went back to using 1.1.5 in the project. To @fiadliel I think the issue was surprises when trying to update from 1.1.x to 1.2.0-M8, and eventually needing to yield back because of those. My own "itch" is now covered, but I think it's important for an open source project to realize when transitions would be surprising to end users, and this probably is the "issue". Let me broaden it up a bit:
As said, this is no longer an issue for me, personally. I'm back to using 1.1.5 and considering abandoning sbt-native-packager altogether, because all we need are Docker images. Using the If you consider there is no "issue", from the project's point of view, I am of course fine in closing this issue. I don't have any |
In reference to your points:
For As for whether there's an issue here or not, I'm not a maintainer or anything, but I noted some items above. Still, it is confusing to manage multiple problems in a single issue. I think it would be easiest for everyone, to file separate issues for identified problems, and close this one (since there is no issue with the |
Thanks, @fiadliel for the clarifications. I agree about the "separate issues for identified problems", but feel that I might not be the best person to describe them in the project's terminology and language. Could some of the project people do this, refer to this issue and then we'll close this? |
Sorry for my late reply on this.
The documentation with all the versions is linked in the readme. This is not ideal and I haven't had time to figure out with the sbt maintainers on how to change the domain to point the readthedocs.
This is a good starting point or the Installation section in the readme.
You are not the first one to be confused with the docs. Currently we have a getting started page that almost fits on a desktop screen, but people seem to skip this part and directly go into specific documentation parts. There were suggestions to put the documentation on "how to build a package" or link it from every other documentation. IMHO this is bloating the docs and would lead to a more fragmented and confusing documentation. My hope was always that people start with the getting started page and simply copy and paste the code from there. Almost everything works if you start there. However we have to add some further information to the docs that a format plugin is just a format. People get confused way to often :(
The documentation was the same in 1.1.5.
|
Ended up doing exactly this. The main benefit I see in it is that we get to describe Docker things in a Dockerfile, and developers don't need to learn yet another format. |
I've updated a project from
sbt-native-packager
1.1.4 to 1.2.0-M8 and this is one of the changes observed. I'm pretty sure the added command does not come from my project. What's going on?Steps:
sbt
The ADD command is about copying files from the host to the docker image - why would I want to do that for
/opt
?I'm sorry that the info is a bit patchy. Maybe I'll find time to make a minimum viable repo to showcase the problem.
The text was updated successfully, but these errors were encountered: