rayyounghong/perforce-helix-core

By rayyounghong

Updated about 4 hours ago

Docker image for running Perforce Helix Core Server

Image
0

6.9K

rayyounghong/perforce-helix-core repository overview

docker-perforce-helix-core

docker-perforce-helix-core is a Docker image for running Perforce Helix Core Server. Multi-arch: linux/amd64, linux/arm64.

mkdir -p ./perforce
docker run -d --name p4d \
  -p 1666:1666 \
  -e P4PORT=1666 \
  -v "$(pwd)/perforce:/perforce" \
  rayyounghong/perforce-helix-core:latest

The container runs p4d as the non-root perforce user. On first start it initializes the database under P4ROOT and writes server.id if missing.

Docker Compose

services:
  p4d:
    image: rayyounghong/perforce-helix-core:latest
    container_name: p4d
    ports:
      - "1666:1666"
    environment:
      - P4PORT=1666
    volumes:
      - ./perforce:/perforce
    restart: unless-stopped

Environment variables

VariableDefaultPurpose
P4PORT1666Port p4d listens on
P4ROOT/perforce/metadataServer metadata directory
P4LOG/perforce/logs/p4d.logServer log file
P4JOURNAL/perforce/logs/journalJournal file
P4SERVERIDmaster.1Value written to server.id

Volumes

/perforce holds all server state (metadata/ and logs/). Mount it as a named volume or bind mount to persist data across container restarts.

Healthcheck

The image ships a healthcheck that runs p4 -p localhost:$P4PORT info every 30 seconds. Use docker ps or docker inspect to see the health status.

Tag summary

Content type

Image

Digest

sha256:3ddd78b96

Size

55.9 MB

Last updated

about 4 hours ago

docker pull rayyounghong/perforce-helix-core