#!/usr/bin/env bash # This bootstraps a new CentOS server with the Perforce SDP. # This script sets up: # - SDP filesystems # - perforce account # - Loads SDP with the Sample Depot DataDir=/shared/cbd/test/data SDPFile=sdp.Unix.2014.2.10464.tgz SDPURL=http://swarm.workshop.perforce.com/files/guest/perforce_software/sdp/dist/$SDPFile echo "Making sdp directories" sudo mkdir /depotdata sudo mkdir /metadata sudo mkdir /logs echo "Creating perforce user" sudo groupadd perforce sudo useradd -d /p4 -s /bin/bash -m perforce -g perforce echo "Allowing user 'perforce' sudo privileges" echo 'perforce ALL=(ALL) NOPASSWD:ALL'>/tmp/perforce sudo chmod 0700 /tmp/perforce sudo chown root:root /tmp/perforce sudo mv /tmp/perforce /etc/sudoers.d/. echo perforce:cbd4me2day | sudo chpasswd # Setup a few things to make life easier as the Perforce user BASH_PROF=/tmp/.bash_profile echo '[[ -r /p4/common/bin/p4_vars ]] && source /p4/common/bin/p4_vars 1'> $BASH_PROF echo 'export P4CONFIG=.p4config'>> $BASH_PROF sudo chown perforce:perforce $BASH_PROF sudo mv $BASH_PROF /p4/. RESET_SDP=/tmp/reset_sdp.sh echo '#!/bin/bash'> $RESET_SDP echo 'sudo cp -p /sdp/dist/$SDPFile /depotdata/.'>> $RESET_SDP echo 'cd /depotdata'>> $RESET_SDP echo 'sudo tar -xzvpf $SDPFile'>> $RESET_SDP echo 'sudo chown -R perforce:perforce /depotdata'>> $RESET_SDP sudo chmod +x $RESET_SDP sudo chown perforce:perforce $RESET_SDP sudo mv $RESET_SDP /p4 sudo /p4/reset_sdp.sh echo "Setup done." #sudo ln -s /sdp/Server/test/test_SDP.py /p4/test_SDP.py #sudo chown perforce:perforce /p4/test_SDP.py
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#9 | 22191 | C. Thomas Tyler | Copy Up using 'p4 copy -r -b perforce_software-cbd-dev'. | ||
#8 | 21801 | C. Thomas Tyler | Tweaked to adapt to new SDP volume mount point structure. | ||
#7 | 19292 | C. Thomas Tyler |
Copy Up from dev to main. Released CBD/MultiArch/2016.1/19285 (2016/05/07). * Added 'Version' file and Release Notes. * Added test suite documentation. * Tweaks to CBD logging, back to using append mode. |
||
#6 | 16666 | C. Thomas Tyler | Adjusted password to the same value used for Battle School. | ||
#5 | 15151 | C. Thomas Tyler |
Partial Copy Up to main from ntx64 for CBD, using: p4 copy -r -b perforce_software-cbd-ntx64 Then SSTemplateUpdate.py was reverted, as it has changes in the ntx64 development branch not yet ready for general consumption. |
||
#4 | 15022 | C. Thomas Tyler |
Copy-Up to main from ntx64: * Fixed Cbd.py issue with an exception handling bug for Host field. * Rebased CbdDev.py to Cbd.py * Simplified test operations. * Fixed a cosmetic typo in test doc/data. |
||
#3 | 15009 | C. Thomas Tyler | Promoted CBD development work to main from dev. | ||
#2 | 11366 | C. Thomas Tyler | Promoted CBD from dev to main. | ||
#1 | 11356 | C. Thomas Tyler |
Promotion from Dev Branch. What's included: * CBD scripts for Streams as demonstrated at Merge 2014. * Deletion of files from the original PoC that aren't needed. What's coming later, still work in progress on the dev branch: * Documentation. * Test Suite with complete Vagrant-based Test Environment. * CBD scripts for Classic. |
||
//guest/perforce_software/cbd/dev/test/bootstrap-sdp-setup.sh | |||||
#1 | 11354 | C. Thomas Tyler | Started work on Vagrant test harness. |