-
Notifications
You must be signed in to change notification settings - Fork 0
Added pre-installed images #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
In order to reduce time consumed to deploy container. Unfortunately only php-fpm and nginx were added, mysql wasn't added because its huge size. In future I'm gonna try to bypass those issues related to constant time consumers
|
|
||
| dockerd & | ||
| /usr/sbin/sshd -D | ||
| # Starting docker daemon + starting ssh daemon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comments
|
|
||
| # Adding images | ||
| docker image load -i /docker-images/nginx.tar | ||
| docker image load -i /docker-images/php-fpm.tar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loading php-fpm image into docker engine
|
To-do: Manual testing required |
1. Added waiting for the docker engine to start.
| /usr/sbin/sshd -D > /dev/null 2>&1 & | ||
|
|
||
| # Waiting for docker engine to start (until 'docker info' returns non-zero exit-code sleep 1) | ||
| until docker info >/dev/null 2>&1; do sleep 1; done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Waiting for docker engine to start before loading the nginx image
| COPY ./docker-web /home/king/docker-web | ||
|
|
||
| # Copying php docker image | ||
| COPY ["./docker-images/php-fpm.tar", "/docker-images/"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copying the image inside the container
|
All the tests have passed successfully. Summation of changes:Added pre-installed php-fpm image.
|
In order to reduce time consumed to deploy container. Unfortunately only php-fpm and nginx were added, mysql wasn't added because its huge size. In future I'm gonna try to bypass those issues related to constant time consumers as well.