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

Using PHP #675

Open
meysam001 opened this issue Mar 14, 2018 · 4 comments
Open

Using PHP #675

meysam001 opened this issue Mar 14, 2018 · 4 comments

Comments

@meysam001
Copy link

Hello
Is it possible that I create a function with PHP instead of Python ?

@c0ze
Copy link
Contributor

c0ze commented Mar 14, 2018

Yes, you can use any language that you can run inside a docker container.

Please check PHP Hello example.

@meysam001
Copy link
Author

meysam001 commented Mar 17, 2018

I'd like to run it on Kubernetes directly.
Is it possible to run on Kubernetes without docker container?

@c0ze
Copy link
Contributor

c0ze commented Mar 18, 2018

I'm sorry, I don't understand what you mean by "Running on Kubernetes directly".

Kubernetes is a container orchestration platform, so you will need to use some kind of containerization technology to run your function.

At the moment, Iron Functions support only Docker containers. It is possible to support other containerization platforms, but currently there are no projects underway.

@meysam001
Copy link
Author

I have create the func.yaml file:

name: my_docker_username/hello
version: 0.0.1
path: /hello
build:
- docker run --rm -v "$PWD":/worker -w /worker iron/php:dev composer install

When I had run fn build, I gave the error:

error running command docker run --rm -v "$PWD":/worker -w /worker iron/php:dev composer install (exit status 1)

What is wrong?

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

No branches or pull requests

2 participants