项目作者: p4paul

项目描述 :
Sample Docker containers for Helix products
高级语言: Perl
项目地址: git://github.com/p4paul/helix-docker.git
创建时间: 2017-12-12T14:26:20Z
项目社区:https://github.com/p4paul/helix-docker

开源协议:

下载


Helix Docker demos

Demo the Perforce Server, replicas with Swarm.

Build and Run

  1. docker-compose build
  2. 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/)

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

and then zip up the depots directory e.g.

  1. cd volumes/p4-home/depots/
  2. 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:

  1. docker-compose kill
  2. ./clean.sh

Remove all image caches and start from fresh:

  1. docker-compose build --no-cache