Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Troubleshooting Bref Docker Deployment with Octane Handler #1778

Closed
pra-cloud opened this issue Apr 8, 2024 · 0 comments
Closed

Troubleshooting Bref Docker Deployment with Octane Handler #1778

pra-cloud opened this issue Apr 8, 2024 · 0 comments
Labels

Comments

@pra-cloud
Copy link

pra-cloud commented Apr 8, 2024

I want to deploy my code on Docker over Lambda. I obtained this file from the documentation regarding PHP-FPM, but I want to use Octane as a handler. I have made some changes in my Dockerfile, replacing the public/index.php with the Octane handler. After deploying to Lambda, I am encountering this error:

  1. working dockerfile :-

FROM bref/php-81-fpm:2

COPY --from=bref/extra-redis-php-81:1 /opt /opt
COPY --from=bref/extra-gmp-php-81:1 /opt /opt

COPY . /var/task

CMD ["public/index.php"]

  1. Not working Dockerfile:-

FROM bref/php-82-fpm

#COPY --from=bref/extra-redis-php-81:1 /opt /opt
#COPY --from=bref/extra-gmp-php-81:1 /opt /opt

COPY . /var/task

CMD ["Bref\LaravelBridge\Http\OctaneHandler"]

  1. Error:- In cloud watch respective lambda function i am getting this error.

INIT_REPORT Init Duration: 24.44 ms Phase: init Status: error Error Type: Runtime.ExitError

entrypoint requires the handler name to be the first argument

@pra-cloud pra-cloud added the bug label Apr 8, 2024
@brefphp brefphp locked and limited conversation to collaborators Apr 8, 2024
@mnapoli mnapoli converted this issue into discussion #1780 Apr 8, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

1 participant