microservices-patterns / ftgo-application

Example code for the book Microservice patterns
Other
3.35k stars 1.29k forks source link

Can't run the application through build-and-run.sh #81

Closed diguage closed 4 years ago

diguage commented 4 years ago

I run build-and-run.sh, then it threw an error:

...
...
...
Successfully built 0f269efd2624
Successfully tagged ftgo-application_dynamodblocal:latest
Creating ftgo-application_dynamodblocal_1 ... done
Creating ftgo-application_mysql_1         ... done
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
sleeping for mysql
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
sleeping for mysql
mysql: [Warning] Using a password on the command line interface can be insecure.
preparing dynamodblocal table data
Initializing DynamoDB at endpoint
./create-dynamodb-tables.sh: line 7: AWS_DYNAMODB_ENDPOINT_URL: parameter null or not set

In order to fix the error, I add AWS_DYNAMODB_ENDPOINT_URL='http://dynamodblocal:8000' on the top of create-dynamodb-tables.sh. Then it threw another error:

...
...
...
Successfully built 0f269efd2624
Successfully tagged ftgo-application_dynamodblocal:latest
Creating ftgo-application_mysql_1         ... done
Creating ftgo-application_dynamodblocal_1 ... done
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
sleeping for mysql
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
sleeping for mysql
mysql: [Warning] Using a password on the command line interface can be insecure.
preparing dynamodblocal table data
Initializing DynamoDB at endpoint http://dynamodblocal:8000
./create-dynamodb-tables.sh: line 7: aws: command not found
creating table
./create-dynamodb-tables.sh: line 12: aws: command not found

I suggest that update the README content.

cer commented 4 years ago

Sorry about that. build-and-run.sh looks like its obsolete. These instructions are best: https://github.com/microservices-patterns/ftgo-application#building-and-running-the-application

cer commented 4 years ago

Fixed by https://github.com/microservices-patterns/ftgo-application/commit/1f3a6d3789fc3ed9134d98a72e262e7dea22c3d6