Skip to content

Commit

Permalink
Added workaround for steamcmd bug
Browse files Browse the repository at this point in the history
Steamcmd is unable to download all HLDS files while
doing 'app_update 90'. Updating (unsuccessful) of
apps with IDs 10 and 70 helps by some reason.

Also fixed minor issues in Makefile.
  • Loading branch information
artem-panchenko committed May 8, 2017
1 parent 72118bd commit 4059532
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ RUN mkdir -p /opt/steam && cd /opt/steam && \

# Install HLDS
RUN mkdir -p /opt/hlds
# Workaround for "app_update 90" bug, see https://forums.alliedmods.net/showthread.php?p=2518786
RUN /opt/steam/steamcmd.sh +login $steam_user $steam_password +force_install_dir /opt/hlds +app_update 90 validate +quit
RUN /opt/steam/steamcmd.sh +login $steam_user $steam_password +force_install_dir /opt/hlds +app_update 70 validate +quit || :
RUN /opt/steam/steamcmd.sh +login $steam_user $steam_password +force_install_dir /opt/hlds +app_update 10 validate +quit || :
RUN /opt/steam/steamcmd.sh +login $steam_user $steam_password +force_install_dir /opt/hlds +app_update 90 validate +quit
RUN mkdir -p ~/.steam && ln -s /opt/hlds ~/.steam/sdk32
RUN ln -s /opt/steam/ /opt/hlds/steamcmd
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Build options
IMAGE_NAME="hlds"
IMAGE_TAG="alpha"
IMAGE_NAME?="hlds"
IMAGE_TAG?="alpha"

STEAM_USER?="anonymous"
STEAM_PASSWORD?=""
Expand Down Expand Up @@ -51,4 +51,4 @@ test-clean: test-stop-server

.PHONY: clean
clean: test-clean
docker rmi $(IMAGE_NAME):$(IMAGE_TAG)
-docker rmi $(IMAGE_NAME):$(IMAGE_TAG)

0 comments on commit 4059532

Please sign in to comment.