Demo the Perforce Server, replicas with Swarm.
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
.
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
- Create a symlink in the
volumes/checkpoints/
directory calledlatest
to the 'zipped' checkpoint you wish to restore. - Unzip the
depots.tar.gz
into thevolumes/p4-home/depots/
directory - Restart docker compose.
Docker will look for a symlink called latest
on startup and do the rest for you.
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