-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tf2-sourcemod): verify download checksums (#45)
- Loading branch information
1 parent
07c5603
commit 5320389
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
FROM melkortf/tf2-base:latest | ||
LABEL maintainer="[email protected]" | ||
|
||
COPY checksum.md5 . | ||
|
||
ARG METAMOD_TARBALL_FILE_NAME=mmsource-1.11.0-git1145-linux.tar.gz | ||
ARG METAMOD_TARBALL_URL=https://mms.alliedmods.net/mmsdrop/1.11/${METAMOD_TARBALL_FILE_NAME} | ||
ARG METAMOD_MAJOR_VERSION=1.11 | ||
ARG METAMOD_TARBALL_URL=https://mms.alliedmods.net/mmsdrop/${METAMOD_MAJOR_VERSION}/${METAMOD_TARBALL_FILE_NAME} | ||
|
||
ARG SOURCEMOD_TARBALL_FILE_NAME=sourcemod-1.10.0-git6528-linux.tar.gz | ||
ARG SOURCEMOD_TARBALL_URL=https://sm.alliedmods.net/smdrop/1.10/${SOURCEMOD_TARBALL_FILE_NAME} | ||
ARG SOURCEMOD_MAJOR_VERSION=1.10 | ||
ARG SOURCEMOD_TARBALL_URL=https://sm.alliedmods.net/smdrop/${SOURCEMOD_MAJOR_VERSION}/${SOURCEMOD_TARBALL_FILE_NAME} | ||
|
||
RUN wget -nv "${METAMOD_TARBALL_URL}" \ | ||
&& tar xf "${METAMOD_TARBALL_FILE_NAME}" -C "${SERVER_DIR}/tf" \ | ||
&& rm -f "${METAMOD_TARBALL_FILE_NAME}" \ | ||
&& wget -nv "${SOURCEMOD_TARBALL_URL}" \ | ||
&& md5sum -c checksum.md5 \ | ||
&& tar xf "${METAMOD_TARBALL_FILE_NAME}" -C "${SERVER_DIR}/tf" \ | ||
&& tar xf "${SOURCEMOD_TARBALL_FILE_NAME}" -C "${SERVER_DIR}/tf" \ | ||
&& rm -f "${SOURCEMOD_TARBALL_FILE_NAME}" | ||
&& rm "${METAMOD_TARBALL_FILE_NAME}" \ | ||
&& rm "${SOURCEMOD_TARBALL_FILE_NAME}" \ | ||
&& rm checksum.md5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
35c6558bf7e765ea3a8f55ad3c2533b3 mmsource-1.11.0-git1145-linux.tar.gz | ||
cf820f8b9f9a53263ab5bee26a8ab8f8 sourcemod-1.10.0-git6528-linux.tar.gz |