Skip to content

Commit

Permalink
Additional env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
razorbladex401 committed May 9, 2022
1 parent 57b89c0 commit 186fa74
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ ENV HOME /home/steam
ENV GAME dayz
ENV APPID 1042420
ENV STEAMACCOUNT anonymous
ENV STEAMPASSWORD
ENV STEAMPASSWORD ${1:+1}
ENV CPUCOUNT 2
ENV PORT 2302

WORKDIR /home/steam

Expand Down
2 changes: 1 addition & 1 deletion docker/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function setupBattleye() {

function startGame() {
cd ${HOME}/${GAME}
${HOME}/${GAME}/DayZServer -config="${HOME}/serverDZ.cfg" -adminlog -netlog --dologs --freezeCheck -profiles=${HOME}/profile -BEpath=${HOME}/battleye
${HOME}/${GAME}/DayZServer -config="${HOME}/serverDZ.cfg" -adminlog -netlog --dologs --freezeCheck -cpuCount=${CPUCOUNT} -port=${PORT} -profiles=${HOME}/profile -BEpath=${HOME}/battleye
}

updateGame
Expand Down
4 changes: 4 additions & 0 deletions k8s/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ spec:
value: "1042420"
- name: STEAMACCOUNT
value: anonymous
- name: CPUCOUNT
value: "2"
- name: PORT
value: "2302"
- name: openssh-server
image: lscr.io/linuxserver/openssh-server:latest
imagePullPolicy: Always
Expand Down

0 comments on commit 186fa74

Please sign in to comment.