-
Notifications
You must be signed in to change notification settings - Fork 3
/
linux.hasty.Dockerfile
82 lines (73 loc) · 3.14 KB
/
linux.hasty.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# escape=`
FROM lacledeslan/gamesvr-csgo-warmod:latest
HEALTHCHECK NONE
ARG BUILDNODE="unspecified"
ARG SOURCE_COMMIT
LABEL maintainer="Laclede's LAN <contact @lacledeslan.com>" `
com.lacledeslan.build-node=$BUILDNODE `
org.label-schema.schema-version="1.0" `
org.label-schema.url="https://github.com/LacledesLAN/README.1ST" `
org.label-schema.vcs-ref=$SOURCE_COMMIT `
org.label-schema.vendor="Laclede's LAN" `
org.label-schema.description="LL Counter-Strike GO Warmod Hasty Server" `
org.label-schema.vcs-url="https://github.com/LacledesLAN/gamesvr-csgo-warmod"
#
# Begun, the hasty hacks have
#
RUN FILE="/app/csgo/cfg/gamemode_competitive_server.cfg" &&`
echo "\n\n//==Hasty Hacks" >> "$FILE" &&`
echo "bot_difficulty 0" >> $FILE &&`
echo "bot_quota 2" >> $FILE &&`
echo "bot_zombie 1" >> $FILE &&`
echo "mp_buytime 5" >> $FILE &&`
echo "mp_c4timer 25" >> $FILE &&`
echo "mp_defuser_allocation 2" >> $FILE &&`
echo "mp_freezetime 5" >> $FILE &&`
echo "mp_halftime_duration 8" >> $FILE &&`
echo "mp_match_restart_delay 12" >> $FILE &&`
echo "mp_maxrounds 4" >> $FILE &&`
echo "mp_overtime_maxrounds 3" >> $FILE &&`
echo "sv_cheats 1" >> $FILE &&`
echo "wm_min_ready 1" >> $FILE &&`
FILE="/app/csgo/cfg/server.cfg" &&`
echo "\n\n//==Hasty Hacks" >> "$FILE" &&`
echo "sv_cheats 1" >> $FILE &&`
FILE="/app/csgo/cfg/warmod/on_match_end.cfg" &&`
echo "\n\n//==Hasty Hacks" >> "$FILE" &&`
FILE="/app/csgo/cfg/warmod/ruleset_default.cfg" &&`
echo "\n\n//==Hasty Hacks" >> "$FILE" &&`
echo "bot_zombie 1" >> $FILE &&`
echo "mp_maxrounds 4" >> $FILE &&`
echo "mp_overtime_maxrounds 3" >> $FILE &&`
FILE="/app/csgo/cfg/warmod/ruleset_global.cfg" &&`
echo "\n\n//==Hasty Hacks" >> "$FILE" &&`
echo "sv_cheats 1" >> $FILE &&`
echo "wm_min_ready 1" >> $FILE &&`
FILE="/app/csgo/cfg/warmod/ruleset_knife.cfg" &&`
echo "\n\n//==Hasty Hacks" >> "$FILE" &&`
echo "bot_zombie 1" >> $FILE &&`
echo "mp_maxrounds 4" >> $FILE &&`
echo "mp_overtime_maxrounds 3" >> $FILE &&`
FILE="/app/csgo/cfg/warmod/ruleset_overtime.cfg" &&`
echo "\n\n//==Hasty Hacks" >> "$FILE" &&`
echo "bot_zombie 1" >> $FILE &&`
echo "mp_maxrounds 4" >> $FILE &&`
echo "mp_overtime_maxrounds 3" >> $FILE &&`
FILE="/app/csgo/cfg/warmod/ruleset_playout.cfg" &&`
echo "\n\n//==Hasty Hacks" >> "$FILE" &&`
echo "bot_zombie 1" >> $FILE &&`
echo "mp_maxrounds 4" >> $FILE &&`
echo "mp_overtime_maxrounds 3" >> $FILE &&`
FILE="/app/csgo/cfg/warmod/ruleset_warmup.cfg" &&`
echo "\n\n//==Hasty Hacks" >> "$FILE" &&`
echo "mp_buytime 5" >> $FILE &&`
echo "mp_freezetime 5" >> $FILE &&`
echo "sv_cheats 1" >> $FILE
# UPDATE USERNAME & ensure permissions
RUN usermod -l CSGOWarmodHasty CSGOWarmod &&`
chmod +x /app/ll-tests/*.sh &&`
chmod 774 /app/csgo/cfg/*.cfg &&`
chmod 774 /app/csgo/cfg/warmod/*.cfg
USER CSGOWarmodHasty
WORKDIR /app/
CMD ["/bin/bash"]