Giter VIP home page Giter VIP logo

aws-fargate-with-php's Introduction

aws-fargate-with-php's People

Contributors

codedge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aws-fargate-with-php's Issues

Running on Fargate task & locally seams docker-entrypoint.sh is not executed

First of all this is a great job. Thank you to sharing with us - special beginners.

However, running the Dockerfile on Fargate task & locally

docker run -it -p 80:80 <container>

It seams docker-entrypoint.sh is not executed and, following that, I've got 502 bad gateway from nginx as php-fpm has not started.

Thanks

Containers Bridge (upstream)

Thank you very much for sharing this content, it's helping me a lot.

So I got an issue about the communication between nginx and php-fpm containers. I got this error: "host not found in upstream "php-fpm:9000""
The Fargate doesn't allow use hostname parameter in the task definition. How did you handled with this communication?

Thank you again,

502 Bad Gateway when running locally

I cloned the project, copied Laravel files in to it (fresh install) and ran:

docker-compose up -d

When I visit http://localhost I get a 502 Bad Gateway error message in the browser.

The docker log command docker logs aws-fargate-with-php_nginx_1 gives the following output:

192.168.80.1 - - [09/Jun/2020:07:43:31 +0000] "GET / HTTP/1.1" 502 158 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0" "-"
2020/06/09 07:43:31 [error] 11#11: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.80.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "localhost"

Any ideas?

Vanilla PHP version

This is fantastic, thanks for sharing.

Is there much involved in removing everything "Laravel" and just having a simplified version with vanilla php?

Composer 2 problem, outdated prestissimo package

  • composer global require hirak/prestissimo:^0.3 --prefer-dist --no-progress --no-suggest --classmap-authoritative
    Changed current directory to /root/.composer
    You are using the deprecated option "--no-suggest". It has no effect and will break in Composer 3.

    [RuntimeException]
    No composer.json present in the current directory, this may be the cause of the following exception.

    [InvalidArgumentException]
    Package hirak/prestissimo at version ^0.3 has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version

Working locally

What is your workflow when working locally with this. I made a change to the welcome.blade.php template but had to rebuild the containers to update the page. Is there something I am missing for 'live' local development?

Running locally

I'm getting the following error when trying to run locally "docker-compose up" any ideas?

Running on a mac:

+ pecl install apcu-5.1.17
No releases available for package "pecl.php.net/apcu"
install failed
ERROR: Service 'php-fpm' failed to build : The command '/bin/sh -c set -eux;     
apk add --no-cache --virtual .build-deps         
$PHPIZE_DEPS         coreutils         freetype-dev         icu-dev         libjpeg-turbo-dev         libtool         libwebp-dev         libzip-dev         mariadb-dev     ;         
docker-php-ext-configure gd --with-jpeg=/usr/include/ --with-webp=/usr/include --with-freetype=/usr/include/;    
docker-php-ext-install -j$(nproc) bcmath exif gd intl pdo_mysql zip     ;     
pecl install apcu-${APCU_VERSION}     ;     
pecl clear-cache;     
docker-php-ext-enable         apcu         opcache     ;         
runDeps="$(scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions             | tr ',' '\n'             | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }'     )";     
apk add --no-cache --virtual .laravelapp-phpexts-rundeps $runDeps;         
apk del .build-deps' returned a non-zero code: 1

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.