-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDefaults
More file actions
107 lines (100 loc) · 3.94 KB
/
Defaults
File metadata and controls
107 lines (100 loc) · 3.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/usr/bin/env bash
# Defaults fed to all scripts and to podman.
# Steam Details
export STEAMUSER="anonymous"
export STEAMPASS=""
# World Details
# The top-level domain name or host name
# for the server. Should resolve to INTERFACE.
export HOST="worldheim.com" # Example only; change this.
# Local IP Address for the host's network interface.
export INTERFACE="10.10.10.10" # Example only; change this.
export PASSWORD="paper" # Example only; change this.
# For the -name option
export NAME="${HOST}: rock _____ scissors" # Example only; change this.
# For the -world option (randomized name for world save data
# located in ~/.config/unity3d/IronGate/Valheim/worlds_local
export WORLD="Worldheim$(tr -dc a-zA-Z < /dev/urandom | dd bs=1 count=6 2> /dev/null)"
# For the -world option (fixed name for world save data)
# export WORLD="Worldheim"
# For the -public option
export PUBLIC=1
# Bash arrays for banned/permitted/admin Steam ID's.
# https://www.gnu.org/software/bash/manual/html_node/Arrays.html
# https://store.steampowered.com/account/
# Generates the permittedlist.txt file.
export PERMITTEDLIST=("76561198021395128") # Example only; change this.
# Generates the adminlist.txt file.
export ADMINLIST=("76561198021395128") # Example only; change this.
# Generates the bannedlist.txt file.
export BANNEDLIST=("")
# How many seconds to wait for the server to
# download before starting. This may vary
# depending on the download speed of the server.
export STEAMWAIT=30
# Note that if you want to change the default
# ENTRYPOINT, SERVICE_NAME or BUILD_NAME you
# will need to change the Dockerfile too. The
# recommended approach is to change the tag
# intead if you want to create a different
# branch. Nothing else is really neccessary.
# You can also change the container name
# later by running "podman rename" which is
# the less tedious approach.
export ENTRYPOINT="/container-entrypoint-valheim"
export BUILD_NAME="valheim-server"
export SERVICE_NAME="valheim"
export ENTRYCMD="valheim_server.x86_64"
export VERSION="0.209.10"
export TAG="latest"
# export TAG="testing"
export ENDPOINT="iad.ocir.io"
export REPO="${ENDPOINT}/hyperspirefndn/oraclelinux" # Example only; change this.
export REPOUSER="repouser" # Example only; change this.
export REPOPASS="repopass" # Example only; change this.
export CONTAINER_NAME="${BUILD_NAME}"
export MEMORY="16g"
export RESTART_POLICY="unless-stopped"
export FORMAT="docker"
export SAVE_FORMAT="docker-archive"
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ENTRYPOINT}:${ENTRYPOINT}/${BUILD_NAME}:${ENTRYPOINT}/${BUILD_NAME}/bin:${ENTRYPOINT}/${BUILD_NAME}/linux32:${ENTRYPOINT}/${BUILD_NAME}/linux64
# SETCAP="true" if your container host
# environment needs additional capabilities.
# If you get the 'Operation not permitted' error
# Use 'podman inspect valheim-server' to see
# which capabilities your container has dropped.
# See: https://docs.podman.io/en/latest/markdown/podman-build.1.html
export SETCAP="true"
# At the time of release, podman automatically
# adds the following capabilities on my Oracle
# Cloud Infrastructure Oracle Linux 8 host.:
# CAP_CHOWN
# CAP_DAC_OVERRIDE
# CAP_FOWNER
# CAP_FSETID
# CAP_KILL
# CAP_NET_BIND_SERVICE
# CAP_NET_RAW
# CAP_SETFCAP
# CAP_SETGID
# CAP_SETPCAP
# CAP_SETUID
# CAP_SYS_CHROOT
# Note that if you try to add capabilities
# to your container that were already automatically
# added, it will have the reverse effect and remove
# the capability from your container instead.
# These were not automatically added to the container.
# export CAP_ADD=("CAP_AUDIT_WRITE" "CAP_MKNOD" "CAP_SYS_NICE" "CAP_SYS_RESOURCE" "CAP_NET_ADMIN")
# These probably should be added... used by the build script.:
export CAP_ADD=("CAP_AUDIT_WRITE" "CAP_SYS_NICE" "CAP_SYS_RESOURCE" "CAP_NET_ADMIN")
unset CAPABILITIES
function podCapabilities {
CAPABILITIES=()
for cap in "${CAP_ADD[@]}"; do
CAPABILITIES+=("--cap-add=${cap}")
done
}
podCapabilities
export function podCapabilities
export CAPABILITIES