Skip to content

Commit

Permalink
try scripts again
Browse files Browse the repository at this point in the history
  • Loading branch information
iiamabby committed Oct 23, 2023
1 parent 245701c commit 294340e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
9 changes: 1 addition & 8 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,7 @@ COPY modules /tmp/modules/
# `yq` is used for parsing the yaml configuration
# It is copied from the official container image since it's not available as an RPM.
COPY --from=docker.io/mikefarah/yq /usr/bin/yq /usr/bin/yq
# Install Java
RUN rpm-ostree install -y java-17-openjdk
RUN export PATH="/usr/lib/jvm/java-17-openjdk-17.0.8.0.7-1.fc38.x86_64/bin:$PATH"

#install minecraft
RUN wget "https://maven.minecraftforge.net/net/minecraftforge/forge/1.20.1-47.2.0/forge-1.20.1-47.2.0-mdk.zip" -O temp.zip && \
unzip temp.zip && \
rm temp.zip


# Run the build script, then clean up temp files and finalize container build.
RUN chmod +x /tmp/build.sh && /tmp/build.sh && \
Expand Down
1 change: 1 addition & 0 deletions config/recipe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@ modules:
scripts:
# this sets up the proper policy & signing files for signed images to work
- signing.sh
- example.sh
3 changes: 3 additions & 0 deletions config/scripts/example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ set -oue pipefail
# Your code goes here.
echo 'This is an example shell script'
echo 'Scripts here will run during build if specified in recipe.yml'
# Install Java
rpm-ostree install -y java-17-openjdk
export PATH="/usr/lib/jvm/java-17-openjdk-17.0.8.0.7-1.fc38.x86_64/bin:$PATH"

0 comments on commit 294340e

Please sign in to comment.