How to Deploy a Web Version of a Retro DOS Game Library—Play 1898 Games
Preview Images:
Deployment Method:
Step One: Update Sources and Install Dependencies
Ubuntu/Debian:
apt update -y && apt upgrade -y
sudo apt install git -y
sudo apt install python3 -y
Centos:
yum update -y && yum upgrade -y
sudo yum install git -y
sudo yum install python3 -y
Step Two: Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh && sh ./get-docker.sh
Step Three: Download Game Content and Deploy
- If you have more than 42G of hard disk storage space, you can download all 1989 games, using the following instructions (you can also choose the second mode of operation and download the lite version with only 40 games):
mkdir -p /root/data/docker_data/games
cd /root/data/docker_data/games/
git clone https://github.com/rwv/chinese-dos-games.git
cd chinese-dos-games/
python3 download_data.py
To deploy:
docker run --name dosgame -p 8090:262 -v /root/data/docker_data/games/chinese-dos-games:/app/static/games oldiy/dosgame-web-docker:latest
- Download and deploy the slim version with only 40 games, using the following command:
docker run --name dosgame -p 8090:262 oldiy/dosgame-web-docker:latest
After deployment, you can access http://<your-ip>:8090
to view this Web interface.
Relevant Links:
Official Repository: https://github.com/rwv/chinese-dos-games
Official Demo: https://dos.lol
Original link:https://enblog.fuyiran.link/Technology/14.html
Copyright: All posts on this blog, unless otherwise stated, are published using theCC BY-NC-SA 4.0 license agreement. Please indicate the source for reprinting Fu Speaking (enblog.fuyiran.link)