Update ensl_hlds to 3.2.2

This commit is contained in:
Ari Timonen 2018-10-26 23:45:48 +00:00
parent a56c67d611
commit 5075d624e3
2 changed files with 8 additions and 11 deletions

View file

@ -34,19 +34,16 @@ WORKDIR /home/steam/hlds
RUN mv libstdc++* /home/steam/ RUN mv libstdc++* /home/steam/
# Install NS # Install NS
RUN wget 'https://www.ensl.org/files/server/ns_dedicated_server_v32.zip' RUN wget 'https://github.com/ENSL/NS/releases/download/v3.2.2/ns_v322_full.zip'
COPY --chown=steam files/ns.sha /home/steam/hlds COPY --chown=steam files/ns.sha /home/steam/hlds
# RUN sha256sum -c ns.sha # RUN sha256sum -c ns.sha
RUN unzip ns_dedicated_server_v32.zip RUN unzip ns_v322_full.zip
WORKDIR /home/steam/hlds/ns WORKDIR /home/steam/hlds/ns
# NS workarounds # NS workarounds
RUN echo 70 > steam_appid.txt RUN echo 70 > steam_appid.txt
RUN mv dlls/ns_i386.so dlls/ns.so # RUN mv dlls/ns_i386.so dlls/ns.so || echo
# Patch NS
RUN wget 'https://github.com/ENSL/NS/releases/download/v3.2.1b/ns_v321b_patch.zip' && unzip -o ns_v321b_patch.zip
# ENSL package # ENSL package
RUN cp liblist.gam liblist.bak RUN cp liblist.gam liblist.bak

View file

@ -2,7 +2,7 @@ REGISTRY ?= ensl
PROJECT ?= ensl_hlds PROJECT ?= ensl_hlds
TAG ?= latest TAG ?= latest
.PHONY: all clean build stop .PHONY: all clean build stop run pull push
ifdef REGISTRY ifdef REGISTRY
IMAGE=$(REGISTRY)/$(PROJECT):$(TAG) IMAGE=$(REGISTRY)/$(PROJECT):$(TAG)
@ -23,16 +23,16 @@ build: Dockerfile
run: build run: build
mkdir -p logs mkdir -p logs
#docker run -p 27015:27015 27015/udp:27015/udp -v $(shell pwd)/logs:/home/steam/hlds/ns/logs -ti $(IMAGE) #docker run -p 27015:27015 27015/udp:27015/udp -v $(shell pwd)/logs:/home/steam/hlds/ns/logs -ti $(IMAGE)
docker run --name=$(PROJECT) --net=host -v $(shell pwd)/logs:/home/steam/hlds/ns/logs -ti $(IMAGE) # docker run --name=$(PROJECT) --net=host -v $(shell pwd)/logs:/home/steam/hlds/ns/logs -ti $(IMAGE)
# docker run -e HLDS='1' --name=$(PROJECT) --net=host -v $(shell pwd)/logs:/home/steam/hlds/ns/logs -ti $(IMAGE) docker run -e HLDS='1' --name=$(PROJECT) --net=host -v $(shell pwd)/logs:/home/steam/hlds/ns/logs -ti $(IMAGE)
stop: stop:
docker stop $(PROJECT) docker stop $(PROJECT)
docker rm $(PROJECT) docker rm $(PROJECT)
shell: shell:
docker run --name=$(PROJECT) --net=host -v $(shell pwd)/logs:/home/steam/hlds/ns/logs -u0 -ti $(IMAGE) /bin/bash docker exec -u0 -ti $(PROJECT) /bin/bash
# docker exec -u0 -ti $(IMAGE) -v /bin/bash # docker run --name=$(PROJECT) --net=host -v $(shell pwd)/logs:/home/steam/hlds/ns/logs -u0 -ti $(IMAGE) /bin/bash
pull: pull:
docker pull $(IMAGE) || true docker pull $(IMAGE) || true