Skip to content

Latest commit

 

History

History
50 lines (27 loc) · 1.22 KB

README.md

File metadata and controls

50 lines (27 loc) · 1.22 KB

Helix Docker demos

Demo the Perforce Server, replicas with Swarm.

Build and Run

docker-compose build
docker-compose up

Swarm server runs on port 5080.

Perforce server is on port 4000 and replica on port 4001.

Perforce super user is super and password Passw0rd.

Backup

Take a checkpoint (created in volumes/p4-home/checkpoints/)

p4 -C utf8  -p 4000 -u super admin checkpoint -Z

and then zip up the depots directory e.g.

cd volumes/p4-home/depots/
tar cvfz depots.tar.gz *

Copy both the volumes/p4-home/depots/depots.tar.gz and volumes/p4-home/checkpoints/master.ckp.*.gz to a safe location

Restore

  1. Create a symlink in the volumes/checkpoints/ directory called latest to the 'zipped' checkpoint you wish to restore.
  2. Unzip the depots.tar.gz into the volumes/p4-home/depots/ directory
  3. Restart docker compose.

Docker will look for a symlink called latest on startup and do the rest for you.

Cleanup

If things stop working try the following:

Simple cleanup script (intended for OS X) to remove unused docker images and volumes:

docker-compose kill
./clean.sh

Remove all image caches and start from fresh:

docker-compose build --no-cache