Add AOE modpack 1.0.4 for minecraft 1.10.2
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -2,9 +2,7 @@ FROM ironcraft/minecraft-forge:1.10.2
|
||||
MAINTAINER Xawirses <xawirses@gmail.com>
|
||||
LABEL maintainer="Xawirses <xawirses@gmail.com>"
|
||||
|
||||
VOLUME ["/minecraft/world", "/minecraft/config"]
|
||||
|
||||
RUN apt update && apt install -y unzip zip
|
||||
RUN apt update && apt install -y unzip zip wget python
|
||||
|
||||
ENV AOE_VERSION 1.0.4
|
||||
ENV AOE_URL https://addons-origin.cursecdn.com/files/2455/50/Age%20of%20Engineering-${AOE_VERSION}.zip
|
||||
@@ -12,9 +10,12 @@ ENV AOE_URL https://addons-origin.cursecdn.com/files/2455/50/Age%20of%20Engineer
|
||||
RUN curl --create-dirs -sLo /build/aoe.zip "${AOE_URL}" && \
|
||||
cd /build && \
|
||||
unzip aoe.zip -d /build/aoe && \
|
||||
cp -R /build/aoe/overrides/* /minecraft/
|
||||
cp -Rfv /build/aoe/overrides/* /minecraft/
|
||||
|
||||
COPY dl_mods.sh /build/dl_mods.sh
|
||||
RUN chmod +x /build/dl_mods.sh && bash /build/dl_mods.sh
|
||||
RUN rm -Rf /build
|
||||
|
||||
EXPOSE 25565
|
||||
|
||||
|
||||
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
|
||||
@@ -5,10 +5,6 @@
|
||||
|
||||
These are docker images for [Age of Engineering](https://mods.curse.com/modpacks/minecraft/263897-age-of-engineering) [Minecraft](https://minecraft.net) Modpack power by [Minecraft Forge](http://www.minecraftforge.net/).
|
||||
|
||||
## Volumes
|
||||
* /minecraft/world
|
||||
* /minecraft/config
|
||||
|
||||
## Ports
|
||||
* 25565
|
||||
|
||||
|
||||
23
dl_mods.sh
Executable file
23
dl_mods.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
function getJsonVal() {
|
||||
python -c "import json,sys;sys.stdout.write(json.dumps(json.load(sys.stdin)$1))";
|
||||
}
|
||||
|
||||
IFS=';'
|
||||
|
||||
files=$(cat /build/aoe/manifest.json | getJsonVal "['files']")
|
||||
files=${files//'}, {'/';'}
|
||||
files=${files//'[{'/''}
|
||||
files=${files//'}]'/''}
|
||||
|
||||
for addr in $files
|
||||
do
|
||||
echo $addr
|
||||
p=$(echo '{'$addr'}' | getJsonVal "['projectID']")
|
||||
f=$(echo '{'$addr'}' | getJsonVal "['fileID']")
|
||||
|
||||
if [ -n "$p" ]; then
|
||||
wget https://minecraft.curseforge.com/projects/$p/files/$f/download -O /minecraft/mods/${p}_${f}.jar
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user