Update Dockerfile

Add more plugins and clean up dockerfile.
This commit is contained in:
Ari Timonen 2018-04-28 00:56:35 -04:00
parent 535c24fae9
commit fce4850d6f
4 changed files with 278 additions and 10 deletions

View file

@ -39,26 +39,25 @@ RUN yes|unzip -o amxx.zip && \
COPY src/*.sma /home/amxx/build/base/addons/amxmodx/scripting/
COPY src/include/* /home/amxx/build/base/addons/amxmodx/scripting/include
#USER root
#RUN chown -R amxx:amxx /home/amxx /var/build
#USER amxx
WORKDIR /home/amxx/build/base/addons/amxmodx/scripting
RUN ./amxxpc ENSL.sma && cp ENSL.amxx /home/amxx/build
# RUN cp -ra /var/pkg/* /var/build/pkg
WORKDIR /home/amxx/build
# Then just copy the files we need. No extra.
# RUN cp -ra base/addons/metamod pkg/addons/metamod
RUN mkdir -p pkg/addons/amxmodx/plugins && cp ENSL.amxx pkg/addons/amxmodx/plugins/
RUN cp -ra base/addons/amxmodx/modules pkg/addons/amxmodx/ && \
RUN mkdir -p pkg/addons/amxmodx && \
cp -ra base/addons/metamod pkg/addons/metamod && \
cp -ra base/addons/amxmodx/modules pkg/addons/amxmodx/ && \
cp -ra base/addons/amxmodx/plugins pkg/addons/amxmodx/ && \
cp -ra base/addons/amxmodx/data pkg/addons/amxmodx/ && \
cp -ra base/addons/amxmodx/dlls pkg/addons/amxmodx/
cp -ra base/addons/amxmodx/dlls pkg/addons/amxmodx/ && \
cp -ra base/addons/amxmodx/configs pkg/addons/amxmodx/
# Copy ENSL to its place, add overlay files and zip the whole thing
RUN cp ENSL.amxx pkg/addons/amxmodx/plugins/
ADD pkg /home/amxx/build/pkg
RUN zip -r ENSL_SrvPkg.zip *
RUN cd pkg && zip -9 -r ENSL_SrvPkg.zip * && mv ENSL_SrvPkg.zip ..
COPY build.sh /home/amxx/

View file

@ -0,0 +1,185 @@
// AMX Mod X Configuration File
echo Executing AMX Mod X Configuration File
// Default access for all non admin players (see users.ini for access details)
//
// Default value: "z"
amx_default_access "z"
// Name of setinfo which should store a password on a client (you should change this)
// Note: Always prefix the field with an underscore (aka: "_")
// (Example: setinfo _pw "password")
//
// Default value: "_pw"
amx_password_field "_pw"
// Mode of logging to a server
// 0 - disable logging, players won't be checked (and access won't be set)
// 1 - normal mode which obey flags set in accounts
// 2 - kick all players not on list
//
// Default value: 1
amx_mode 1
// Show admins activity
// 0 - disabled
// 1 - show without admin name
// 2 - show with name
//
// Default value: 2
amx_show_activity 2
// Frequency in seconds and text of scrolling message
//
// Default value: "Welcome to %hostname% -- This server is using AMX Mod X" 600
// amx_scrollmsg "Welcome to %hostname% -- This server is using AMX Mod X" 600
// Center typed colored messages (last parameter is a color in RRRGGGBBB format)
//
// Default values: "Welcome to %hostname%" "000255100"
// "This server is using AMX ModX\nVisit http://www.amxmodx.org" "000100255"
// amx_imessage "Welcome to %hostname%" "000255100"
// amx_imessage "This server is using AMX Mod X\nVisit http://www.amxmodx.org" "000100255"
// Frequency in seconds of colored messages
//
// Default value: 180
// amx_freq_imessage 180
// Ban times for the main ban menu (amx_banmenu)
// Use 0 for permanent ban.
// Default values: 0 5 10 15 30 45 60
amx_plmenu_bantimes 0 5 10 15 30 45 60
// Slap damage amounts for the main slap menu (amx_slapmenu)
// Slay is automatically inserted as the first option.
// Default values: 0 1 5
amx_plmenu_slapdamage 0 1 5
// Set in seconds how fast players can chat (chat-flood protection)
//
// Default value: 0.75
amx_flood_time 0.75
// Amount of slots to reserve.
//
// Default value: 0
amx_reservation 0
// If you set this to 1, you can hide slots on your server.
// If server "full" of public slots and slots hidden, you must manually connect with connect console command
//
// Default value: 0
amx_hideslots 0
// Displaying of time remaining
// a - display white text on bottom
// b - use voice
// c - don't add "remaining" (only in voice)
// d - don't add "hours/minutes/seconds" (only in voice)
// e - show/speak if current time is less than this set in parameter
//
// Default value: "ab 180" "ab 120" "ab 60" "bcde 11"
amx_time_display "ab 180" "ab 120" "ab 60" "bcde 11"
// Announce "say thetime" and "say timeleft" with voice, set to 0 to disable.
//
// Default value: 1
amx_time_voice 1
// Minimum delay in seconds between two voting sessions
//
// Default value: 10
amx_vote_delay 10
// How long voting session goes on
//
// Default value: 10
amx_vote_time 10
// Display who votes for what option, set to 0 to disable, 1 to enable.
//
// Default value: 1
amx_vote_answers 1
// Some ratios for voting success
// Default value: 0.40
amx_votekick_ratio 0.40
// Default value: 0.40
amx_voteban_ratio 0.40
// Default value: 0.40
amx_votemap_ratio 0.40
// Default value: 0.02
amx_vote_ratio 0.02
// Max. time to which map can be extended
//
// Default value: 90
amx_extendmap_max 90
// Step for each extending
//
// Default value: 15
amx_extendmap_step 15
// If you set this to 0, clients cannot chose their language, instead they use
// whatever language the server is configured to use.
//
// Default value: 1
amx_client_languages 1
// Plugin Debug mode
// 0 - No debugging (garbage line numbers)
// 1 - Plugins with "debug" option in plugins.ini are put into debug mode
// 2 - All plugins are put in debug mode
// Note - debug mode will affect JIT performance
//
// Default value: 1
amx_debug 1
// Plugin MultiLingual Debug
// To debug a language put its 2 letter code between quotes ("en", "de", etc)
// "" means disabled
//
// Default value: ""
amx_mldebug ""
//
// Beginning of Natural-Selection specific configurations.
//
// Ignore the minimum and maximum settings for maps in the mapcycle
//
// Default value: 0
amx_mapnum_ignore 0
// Idle Kicker Settings
// Requires the "idlekicker.amxx" plugin to be enabled.
// Time players must be idle to be kicked, in seconds.
//
// Default value: 120
amx_idle_time 120
// Minimum players on the server before the plugin begins kicking.
//
// Default value: 8
amx_idle_min_players 8
// Whether or not to kick admins with immunity. 1 will kick, 0 will not.
//
// Default value: 1
amx_idle_ignore_immunity 1
// Unstuck settings
// Requires the "unstuck.amxx" plugin to be enabled.
// Change this value to alter the frequency (in seconds) players can
// say /stuck to free themselves.
//
// Default value: 4
amx_unstuck_frequency 4

View file

@ -0,0 +1,39 @@
; Configuration file for AMX Mod X
amxx_logs addons/amxmodx/logs
amxx_configsdir addons/amxmodx/configs
amxx_datadir addons/amxmodx/data
amxx_modules addons/amxmodx/configs/modules.ini
amxx_plugins addons/amxmodx/configs/plugins.ini
amxx_pluginsdir addons/amxmodx/plugins
amxx_modulesdir addons/amxmodx/modules
amxx_vault addons/amxmodx/data/vault.ini
; Logging mode
; 0 - no logging
; 1 - one logfile / day
; 2 - one logfile / map
; 3 - HL Logs
amxx_logging 1
; Binary logging level
; add these up to get what you want
; these only work with bin logging binaries
; 1 - default
; 2 - log internal string sets/gets
; 4 - log internal formats
; 8 - log all native params
; 16 - log internal function calls (only in debug mode)
; 32 - log line number accesses (only in debug mode)
bin_logging 0
; Maximum binary log size, in megs
max_binlog_size 20
; Plugin optimization flags - add these up to get what you want
; lowering these may stop crashes on very old CPUs
; set 65536 to disable optimizer, NOT 0!
;-------------
; 1 - float arithmetic
; 2 - float comparisons
; 4 - float rounding
optimizer 7

View file

@ -0,0 +1,45 @@
; AMX Mod X plugins
; Admin Base - Always one has to be activated
admin.amxx ; admin base (required for any admin-related)
;admin_sql.amxx ; admin base - SQL version (comment admin.amxx)
; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management
; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
;telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)
pluginmenu.amxx ; Menus for commands/cvars organized by plugin
; Chat / Messages
adminchat.amxx ; console chat commands
antiflood.amxx ; prevent clients from chat-flooding the server
;scrollmsg.amxx ; displays a scrolling message
;imessage.amxx ; displays information messages
adminvote.amxx ; vote commands
; Map related
nextmap.amxx ; displays next map in mapcycle
mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map
; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
; NS Specific plugins
; idlekicker.amxx ; kicks idle players
nscommands.amxx ; extra commands for Natural-Selection
;unstuck.amxx ; Free stuck players (engine & ns modules required!)
; Enable to use AMX Mod plugins
;amxmod_compat.amxx ; AMX Mod backwards compatibility layer
; Custom - Add 3rd party plugins here
ENSL.amxx