-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Run applications locally with Bref Docker images #367
Run applications locally with Bref Docker images #367
Conversation
runtime/layers/fpm-dev/Dockerfile
Outdated
|
||
COPY ./local/php-fpm.conf /opt/bref/etc/php-fpm.conf | ||
|
||
CMD [ "php-fpm", "-F", "-y", "/opt/bref/etc/php-fpm.conf" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Posting here so that we don't forget: we should populate the environment variables available on Lambda: https://docs.aws.amazon.com/lambda/latest/dg/lambda-environment-variables.html
Use docker image to generate layers files instead of export.sh script
6e22cf4
to
69b326f
Compare
@@ -8,7 +8,7 @@ | |||
# https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html | |||
# AWS has kindly provided us with it as a base docker image. | |||
# https://github.com/aws/amazon-linux-docker-images/tree/2017.03 | |||
FROM amazonlinux:2017.03 | |||
FROM amazonlinux:2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting on #332 to use 2018.03
instead.
Given this version: "2.1"
services:
cli:
image: bref/php-73
volumes:
- .:/var/task
command: 'false' Then: $ docker-compose run cli php bin/console
Could not open input file: console
$ docker-compose run cli php /var/task/bin/console
# works
# ... Maybe the default directory should be |
Trying to make externals.io use this: mnapoli/externals#119 |
The goal of this pull request is to create Docker images that replicate the AWS Lambda environment locally. That will allow us to have a local development environment that is easier to use and faster than
sam local
orserverless invoke local
.