Browse Source

fisting

master
crappyrules 4 years ago
parent
commit
09bbb288ab
  1. 17
      Dockerfile
  2. 8
      README.md
  3. 30
      index.html
  4. BIN
      silent-service-2.zip

17
Dockerfile

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
FROM alpine:latest
ARG GAME_URL
ARG GAME_ARGS
WORKDIR site
RUN wget https://js-dos.com/6.22/current/js-dos.js && \
wget https://js-dos.com/6.22/current/wdosbox.js && \
wget https://js-dos.com/6.22/current/wdosbox.wasm.js && \
wget -O game.zip "$GAME_URL"
RUN apk add darkhttpd
COPY index.html ./
RUN sed -i s/GAME_ARGS/$GAME_ARGS/ index.html
ENTRYPOINT ["/usr/bin/darkhttpd", "/site", "--port", "8000"]

8
README.md

@ -1,2 +1,10 @@ @@ -1,2 +1,10 @@
# docker-silentserviceii
docker image of Silent Service II running on js-dos
run the following to build
`docker build -t docker-silentserviceii --build-arg GAME_URL=https://code.imhard4.men/crappyrules/docker-silentserviceii/raw/branch/master/silent-service-2.zip --build-arg GAME_ARGS=\"SS2.EXE\" .`
once you have built the image, run with
`docker run -d -p 8000:8000 docker-silentserviceii`

30
index.html

@ -0,0 +1,30 @@ @@ -0,0 +1,30 @@
<html>
<style type="text/css" media="screen">
canvas {
width: 800px;
height: 600px;
}
</style>
<head>
<title>Silent Service Online</title>
<script src="js-dos.js"></script>
</head>
<body bgcolor="black" text="white">
<canvas id="jsdos" width="800" height="600" ></canvas>
<script>
Dos(document.getElementById("jsdos"), {
}).ready((fs, main) => {
fs.extract("game.zip").then(() => {
main(["-c", GAME_ARGS])
});
});
</script>
<br><br><br><br><br>
<center><form>
<input type="button" value="Go back!" onclick="history.back()">
</form></center>
<h3>Silent Service</h3>
<p><a href="https://dl.myabandonware.com/f/4ca/Shadow-President_Manual_DOS_EN.pdf">Game Manual</a></p>
<p><b>Silent Service II was released in 1990. It was a World War II video game sequel to Silent Service.</b></p>
</body>
</html>

BIN
silent-service-2.zip

Binary file not shown.
Loading…
Cancel
Save