Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy some files from metarust #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: rust
dist: xenial
services:
- docker
compiler:
- clang
- gcc
rust:
- stable
Expand Down Expand Up @@ -48,6 +50,8 @@ script:
- CARGO_TARGET_DIR=$TRAVIS_BUILD_DIR/build/test cargo test --verbose --target $TARGET
- CARGO_TARGET_DIR=$TRAVIS_BUILD_DIR/build/test cargo test --verbose --release --target $TARGET

- docker-compose up

before_deploy:
- mkdir -p $TRAVIS_BUILD_DIR/deploy/addons/amxmodx/modules
- mkdir -p $TRAVIS_BUILD_DIR/deploy/addons/amxmodx/configs
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
hlds:
build: docker
ports:
- 27015:27015
30 changes: 30 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM ubuntu:16.04

RUN apt-get update
RUN apt-get install -y curl lib32gcc1 xz-utils

WORKDIR /opt/steamcmd
RUN curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
RUN ./steamcmd.sh +quit # self update
RUN ./steamcmd.sh +login anonymous +force_install_dir /opt/hlds +app_update 90 validate +quit || :
RUN ./steamcmd.sh +login anonymous +force_install_dir /opt/hlds +app_update 70 validate +quit || :
RUN ./steamcmd.sh +login anonymous +force_install_dir /opt/hlds +app_update 10 validate +quit || :
RUN ./steamcmd.sh +login anonymous +force_install_dir /opt/hlds +app_update 90 validate +quit

ENV METAMOD_P_URL https://github.com/jkivilin/metamod-p/releases/download/1.21p38_beta1/metamod_i686_linux.win32.tar.xz
WORKDIR /opt/hlds/cstrike/addons/metamod
RUN curl -sSL $METAMOD_P_URL | tar xvfJ -
ADD metamod/plugins.ini .

ENV AMXMODX_URL https://www.amxmodx.org/amxxdrop/1.9/amxmodx-1.9.0-git5234-base-linux.tar.gz
WORKDIR /opt/hlds/cstrike/
RUN curl -sSL $AMXMODX_URL | tar xvfz -
ADD amxmodx/plugins.ini .

WORKDIR /opt/hlds/cstrike/addons/amxmodx/modules
ADD grip_amxx_i386.so .

WORKDIR /opt/hlds
RUN sed -i -- 's/gamedll_linux "dlls\/cs\.so"/gamedll_linux "addons\/metamod\/metamod.so"/g' cstrike/liblist.gam
RUN echo "10" > steam_appid.txt
CMD ["./hlds_run", "-game", "cstrike", "+maxplayers 4", "+map de_dust2", "-nomaster", "+log on", "+mp_logdetail 3"]
1 change: 1 addition & 0 deletions docker/amxmodx/plugins.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test.amxx
1 change: 1 addition & 0 deletions docker/metamod/plugins.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
linux addons/amxmodx/dlls/amxmodx_mm_i386.so