Written by Thanmai Bindi
on
on
Assignment - 2 : Laravel Portal Deployment
Problem Statement:
- Deploying of Laravel on Amazon instance and containerizing the portal in docker. I had to make the portal work with the install scripts which will not be dependant on the system that it’s running.
Possible Solution:
- Docker scripts was used to run and build the docker image. This pulls the latest code, builds and deploys it to the container. This deletes the container and the image before deploying. Even before the zip is deployed this will install the dependencies like Composer and Zip. After changing the permissions of the folder, the
composer install
downloads all the package. Then copy.env.example
to.env
to generate key and run the server. 3 portals will be exposed 3000, 4000 and 5000 for laravel portal.
Solution Evaluation:
- Portal once exposed from docker it can be accessed outside as well. So once you go to the particular portal:port via browser this will be open.
Conclusion:
- There should be a setup of the docker container on the amazon instances we are deploying to. Once the docker is up to date we can install php and composer. Once these operations are successfully completed we were able to start the docker service.
How to Run.
- Clone the project: https://github.com/airavata-courses/spring17-laravel-portal
- Make changes and commit. Once you are certain that the commit does not break the
before-install.sh
andinstall.sh
script you can push the code. This triggers the Travis to deploy the repository to a docker container and start the service on Amazon instance.
Commit URL.
These are some of the commits:
Apache Airavata developer’s mailing list.
None
Apache Airavata Jiras that you created or commented on.
None
Git pull requests that you made to Apache Airavata’s repo.
None