LacledesLAN / gamesvr-blackmesa

Black Mesa Server in Docker
https://hub.docker.com/r/lacledeslan/gamesvr-blackmesa/
The Unlicense
4 stars 0 forks source link

Use force_install_dir before login #5

Closed MaKraMc closed 6 months ago

MaKraMc commented 6 months ago

Also make build script executable.

When downloading the game using steamcmd we get a warning:

image

We simply have to move the order of the options around.

dudleycodes commented 6 months ago

Build validated; pushed updated image to Docker Hub:

[./lacledeslan/gamesvr-blackmesa] - Updating repo: remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 10 (delta 4), reused 3 (delta 2), pack-reused 0
Unpacking objects: 100% (10/10), 3.38 KiB | 14.00 KiB/s, done.
From https://github.com/LacledesLAN/gamesvr-blackmesa
   1dcf3a8..aeb068a  master     -> origin/master
Updating 1dcf3a8..aeb068a
Fast-forward
 .github/workflows/update-dockerhub.yml | 2 +-
 build.sh                               | 0
 linux.Dockerfile                       | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 mode change 100644 => 100755 build.sh
[./lacledeslan/gamesvr-blackmesa-freeplay] - Updating repo: remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 2), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), 2.17 KiB | 12.00 KiB/s, done.
From https://github.com/LacledesLAN/gamesvr-blackmesa-freeplay
   579c5f1..ec85311  master     -> origin/master
Fetching submodule sourcemod-configs
Fetching submodule sourcemod.linux
Updating 579c5f1..ec85311
Fast-forward
 .github/workflows/update-dockerhub.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Build gamesvr-blackmesa
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[Build Full Image]
[+] Building 546.5s (20/20) FINISHED                                                                                                                                                                                  docker:default
 => [internal] load build definition from linux.Dockerfile                                                                                                                                                                      0.0s
 => => transferring dockerfile: 2.25kB                                                                                                                                                                                          0.0s
 => [internal] load metadata for docker.io/library/debian:buster-slim                                                                                                                                                           0.7s 
 => [internal] load metadata for docker.io/lacledeslan/steamcmd:linux                                                                                                                                                           1.6s 
 => [auth] library/debian:pull token for registry-1.docker.io                                                                                                                                                                   0.0s
 => [auth] lacledeslan/steamcmd:pull token for registry-1.docker.io                                                                                                                                                             0.0s
 => [internal] load .dockerignore                                                                                                                                                                                               0.0s
 => => transferring context: 87B                                                                                                                                                                                                0.0s 
 => [blackmesa-builder 1/3] FROM docker.io/lacledeslan/steamcmd:linux@sha256:bced221e8c77785568e622bdef61b7529e0f71796300e10cf7e583d3b7290425                                                                                   0.1s 
 => => resolve docker.io/lacledeslan/steamcmd:linux@sha256:bced221e8c77785568e622bdef61b7529e0f71796300e10cf7e583d3b7290425                                                                                                     0.0s 
 => [internal] load build context                                                                                                                                                                                               0.1s 
 => => transferring context: 6.09kB                                                                                                                                                                                             0.1s 
 => [stage-1 1/9] FROM docker.io/library/debian:buster-slim@sha256:a7c825a81b4c09e0675ef834b6799fa7b7d1f82d6afd12a16be7d46440fe15cb                                                                                             2.1s 
 => => resolve docker.io/library/debian:buster-slim@sha256:a7c825a81b4c09e0675ef834b6799fa7b7d1f82d6afd12a16be7d46440fe15cb                                                                                                     0.0s 
 => => sha256:a7c825a81b4c09e0675ef834b6799fa7b7d1f82d6afd12a16be7d46440fe15cb 984B / 984B                                                                                                                                      0.0s
 => => sha256:f72a39c56a37bf0b9d27b46995e099628901f568d2ea6f2148de615e45b8e733 529B / 529B                                                                                                                                      0.0s 
 => => sha256:7e196a6903de508c9d4f79c2311db0368ad98312a8b08ecfce0ec7d43874287b 1.46kB / 1.46kB                                                                                                                                  0.0s 
 => => sha256:6299ae3fea5d052b297d91a57200563362b8f2c95358c6e3010d6fa3ed44e7c4 27.34MB / 27.34MB                                                                                                                                0.7s 
 => => extracting sha256:6299ae3fea5d052b297d91a57200563362b8f2c95358c6e3010d6fa3ed44e7c4                                                                                                                                       1.3s 
 => [blackmesa-builder 2/3] COPY ./.steamcmd/linux /output                                                                                                                                                                      0.1s
 => [blackmesa-builder 3/3] RUN if [ "false" = true ] ; then         echo "\n\nSkipping SteamCMD install -- using only contents from steamcmd\n\n";     else         echo "\n\nDownloading Blackmesa via SteamCMD";           404.0s 
 => [stage-1 2/9] RUN dpkg --add-architecture i386 &&    apt-get update && apt-get install -y         ca-certificates lib32gcc1 libtinfo5:i386 libstdc++6:i386 locales locales-all tmux &&    apt-get clean &&    echo "LC_AL  13.7s 
 => [stage-1 3/9] RUN useradd --home /app --gid root --system BlackMesa &&    mkdir -p /app/ll-tests &&    chown BlackMesa:root -R /app;                                                                                        0.3s 
 => [stage-1 4/9] COPY --chown=BlackMesa:root --from=blackmesa-builder /output /app                                                                                                                                            71.4s 
 => [stage-1 5/9] RUN true                                                                                                                                                                                                      0.4s 
 => [stage-1 6/9] COPY --chown=BlackMesa:root ./dist/linux/ll-tests /app/ll-tests                                                                                                                                               0.1s 
 => [stage-1 7/9] RUN chmod +x /app/ll-tests/*.sh;                                                                                                                                                                              0.4s 
 => [stage-1 8/9] RUN echo $'\n\nLinking steamclient.so to prevent srcds_run errors' &&        mkdir -p /app/.steam/sdk32 &&        ln -s /app/bin/steamclient.so /app/.steam/sdk32/steamclient.so;                             0.4s 
 => [stage-1 9/9] WORKDIR /app                                                                                                                                                                                                  0.3s 
 => exporting to image                                                                                                                                                                                                         49.5s 
 => => exporting layers                                                                                                                                                                                                        49.5s 
 => => writing image sha256:6656f817e553d5536b83a6572b357fbf1f8ff204758e58fa0cc7f0e0db0938f3                                                                                                                                    0.0s 
 => => naming to docker.io/lacledeslan/gamesvr-blackmesa:latest                                                                                                                                                                 0.0s 

What's Next?
  View a summary of image vulnerabilities and recommendations → docker scout quickview

[Running Image Self-Checks]

RUNNING TEST: gamesvr-blackmesa-153310
Command: /app/srcds_run -game bms +map gasworks -insecure -maxplayers 8 -norestart +sv_lan 1
Running under uid=999(BlackMesa) gid=0(root) groups=0(root)

0...5...10...15...20...25...succeeded.

[LOGFILE OUTPUT]
»»  Auto detecting CPU
»»  Using default binary: ./srcds_linux
»»  Using Breakpad minidump system. Version: 100002 AppID: 346680
»»  Setting breakpad minidump AppID = 346680
»»  Using breakpad crash handler
»»  Loaded 8624 VPK file hashes from /app/bms/bms_textures.vpk for pure server operation.
»»  Loaded 8624 VPK file hashes from /app/bms/bms_textures.vpk for pure server operation.
»»  Loaded 14 VPK file hashes from /app/bms/bms_materials.vpk for pure server operation.
»»  Loaded 14 VPK file hashes from /app/bms/bms_materials.vpk for pure server operation.
»»  Loaded 6590 VPK file hashes from /app/bms/bms_models.vpk for pure server operation.
»»  Loaded 6590 VPK file hashes from /app/bms/bms_models.vpk for pure server operation.
»»  Loaded 136 VPK file hashes from /app/bms/bms_misc.vpk for pure server operation.
»»  Loaded 136 VPK file hashes from /app/bms/bms_misc.vpk for pure server operation.
»»  Loaded 4525 VPK file hashes from /app/bms/bms_sounds_misc.vpk for pure server operation.
»»  Loaded 4525 VPK file hashes from /app/bms/bms_sounds_misc.vpk for pure server operation.
»»  Loaded 767 VPK file hashes from /app/bms/bms_sound_vo_english.vpk for pure server operation.
»»  Loaded 767 VPK file hashes from /app/bms/bms_sound_vo_english.vpk for pure server operation.
»»  Loaded 5329 VPK file hashes from /app/bms/bms_maps.vpk for pure server operation.
»»  Loaded 5329 VPK file hashes from /app/bms/bms_maps.vpk for pure server operation.
»»  Loaded 496 VPK file hashes from /app/hl2/hl2_misc.vpk for pure server operation.
»»  Loaded 224 VPK file hashes from /app/hl2/hl2_sounds_misc.vpk for pure server operation.
»»  Loaded 1223 VPK file hashes from /app/hl2/hl2_textures.vpk for pure server operation.
»»  Loaded 2 VPK file hashes from /app/hl2/hl2_materials.vpk for pure server operation.
»»  Loaded 422 VPK file hashes from /app/hl2/hl2_models.vpk for pure server operation.
»»  Loaded 5 VPK file hashes from /app/platform/platform_misc.vpk for pure server operation.
»»  server_srv.so loaded for "Black Mesa"
»»  [S_API] SteamAPI_Init(): SteamAPI_IsSteamRunning() did not locate a running instance of Steam.
»»  [S_API] SteamAPI_Init(): Loaded '/app/.steam/sdk32/steamclient.so' OK.
»»  [S_API FAIL] SteamAPI_Init() failed; create pipe failed.Parent cvar in server.dll not allowed (sk_xorteb_dispel_dmg)
»»  Init MultiPlayer Params
»»  Init MultiPlayer Params
»»  CampaignManager:  Campaign file "campaigns/campaign_bm_sp.txt" is malformed, failed to parse.
»»  maxplayers set to 8
»»  Looking up breakpad interfaces from steamclient
»»  Calling BreakpadMiniDumpSystemInit
»»  'config.cfg' not present; not executing.
»»  Unknown command "r_farz"
»»  'userconfig.cfg' not present; not executing.
»»  ConVarRef dev_loadtime_map_start doesn't point to an existing ConVar
»»  Unknown command "startupmenu"
»»  Network: IP 172.17.0.2, mode MP, dedicated Yes, ports 27015 SV / 27005 CL
»»  [STEAM] Initializing Steam libraries for LAN server
»»  [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
»»  CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize
»»  Setting breakpad minidump AppID = 362890
»»  Looking up breakpad interfaces from steamclient
»»  Calling BreakpadMiniDumpSystemInit
»»  Setting breakpad minidump AppID = 346680
»»  [STEAM] No account token specified; logging into anonymous game server account.  (Use sv_setsteamaccount to login to a persistent account.)
»»  Error loading cfg/pure_server_minimal.txt
»»  ConVarRef room_type doesn't point to an existing ConVar
»»  Executing dedicated server config file server.cfg
»»  Using map cycle file 'cfg/mapcycle.txt'.
»»  Unknown command "gb_flashlight_PosX"
»»  Unknown command "gb_flashlight_PosY"
»»  Unknown command "gb_flashlight_PosZ"
»»  Unknown command "gb_flashlight_Intensity"
»»  Unknown command "gb_flashlight_Col"
»»  Unknown command "gb_flashlight_Range"
»»  Unknown command "gb_flashlight_phi"
»»  Unknown command "gb_flashlight_oldfalloff_quad"
»»  Unknown command "gb_flashlight_oldfalloff_linear"
»»  Unknown command "sk_zombie_one_slash_left_viewpunch"
»»  Unknown command "sk_zombie_one_slash_right_viewpunch"
»»  Unknown command "sk_zombie_both_slash_viewpunch"
»»  Unknown command "cl_xort_light_col_R"
»»  Unknown command "cl_xort_light_col_G"
»»  Unknown command "cl_xort_light_col_B"
»»  Unknown command "cl_xort_light_intensity"
»»  Unknown command "cl_xort_light_range"
»»  Unknown command "cl_xort_light_ttl_Zap"
»»  Unknown command "cl_xort_light_ttl_dispel"
»»  Unknown command "cl_envportal_light_col_R"
»»  Unknown command "cl_envportal_light_col_G"
»»  Unknown command "cl_envportal_light_col_B"
»»  Unknown command "sk_apache_fire_cone_sta"
»»  Unknown command "joy_xcontroller_found"
»»  Unknown command "r_bloomtintr_nextgen"
»»  Unknown command "r_bloomtintg_nextgen"
»»  Unknown command "r_bloomtintb_nextgen"
»»  Unknown command "r_bloomtintexponent_nextgen"
»»  Unknown command "r_bloom_nextgen_threshold"
»»  Unknown command "mat_bloom_nextgen"
»»  Unknown command "cl_gargflame_spotL_col_R"
»»  Unknown command "cl_gargflame_spotL_col_G"
»»  Unknown command "cl_gargflame_spotL_col_B"
»»  Unknown command "cl_gargflame_spotL_intensity"
»»  Unknown command "cl_gargflame_spotL_range"
»»  Unknown command "cl_gargflame_spotL_outer_angle"
»»  Unknown command "cl_gargflame_spotL_inner_angle"
»»  Unknown command "cl_gargflame_spotL_offset"
»»  Unknown command "cl_gargflame_pointL_col_R"
»»  Unknown command "cl_gargflame_pointL_col_G"
»»  Unknown command "cl_gargflame_pointL_col_B"
»»  Unknown command "cl_gargflame_pointL_intensity"
»»  Unknown command "cl_gargflame_pointL_range"
»»  Unknown command "cl_gargflame_pointL_offset"
»»  Unknown command "cl_garg_eyeL_light_on"
»»  Unknown command "cl_garg_eyeL_light_col_R"
»»  Unknown command "cl_garg_eyeL_light_col_G"
»»  Unknown command "cl_garg_eyeL_light_col_B"
»»  Unknown command "cl_garg_eyeL_light_intensity"
»»  Unknown command "cl_garg_eyeL_light_range"
»»  Unknown command "cl_suitcharg_light_on"
»»  Unknown command "cl_suitcharg_light_col_R"
»»  Unknown command "cl_suitcharg_light_col_G"
»»  Unknown command "cl_suitcharg_light_col_B"
»»  Unknown command "cl_suitcharg_light_intensity"
»»  Unknown command "cl_suitcharg_light_range"
»»  Unknown command "cl_suitcharg_light_offset"
»»  Unknown command "cl_hpcharg_light_on"
»»  Unknown command "cl_hpcharg_light_col_R"
»»  Unknown command "cl_hpcharg_light_col_G"
»»  Unknown command "cl_hpcharg_light_col_B"
»»  Unknown command "cl_hpcharg_light_intensity"
»»  Unknown command "cl_hpcharg_light_range"
»»  Unknown command "cl_suitcharg_light_offset"
»»  ConVarRef sk_suitcharger doesn't point to an existing ConVar
»»  Error! Flag "$halflambert" is multiply defined in material "models/world_models/w_gauss_mp"!
»»  <<----WORLDBOUNDS---->> -2432 -1152 -512 -- 3072 2048 3332
»»  Error, bad server command sv_cheats 1
»»  Error, bad server command god
»»  Team 0: 24 spawnpoints.
»»  Team 1: 0 spawnpoints.
»»  Team 2: 0 spawnpoints.
»»  Team 3: 0 spawnpoints.
»»  Server is hibernating
»»  [STEAM]     Assigned anonymous gameserver Steam ID [A:1:2210924549:29423].
»»  [STEAM]     Workshop initialized successfully.
»»  [STEAM] subscribed_file_ids.txt not present -- skipping UGC downloads.
»»  [STEAM] VAC secure mode disabled.
»»  say STARTING COMMAND TESTS
»»  Console: STARTING COMMAND TESTS

[TEST RESULTS]

[PASS] - 'Sever started executing'
[PASS] - 'loaded dedicated.so'
[PASS] - 'Server is not boot-looping'
[PASS] - 'readline dependencies found'
[PASS] - 'Server is not running under root'
[PASS] - 'srcds_run loaded Black Mesa'
[PASS] - 'Server was able to load map'
[PASS] - 'srcds_run succesfully hibernated'
[PASS] - ''say STARTING COMMAND TESTS' should result in 'Console: STARTING COMMAND TESTS' (loop iterations: 0)'

[OUTCOME]

All checks passed!

[Pushing to Docker Hub]
> push lacledeslan/gamesvr-blackmesa:base
The push refers to repository [docker.io/lacledeslan/gamesvr-blackmesa]
5f70bf18a086: Layer already exists
50a83d4de94b: Pushed
f5f00076ddcd: Pushed
f1646d815f7a: Pushed
d65628a2c435: Pushed
fc3b6860abf5: Pushed
efb36e6c5401: Pushed
ecfd148d6687: Pushed
3abc5824e812: Mounted from library/debian
base: digest: sha256:e7ccfd3b3ebfff773a4d1a83ac62c2a3a557c8e0746260d2638c062ce3a09939 size: 2199
> push lacledeslan/gamesvr-blackmesa:latest
The push refers to repository [docker.io/lacledeslan/gamesvr-blackmesa]
5f70bf18a086: Layer already exists
50a83d4de94b: Layer already exists
f5f00076ddcd: Layer already exists
f1646d815f7a: Layer already exists
d65628a2c435: Layer already exists
fc3b6860abf5: Layer already exists
efb36e6c5401: Layer already exists
ecfd148d6687: Layer already exists
3abc5824e812: Layer already exists
latest: digest: sha256:e7ccfd3b3ebfff773a4d1a83ac62c2a3a557c8e0746260d2638c062ce3a09939 size: 2199