-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support .mesgignore #778
Support .mesgignore #778
Conversation
Can you explain a bit more what will be published on the marketplace and why we need .mesgignore? |
The archive that the marketplace will receive needs to include all files that are necessary for the build or for the developer to run the service properly. The mesgignore is to remove all files that are not mandatory, node_modules, vendors, tmp... We could do that with the full archive but if files are not necessary then better to have a way to remove them. |
So this is not what will be in deploy link on solidity marketplace?
the node_moduels, vendors etc will be downloaded in docker build so you wan't to exclude them, but they will be probably in dockerignore and gitignore. I'm bit confused with it, can you give me an example with minimal repo and how this should look like:
|
|
I know how it will work, but can you give me a real example of small repo and what will be inside each file. What I'm asking is a simple use case of .mesgignore file that will be close to real service. And possible not like this:
because they overlap. I'm asking of example where the .mesgignore will have diffrent content then .dockerignore, so use case for this. |
I'm comparing this with npm and that when you install a package it can trigger a pre-install script that rely on files that are on the marketplace but not needed for the lib, just needed to build it. For example having a script that generates a bin so we would have dockerignore that allows the Another use case could be with tests (we wanted to add a test command), we need the tests in the archive on the marketplace but the docker image generated don't need to contains them and just need the "production" version I agree that these features are not here yet but I strongly feel that we will need some things like that and having a nice separation of files is anyway easier to understand and more flexible |
So maybe let's wait for these features first, then we will have more clearness how we can use |
I'm totally fine with that, the only "issue" is that maybe we will publish |
@ilgooz @NicolasMahe what do you think about that ? With |
I suggest to have either this So, i recommend to implement |
I think it's good to have a |
For publication on the marketplace we need to be able to ignore some files,
.dockerignore
can be confusing to use and maybe some files needs to be shared to the marketplace but not to the build in docker so this is the implementation for a.mesgignore
that is dedicated to ignore files for publication like a.npmignore
for examplebased on this discussion #755 (comment)
depends on #755