Follow the commands below to build the docker image successfully for Php5.2 & Apache 2.2. The Dockerfile is based on Official CentOS pulling from the remote repository (FROM centos:6
) as selected before it starts packaging the required softwares and libraries for php and apache.
Run the command below to pull the docker file from Projects repository.
Command:
git clone [email protected]:mark.c/Projects.git
Run the command below to change directory to Protocol2/AmazonLinux/Uprinting/store folder.
Command:
cd Projects/Protocol2/AmazonLinux/Uprinting/store
Run the command below to build and run the image.
NOTE: The script will ask for the image name, containter name, and the host port bind the to container port. Wait until the "Instruction" message appear.
Command:
sh run.sh
You can Build and Run the image manually by typing the command below
Build Command:
docker build -t store .
Run Command:
docker run -dit -p 80:80 -e NR_INSTALLKEY="license_key" -e DOMAIN_NAME="www.uprinting.com" -e DOMAIN_STORE="store.uprinting.com" -e DOMAIN_PAYMENT="payment.uprinting.com" -e DOMAIN_DESIGN="design.uprinting.com" --name store store
Will publish the container’s port(s) to the host port(s) that you entered a while ago
You should be able to access the container using http://{YOUR_IP} and it should display the content below.
Display:
File not Found!