-
Notifications
You must be signed in to change notification settings - Fork 52
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
sfctl does not support compression when uploading application to image stro #168
Comments
also trying pre-compressing the app with powershell and then using sfctl to upload and it seems like it uncompressed the package?
as you can see Code.zip and Config.zip are there, but then there are all the dll files in Code folder, which i assume come from the command unpacking the Code.zip file. is there anyway of uploading a compressed package with sfctl? |
apparently i had old files cached in the CI machine, i am now getting a different error: |
@talarari can you share which command in sfctl you are running to get the error FABRIC_E_IMAGEBUILDER_UNEXPECTED_ERROR? Is it sfctl application upload? Can you share the output with the --debug option on? Are you uploading to the native image store, or are you providing a custom imagestore-string? What sfctl and cluster version are you using? For a workaround, you can manually zip some files. It's not ideal, unfortunately, but would do the trick for now. If you go to the app package, and go down to the Code, Config, and Data folders under each service and use any zip utility for those, it should speed up the upload time. The zipped folders in Linux should end in .zip. If you do have access to PowerShell on a different machine, you can also compress using that. It would be the same "Copy-ServiceFabricApplicationPackage" command, but with the "SkipCopy" command selected. Sorry for the inconvenience. @suhuruli can answer the question on having compression in sfctl in the future, but I believe it is planned. Thanks for the feedback! Edit: Updated workaround |
@talarari, plans to add compression is in the pipeline. Currently, the compression is only available in the PowerShell module that we have available on Windows that ships with the SDK. This functionality along with a host of others will need to be extended to all the modules that are based on REST (SFCTL, new PowerShell module etc). |
Is there still no way to upload a packaged app? I am working from a Mac and it takes a long time to upload an app file by file. Thanks. |
Hi @jfalameda you can upload a directory at a time, just uncompressed. It would recursively go through the sub-folders. Would that help your use case? Or do you mean that you are hitting a timeout issue? Thanks! |
Hi, What, do you mean? To upload each service of the application at at time?
I adapted the yeoman build script to build my app in mac before uploading it to service fabric (My application was originally generated on MS windows Visual Studio, so I don´t find a better way to compile to upload it to Service fabric). It looks like this:
And this is my upload script:
The provision generates an error I documented here: #177 Kind Regards, |
Thanks, @jfalameda for the clarification. We don't have compression yet, but I'll update this thread when we have a better estimate or when it's added. Thank you so much for sharing your feedback! We can look into the provision issue on the other thread. |
@Christina-Kang Thanks, is this something planned on the roadmap? Thanks. |
@jfalameda, yes, it is on the road map, though we do not yet have a specific date. A fix for the provision timeout issue is coming very soon though! |
@Christina-Kang Thanks! |
Our sfctl application upload command takes around 20 minutes, i see compression is supported in powershell but not in sfctl, why is that?
The text was updated successfully, but these errors were encountered: