Zend by Perforce Training
- Create a new directory for this course
- In this instruction guide we'll call it
/path/to/course
- In this instruction guide we'll call it
- Clone or copy this repository to your local computer
- If you have
git
installed, proceed as follows- Open a terminal window / command prompt
- Change directory to
/path/to/course
- Clone the repository:
- If you have
git clone https://github.com/zendtech/Laminas-Level-1-Attendee.git
- If you do not have
git
installed, proceed as follows:- Create a directory
/path/to/course/Laminas-Level-1-Attendee
- Download the ZIP file from this URL:
- Unzip the ZIP file into
/path/to/course/Laminas-Level-1-Attendee
- Create a directory
- If you are running Windows, start here:
- If you are on a Mac, start here:
- If you are running Linux, start here:
- Install Docker
- If you installed either Docker Desktop for Windows or Docker Desktop for Mac Docker Compose is already included
- If you are running Linux, follow these instructions:
- Open a terminal window / command prompt
- Change directory to
/path/to/course/Laminas-Level-1-Attendee
- Execute this command:
docker-compose up -d
- You will see a series of downloads as the container is built
- You will also see a series of shell script commands as supporting course software is installed
- The download and build process only runs the first time
- To make sure the container is running, type this command:
docker container ls
- Open a terminal window / command prompt
- Change directory to
/path/to/course/Laminas-Level-1-Attendee
- Execute this command:
docker exec laminas_1 /bin/bash -c "/tmp/init_apps.sh"
- Open a browser from your local computer
- Open this URL:
http://localhost:8888/
- Or:
http://10.10.10.10/
- Open a terminal window / command prompt
- Change directory to
/path/to/course/Laminas-Level-1-Attendee
- Execute this command:
docker-compose down
- To stop a container, first get the container ID by running
docker container ls
- Then issue this command:
docker container stop CONTAINER_ID
- To remove a container, first get the container ID by running
docker container ls
- Then issue this command:
docker container rm CONTAINER_ID
- To see images created use this command:
docker image ls
- To remove an image, first the the image ID by running
docker image ls
- Then issue this command:
docker image rm IMAGE_ID
- Free up disk space, issue this command:
docker system prune
- If you get a message saying that
port 8888
is already in use, stop any running containers, and restart this one- If you still get the message, modify the
docker-compose.yml
file and change the port from8888
to something else (e.g. try9999
)
- If you still get the message, modify the
Username: laminas
Password: password
To access phpMyAdmin (from your host computer browser):
http://localhost:8888/phpmyadmin
, orhttp://10.10.10.10/phpmyadmin
Two admin command line tools have been provided to help with the above commands:
- Linux or Mac:
./admin.sh
- Windows:
admin.bat
- [email protected]: initial check-in
- Updated all ZF apps to Laminas
- Added Docker infrastructure