Docker Helix Server README DOCKER SETUP ON YOUR WORKSTATION --------------------------------- 1. Sync the Eval-Demo dataset 2. Install Docker for the OS of your workstation (Windows|Mac|Linux) 3. Test the installation - In a command shell type `docker run Hello_World` - This should automatically build a Docker image on your computer and run a container from the image. 5. Ensure the enclosed Dockerfile, main.conf, and start_p4d.sh are located in the same directory. 6. Run 'docker build -t p4d:$P4D_VERSION .' for the directory where the Dockerfile is located. 7. Run the following: 'docker run -dit -p $LOCAL_PORT_NUMBER:1666 -v /$EVALDEMO_SYNC_DIR/perforce1666:/home/perforce/perforce1666 --name p4demo -u perforce p4d:$P4D_VERSION' - This will run the container as a background process and mount /$EVALDEMO_SYNC_DIR/perforce1666 in the container at /home/perforce/perforce1666. - You will need to ensure the the -v parameter points the location of your sync'd dataset on you laptop. 8. Ensure the container is running with 'docker ps -l' -You should see something like the following: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 60843c47243f p4d:16.2 "/start_p4d.sh" 8 seconds ago Up 7 seconds 0.0.0.0:1666->1666/tcp p4demo 10. Ensure that you can connect to the p4d running in the container. - p4 -p :1666 info - You should see something like: $ p4 -p 192.168.99.101:1666 info User name: twilliams Client name: twilliams_EvalDemo_Demo_dataset Client host: Terrys-iMac.local Client unknown. Current directory: /Users/terry/Documents/Work/Perforce/perforce1666 Peer address: 192.168.99.1:58463 Client address: 192.168.99.1 Server address: 60843c47243f:1666 Server root: /p4db Server date: 2016/01/26 07:32:03 +0000 UTC Server uptime: 00:01:05 Server version: P4D/LINUX26X86_64/2015.2/1326881 (2016/01/18) Server license: none Case Handling: sensitive 11. You will need to SSH into the container from the Docker host and run the demosetup.sh in perforce1666 folder. - Run the command 'docker exec -it p4demo /bin/bash - This will exit a shell in the running container. - cd /home/perforce/perforce1666 ; sudo ./demosetup.sh