Install Homebrew and run following commands:
# install docker
brew install docker
brew cask install docker
open /Applications/Docker.app
# install cocker-compose
brew install docker-compose
Build and start containers.
docker-compose up -d
Create a new application.
docker-compose exec app bash
bee new quickstart
# Enter "yes" to overwrite.
exit
# load created application
docker-compose restart
Access http://localhost:8080
and check running application.
Deploy to AWS Elastic Beanstalk.
./make_bundle.sh
Above command output a bundle.zip file. This process means create an application source bundle.
Refer to an AWS document. Select following options:
- Platform : Docker
- Application code : Upload your code
- Source code origin : Local File (and select bundle.zip file)
Refer to the document and implement the contents of the quick start.
After making changes to the source code, check changes on the local environment and redeploy to Elastic Beanstalk.
If you want to see the log of local environment, please execute the following command:
docker-compose logs -f