Changes

From Amahi Wiki
Jump to: navigation, search
7 bytes removed ,  11:06, 28 August 2017
no edit summary
===Building Images===
Building images can be tricky and does require some knowledge of the apps as well (For example which php libraries to install, etc). There's a well defined procedure for building images for node and rails apps as well.
* [Dockerizing Node Apps](https://nodejs.org/en/docs/guides/nodejs-docker-webapp/)Dockerizing Node Apps] * [Dockerizing Rails Apps](https://semaphoreci.com/community/tutorials/dockerizing-a-ruby-on-rails-application)Dockerizing Rails Apps]
Building images can be tricky and the image size is a very major issue. To reduce the image size I would suggest the readers to look up the following articles:
* [Reduce Docker Image Size](https://blog.codeship.com/reduce-docker-image-size/)Reduce Docker Image Size] * [Alpine Docker](https://hub.docker.com/_/alpine/)Alpine Docker]
===Install Script===
NOTE: Please note that adding apps might require knowledge about docker and docker-compose and discussing those is out of the scope of this documentation though the links mentioned below might be useful.
* [Container and Layers](https://docs.docker.com/engine/userguide/storagedriver/imagesandcontainers/#container-and-layers)Container and Layers] * [Docker Compose](https://docs.docker.com/compose/overview/)Docker Compose] * [Restart Policies](https://docs.docker.com/engine/admin/start-containers-automatically/)Restart Policies]. Apps run as containers which are managed by docker. If docker daemon is shut down or stopped then the app will also stop. If the container crashes for some reason then it has to be restarted. Using restart policies we can manage this.
Now once we are done with making a docker-compose file we can test it on our local system to see if it is working properly or not. Once that's done, we can go ahead and add this image to amahi.org
15

edits