9 Commits

Author SHA1 Message Date
Trey Yoder 5931ed8036 Merge pull request #25 from techroy23/patch-1
Update README.md
2025-12-16 14:56:23 -05:00
Trey Yoder 97fe8c939e Merge pull request #30 from Onion2222/patch-1
Remove dependency of content.quakejs.com
2025-12-16 14:53:17 -05:00
Arthur Perrin 726965c8c8 Removed dependency entrypoint.sh
content.quakejs.com can no longer be used
2025-11-26 14:46:43 +01:00
Techroy23 26581326b1 Update README.md 2024-03-16 17:21:13 +08:00
Trey Yoder 6cbe1c4a00 Switch quakejs branch to master 2024-01-20 11:25:42 -05:00
Trey Yoder 96a5aeb230 Update README.md 2022-08-29 20:45:22 -04:00
Trey Yoder 87efe6f26f Update README.md 2022-08-29 20:44:22 -04:00
Trey Yoder 8be17e6d90 Update README.md 2022-08-29 20:42:37 -04:00
Trey Yoder 87a0ac3004 Updating base image; fixing issues with quakejs clone; moving hosts mod to build 2022-08-29 20:31:37 -04:00
4 changed files with 21 additions and 10 deletions
+2 -4
View File
@@ -1,4 +1,4 @@
FROM ubuntu:latest
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=US/Eastern
@@ -10,7 +10,7 @@ RUN apt-get install sudo curl git nodejs npm jq apache2 wget apt-utils -y
RUN curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
RUN git clone --recurse-submodules https://github.com/begleysm/quakejs.git
RUN git clone https://github.com/nerosketch/quakejs.git
WORKDIR /quakejs
RUN npm install
RUN ls
@@ -25,8 +25,6 @@ RUN rm /var/www/html/index.html && cp /quakejs/html/* /var/www/html/
COPY ./include/assets/ /var/www/html/assets
RUN ls /var/www/html
RUN echo "127.0.0.1 content.quakejs.com" >> /etc/hosts
WORKDIR /
ADD entrypoint.sh /entrypoint.sh
# Was having issues with Linux and Windows compatibility with chmod -x, but this seems to work in both
+8 -5
View File
@@ -5,9 +5,6 @@
![Docker Image CI](https://github.com/treyyoder/quakejs-docker/workflows/Docker%20Image%20CI/badge.svg)
</div>
:warning: 4/22/2020 Fixed a bug that was preventing other maps from loading. Pull the lastest image from Docker Hub.
:warning: 4/20/2020 Issues with entrypoint permissions and the refresh loop have been addressed. Pull the lastest image from Docker Hub.
### A fully local and Dockerized quakejs server. Independent, unadulterated, and free from the middleman.
@@ -21,13 +18,13 @@ docker pull treyyoder/quakejs:latest
#### and run it:
```
docker run -d --name quakejs -e HTTP_PORT=<HTTP_PORT> -p <HTTP_PORT>:80 -p 27960:27960 treyyoder/quakejs:latest
docker run -d --name quakejs -e SERVER=<YOUR-IP-ADDRESS> -e HTTP_PORT=<HTTP_PORT> -p <HTTP_PORT>:80 -p 27960:27960 treyyoder/quakejs:latest
```
#### Example:
```
docker run -d --name quakejs -e HTTP_PORT=8080 -p 8080:80 -p 27960:27960 treyyoder/quakejs:latest
docker run -d --name quakejs -e SERVER=0.0.0.0 -e HTTP_PORT=8080 -p 8080:80 -p 27960:27960 treyyoder/quakejs:latest
```
Send all you friends/coworkers the link: ex. http://localhost:8080 and start fragging ;)
@@ -49,6 +46,12 @@ services:
image: 'treyyoder/quakejs:latest'
```
#### Building the Image
After pulling the repo, change both `Dockerfile` and `entrypoint.sh` from CRLF to LF.
Build the image with:
`docker build --add-host=content.quakejs.com:127.0.0.1 -t treyyoder/quakejs:latest .`
## Credits:
+10
View File
@@ -0,0 +1,10 @@
version: '2'
services:
quakejs:
container_name: quakejs
environment:
- HTTP_PORT=8080
ports:
- '8080:80'
- '27960:27960'
image: 'treyyoder/quakejs:latest'
+1 -1
View File
@@ -10,4 +10,4 @@ sed -i "s/':80'/':${HTTP_PORT}'/g" index.html
cd /quakejs
node build/ioq3ded.js +set fs_game baseq3 set dedicated 1 +exec server.cfg
node build/ioq3ded.js +set fs_game baseq3 +set dedicated 1 +set fs_cdn 127.0.0.1 +exec server.cfg