#!/bin/bash # This script sets up the base docker container for use with SDP testing. # It expects to be run as root within the container. # Create base directories for use by SDP (see mkdirs.sh) mkdir /hxdepots mkdir /hxmetadata1 mkdir /hxmetadata2 mkdir /hxlogs # Create Perforce group and user within that group, and allow them sudo privileges groupadd perforce useradd -d /p4 -s /bin/bash -m perforce -g perforce echo 'perforce ALL=(ALL) NOPASSWD:ALL'> /tmp/perforce chmod 0440 /tmp/perforce chown root:root /tmp/perforce mv /tmp/perforce /etc/sudoers.d echo perforce:Password | chpasswd # # Helpful profile for perforce user login profile - for manual testing mainly # BASH_PROF=/p4/.bash_profile cat <<"EOF" >$BASH_PROF export PATH=/sdp/Server/Unix/p4/common/bin:$PATH export P4CONFIG=.p4config export P4P4PORT=1666 PS1='\u@\h:\w$ ' EOF chown perforce:perforce $BASH_PROF
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 25279 | C. Thomas Tyler |
Released SDP 2019.1.25276 (2019/03/06). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#5 | 25245 | C. Thomas Tyler |
Released SDP 2019.1.25238 (2019/03/02). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#4 | 25012 | Robert Cowham | Propagate test updates from dev and fix failing test by also propagating deleted script. | ||
#3 | 21338 | C. Thomas Tyler |
Released SDP 2016.2.21328 (2016/12/16). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#2 | 20974 | C. Thomas Tyler |
Released SDP 2016.2.20972 (2016/11/01). Copy Up using 'p4 copy -r -b perforce_software-sdp-dev'. |
||
#1 | 19322 | Robert Cowham |
Propagate Docker tests to Main. No functional change. |
||
//guest/perforce_software/sdp/dev/test/docker/setup_container.sh | |||||
#2 | 19130 | Robert Cowham | Added comments - no functional change | ||
#1 | 19045 | Robert Cowham |
Add docker file for Centos7 Refactor to move common stuff to a shell script. |