Giter Site home page Giter Site logo

Standalone windows executables about azurite HOT 10 CLOSED

azure avatar azure commented on August 24, 2024
Standalone windows executables

from azurite.

Comments (10)

maf1024 avatar maf1024 commented on August 24, 2024 3

Finally figured out how to compile the exe files myself.
For anyone out there with a similar need, here's the exhaustive steps I took (in WSL ubuntu 20.04):

sudo apt-get install nodejs npm
sudo npm install -g pkg
git clone https://github.com/Azure/Azurite.git ~/Azurite
cd ~/Azurite
npm install
pkg -t node16-win --output blob -c package.json dist/src/blob/main.js
pkg -t node16-win --output queue -c package.json dist/src/queue/main.js

(took me a long time to figure out that I'm not supposed to pass main.ts directly into pkg)

from azurite.

arafato avatar arafato commented on August 24, 2024

Hi @maf1024 are you saying you would like to have Azurite releases available as self-contained binaries as well?

from azurite.

maf1024 avatar maf1024 commented on August 24, 2024

@arafato Yes.

from azurite.

edwin-huber avatar edwin-huber commented on August 24, 2024

This should not be hard, as we can use pkg for this, in the same way that we make the nuget package.
We could maybe offer the binaries for download.
@seguler what do you think?

from azurite.

StefH avatar StefH commented on August 24, 2024

You could also create a Chocolatey package including those 3 exe's

from azurite.

JustinGrote avatar JustinGrote commented on August 24, 2024

@XiaoningLiu I have tested this with v3 and the pkg tool and node12 and it generates a functional exe. Would you like me to PR? I will also contribute a scoop manifest and a chocolatey update if you can provide info on how you publish to chocolatey (it does'nt appear to be in the azure pipelines yaml)

from azurite.

maf1024 avatar maf1024 commented on August 24, 2024

@JustinGrote Even if not a PR, if you could update a fork with your tested changes, that would probably be appreciated by my team and myself (with our inexperience in node) so we can try to make our own executables.

(We've been simply relying on the ancient nuget Azurite for a long time, but we recently discovered that we apparently can't use it with the newer Azure.Storage.Blobs V12 dotnet core library)

from azurite.

edwin-huber avatar edwin-huber commented on August 24, 2024

Thanks for the effort you put into this!
We are finding that more people are using the docker containers.
@XiaoningLiu @blueww @vinjiang - Do we want to add this to the documentation, or do we have other plans for Windows exes?

from azurite.

JustinGrote avatar JustinGrote commented on August 24, 2024

I personally have mostly switch to just using the vscode extension and that's good enough for me.

from azurite.

maf1024 avatar maf1024 commented on August 24, 2024

Even though exe distributions don't seem to be directly part of Azurite releases yet, it looks like at least VS2022 finally includes this (and is now up to date).

For those interested: The executable's location is [VS 2022 dir]\Common7\IDE\Extensions\Microsoft\Azure Storage Emulator\azurite.exe
(Note it runs Blob, Queue, and Table emulation all as one process)

from azurite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.