Coder Social home page Coder Social logo

haberkornjonas / perforce-server-on-docker-for-unreal Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 2.0 13 KB

Starting a perforce server inside a docker container configured for unreal projects.

Dockerfile 42.38% Shell 57.62%
docker perforce unreal-engine

perforce-server-on-docker-for-unreal's Introduction

Perforce Server for Unreal in a Docker container

Author: Jonas Haberkorn
Sources: See the chapter below
Description: Setting up a perforce server in a docker container that is already configured for Unreal projects.

Run

To setup the server, you'll need an x86_64 computer with docker installed, then run the following commands (replace <your_admin_password> with the desired/needed admin password)

    docker build --target perforce-server . -t perforce-server:latest --no-cache
    docker run -d -e P4PASSWD='<your_admin_password>' -v /data/perforce:/data -p 8080:8080 -p 1666:1666 -h perforce --name perforce perforce-server 

This will build the image and start a container. The data stored by the perforce server ill be mounted in the /data/perforce directory on your host (you might want to change this path depdending on your preferencies and your operating system).

You can now dowload the P4Admin tool to configure your server and create your users accounts.

And then download a client like the P4V tool if you want the visual one.

You can connect to the server on ssl:<host_ip_or_name>:1666 (you might need to remove the 'ssl:' part in some situations)

Update perforce version

Depending on the version you will use, you will need different elements. First, check the version you would like to use in the Perforce release index.
Then check in the Perforce yum repository what RHEL version is needed. Then do the following in the Dockerfile:

  1. Update the version of the centos image used based on what is needed (RHEL version)
  2. Update the perforce repo url with the right RHEL number
  3. Update the P4_VERSION varaible to match the desired version number (you must ommit the starting '20')

Sources

This is based on the work of ambakshi on his repo docker-perforce.
It is also based on the changes described by Froyok in his repo froyok-perforce and documented in his article.

Disclaimer

I decline any responsibility in case of data loss or in case of a difficult (or even impossible) maintenance if you use this solution.
I did this as a hobby for a small project with friends, nothing serious or professional.
If you still want to use it for your project, I would suggest to setup or to do regularly backups of your project.

perforce-server-on-docker-for-unreal's People

Contributors

haberkornjonas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.