Skip to content
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

Azure function app zip #18

Open
arichiardi opened this issue Aug 23, 2018 · 4 comments
Open

Azure function app zip #18

arichiardi opened this issue Aug 23, 2018 · 4 comments

Comments

@arichiardi
Copy link
Contributor

Hi!

I am looking for a reliable way to package my function app and ended up looking at what you already have in here.
I will state the problem and would like to ask you suggestions on how to eventually implement it.

Azure function apps are a bit different from AWS, the structure being:

- package.zip
  - host.json
  - cljs        (dir containing the runtime, shared)
  - node_modules (this can go anywhere)
  - lamdba-foo
    - function.json
    - index.js
  - lambda-bar
    - function.json
    - index.js

As you can see there are a couple of quirks. I am using shadow for compilation and it also allows you to specify a build her where the above will end up folder - you could have node_modules in the root of the project and the functions in my-build-dir.

I hope this is clear enough, if not I can answer all sorts of questions and commit to implementing the packager.

Thank you Dominic/Just team!

@SevereOverfl0w
Copy link
Collaborator

It appears in this case that there's no dependencies from maven, is that correct?

@arichiardi
Copy link
Contributor Author

Correct, I might be thought you do the same for AWS, but I realize now that you are talking about JVM lambdas and I was thinking JS lambdas.

@SevereOverfl0w
Copy link
Collaborator

My gut feeling is that using the zip command is going to be much easier than using pack for this.

@arichiardi
Copy link
Contributor Author

Yeah well, I am actually inquiring here because of many of the zip limitations like no control on zipped paths - have to cd in and our folders... probably I will need to use a small lumo wrapper or something...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants