sudo apt-get install docker.io
sudo usermod -aG docker $USER
sudo reboot
sudo yum install docker-engine
sudo service docker start
Compose is a tool for defining and running multi-container Docker applications. With Compose, we use a Compose file to configure your application’s services. Then, using a single command ( docker-compose up ), we create and start all the services from your configuration.
sudo -i
curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
Test the installation using
docker-compose --version
To run the rc-country container follow the following steps :
git clone [email protected]:web-apps/docker-rc-country-subsite.git
cd docker-rc-country-subsite
mv .env.example .env
Edit .env file according to requirements
./build.sh
While running the script the script will prompt user for primary and secondary color.The primary color is the main color of the site. It is used for headings, links and button color. The secondary color is for hover.
NOTE: The color does not changes if we run the script more than once. This is due to the problem that docker-compose would not rebuild the container again.Instead it will take from the cache.To solve this problem,before running the script the user have to follow the following instructions.
docker-compose build --no-cache
./build.sh
- Initially Default Image for the country site is displayed.
- You can change the image by visiting the URI:
*
/admin
(Login providing the credentials). * Click Manage Image * Choose new image and upload it.
- Provide the followind details in the .env file like: * Database Host * Database Name * Database Username * Database Password * Country Code