Skip to content
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

Commit e3e17f1

Browse files
committed
Update Paths
w lf
1 parent 90c7611 commit e3e17f1

File tree

3 files changed

+135
-134
lines changed

3 files changed

+135
-134
lines changed

Dockerfile

Lines changed: 127 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -1,127 +1,127 @@
1-
#
2-
# LinuxGSM Base Dockerfile
3-
#
4-
# https://github.com/GameServerManagers/LinuxGSM-Docker
5-
#
6-
7-
FROM ubuntu:20.04
8-
9-
LABEL maintainer="LinuxGSM <[email protected]>"
10-
11-
ENV DEBIAN_FRONTEND noninteractive
12-
ENV TERM=xterm
13-
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
14-
15-
# Install UTF-8 unicode
16-
RUN echo "**** Install UTF-8 ****" \
17-
&& apt-get update \
18-
&& apt-get install -y locales apt-utils debconf-utils
19-
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
20-
21-
## Upgrade Ubuntu
22-
RUN echo "**** apt upgrade ****" \
23-
&& apt-get update; \
24-
apt-get upgrade -y
25-
26-
## Install Base LinuxGSM Requirements
27-
RUN echo "**** Install Base LinuxGSM Requirements ****" \
28-
&& apt-get update \
29-
&& apt-get install -y software-properties-common \
30-
&& add-apt-repository multiverse \
31-
&& apt-get update \
32-
&& apt-get install -y \
33-
bc \
34-
binutils \
35-
bsdmainutils \
36-
bzip2 \
37-
ca-certificates \
38-
cpio \
39-
curl \
40-
distro-info \
41-
file \
42-
gzip \
43-
hostname \
44-
jq \
45-
lib32gcc1 \
46-
lib32stdc++6 \
47-
netcat \
48-
python3 \
49-
tar \
50-
tmux \
51-
unzip \
52-
util-linux \
53-
wget \
54-
xz-utils \
55-
# Docker Extras
56-
cron \
57-
iproute2 \
58-
iputils-ping \
59-
nano \
60-
vim \
61-
sudo \
62-
tini
63-
64-
# Install SteamCMD
65-
RUN echo "**** Install SteamCMD ****" \
66-
&& echo steam steam/question select "I AGREE" | debconf-set-selections \
67-
&& echo steam steam/license note '' | debconf-set-selections \
68-
&& dpkg --add-architecture i386 \
69-
&& apt-get update -y \
70-
&& apt-get install -y --no-install-recommends libsdl2-2.0-0:i386 steamcmd \
71-
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd
72-
73-
# Install NodeJS
74-
RUN echo "**** Install NodeJS ****" \
75-
&& curl -sL https://deb.nodesource.com/setup_16.x | bash - \
76-
&& apt-get update && apt-get install -y nodejs
77-
78-
# Install GameDig https://docs.linuxgsm.com/requirements/gamedig
79-
RUN echo "**** Install GameDig ****" \
80-
&& npm install -g gamedig
81-
82-
# Install Cleanup
83-
RUN echo "**** Cleanup ****" \
84-
&& apt-get -y autoremove \
85-
&& apt-get -y clean \
86-
&& rm -rf /var/lib/apt/lists/* \
87-
&& rm -rf /tmp/* \
88-
&& rm -rf /var/tmp/*
89-
90-
##Need use xterm for LinuxGSM##
91-
92-
ENV DEBIAN_FRONTEND noninteractive
93-
94-
ARG USERNAME=linuxgsm
95-
ARG USER_UID=1000
96-
ARG USER_GID=$USER_UID
97-
98-
## Add linuxgsm user
99-
RUN echo "**** Add linuxgsm user ****" \
100-
# Create the user
101-
&& groupadd --gid $USER_GID $USERNAME \
102-
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
103-
#
104-
# [Optional] Add sudo support. Omit if you don't need to install software after connecting.
105-
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
106-
&& chmod 0440 /etc/sudoers.d/$USERNAME \
107-
&& chown $USERNAME:$USERNAME /home/$USERNAME
108-
109-
# Create /opt/linuxgsm
110-
#RUN echo "**** Create /opt/linuxgsm ****" \
111-
# && mkdir -p /opt/linuxgsm \
112-
# && chown linuxgsm:linuxgsm /opt/linuxgsm
113-
114-
## Download linuxgsm.sh
115-
RUN echo "**** Download linuxgsm.sh ****" \
116-
&& set -ex \
117-
&& wget -O linuxgsm.sh https://linuxgsm.sh \
118-
&& chmod +x /linuxgsm.sh
119-
120-
WORKDIR /home/linuxgsm
121-
ENV PATH=$PATH:/home/linuxgsm
122-
USER linuxgsm
123-
124-
COPY entrypoint.sh /home/linuxgsm/entrypoint.sh
125-
126-
ENTRYPOINT [ "/usr/bin/tini", "--" ]
127-
CMD [ "bash","./entrypoint.sh" ]
1+
#
2+
# LinuxGSM Base Dockerfile
3+
#
4+
# https://github.com/GameServerManagers/LinuxGSM-Docker
5+
#
6+
7+
FROM ubuntu:20.04
8+
9+
LABEL maintainer="LinuxGSM <[email protected]>"
10+
11+
ENV DEBIAN_FRONTEND noninteractive
12+
ENV TERM=xterm
13+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
14+
15+
# Install UTF-8 unicode
16+
RUN echo "**** Install UTF-8 ****" \
17+
&& apt-get update \
18+
&& apt-get install -y locales apt-utils debconf-utils
19+
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
20+
21+
## Upgrade Ubuntu
22+
RUN echo "**** apt upgrade ****" \
23+
&& apt-get update; \
24+
apt-get upgrade -y
25+
26+
## Install Base LinuxGSM Requirements
27+
RUN echo "**** Install Base LinuxGSM Requirements ****" \
28+
&& apt-get update \
29+
&& apt-get install -y software-properties-common \
30+
&& add-apt-repository multiverse \
31+
&& apt-get update \
32+
&& apt-get install -y \
33+
bc \
34+
binutils \
35+
bsdmainutils \
36+
bzip2 \
37+
ca-certificates \
38+
cpio \
39+
curl \
40+
distro-info \
41+
file \
42+
gzip \
43+
hostname \
44+
jq \
45+
lib32gcc1 \
46+
lib32stdc++6 \
47+
netcat \
48+
python3 \
49+
tar \
50+
tmux \
51+
unzip \
52+
util-linux \
53+
wget \
54+
xz-utils \
55+
# Docker Extras
56+
cron \
57+
iproute2 \
58+
iputils-ping \
59+
nano \
60+
vim \
61+
sudo \
62+
tini
63+
64+
# Install SteamCMD
65+
RUN echo "**** Install SteamCMD ****" \
66+
&& echo steam steam/question select "I AGREE" | debconf-set-selections \
67+
&& echo steam steam/license note '' | debconf-set-selections \
68+
&& dpkg --add-architecture i386 \
69+
&& apt-get update -y \
70+
&& apt-get install -y --no-install-recommends libsdl2-2.0-0:i386 steamcmd \
71+
&& ln -s /usr/games/steamcmd /usr/bin/steamcmd
72+
73+
# Install NodeJS
74+
RUN echo "**** Install NodeJS ****" \
75+
&& curl -sL https://deb.nodesource.com/setup_16.x | bash - \
76+
&& apt-get update && apt-get install -y nodejs
77+
78+
# Install GameDig https://docs.linuxgsm.com/requirements/gamedig
79+
RUN echo "**** Install GameDig ****" \
80+
&& npm install -g gamedig
81+
82+
# Install Cleanup
83+
RUN echo "**** Cleanup ****" \
84+
&& apt-get -y autoremove \
85+
&& apt-get -y clean \
86+
&& rm -rf /var/lib/apt/lists/* \
87+
&& rm -rf /tmp/* \
88+
&& rm -rf /var/tmp/*
89+
90+
##Need use xterm for LinuxGSM##
91+
92+
ENV DEBIAN_FRONTEND noninteractive
93+
94+
ARG USERNAME=linuxgsm
95+
ARG USER_UID=1000
96+
ARG USER_GID=$USER_UID
97+
98+
## Add linuxgsm user
99+
RUN echo "**** Add linuxgsm user ****" \
100+
# Create the user
101+
&& groupadd --gid $USER_GID $USERNAME \
102+
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
103+
#
104+
# [Optional] Add sudo support. Omit if you don't need to install software after connecting.
105+
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
106+
&& chmod 0440 /etc/sudoers.d/$USERNAME \
107+
&& chown $USERNAME:$USERNAME /home/$USERNAME
108+
109+
# Create /opt/linuxgsm
110+
#RUN echo "**** Create /opt/linuxgsm ****" \
111+
# && mkdir -p /opt/linuxgsm \
112+
# && chown linuxgsm:linuxgsm /opt/linuxgsm
113+
114+
## Download linuxgsm.sh
115+
RUN echo "**** Download linuxgsm.sh ****" \
116+
&& set -ex \
117+
&& wget -O linuxgsm.sh https://linuxgsm.sh \
118+
&& chmod +x /linuxgsm.sh
119+
120+
WORKDIR /home/linuxgsm
121+
ENV PATH=$PATH:/home/linuxgsm
122+
USER linuxgsm
123+
124+
COPY entrypoint.sh /home/linuxgsm/entrypoint.sh
125+
126+
ENTRYPOINT [ "/usr/bin/tini", "--" ]
127+
CMD [ "bash","./entrypoint.sh" ]

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ services:
2929
- LGSM_GITHUBREPO=LinuxGSM
3030
- LGSM_GITHUBBRANCH=master
3131
volumes:
32-
- /home/linuxgsm/serverfiles:/home/linuxgsm/serverfiles
33-
- /home/linuxgsm/serverfiles:/home/linuxgsm/log
34-
- /home/linuxgsm/serverfiles:/home/linuxgsm/lgsm/config-lgsm
32+
- /path/to/serverfiles:/home/linuxgsm/serverfiles
33+
- /path/to/log:/home/linuxgsm/log
34+
- /path/to/config-lgsm:/home/linuxgsm/lgsm/config-lgsm
3535
ports:
3636
- "27015:27015/tcp"
3737
- "27015:27015/udp"
@@ -54,4 +54,5 @@ Commands can be run just like standard LinuxGSM using the docker exec command.
5454
5555
docker exec -it csgoserver ./csgoserver details
5656
57-
```
57+
```
58+
#

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ services:
1111
- LGSM_GITHUBREPO=LinuxGSM
1212
- LGSM_GITHUBBRANCH=master
1313
volumes:
14-
- /home/linuxgsm/serverfiles:/home/linuxgsm/serverfiles
15-
- /home/linuxgsm/serverfiles:/home/linuxgsm/log
16-
- /home/linuxgsm/serverfiles:/home/linuxgsm/lgsm/config-lgsm
14+
- /path/to/serverfiles:/home/linuxgsm/serverfiles
15+
- /path/to/log:/home/linuxgsm/log
16+
- /path/to/config-lgsm:/home/linuxgsm/lgsm/config-lgsm
1717
ports:
1818
- "27015:27015/tcp"
1919
- "27015:27015/udp"

0 commit comments

Comments
 (0)