Skip to content

Commit

Permalink
#5 Utilise java-11-openjdk-headless and remove /var/lib/[dnf,rpm]
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanemerson committed Aug 30, 2019
1 parent 0dac119 commit 6841780
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/dependencies/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ version: 1.0
packages:
install:
- bsdtar
- java-11-openjdk-devel
- java-11-openjdk-headless
- openssl

execute:
- script: trim.sh
5 changes: 5 additions & 0 deletions modules/dependencies/trim.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -e

# Remove dnf and rpm files as package manager not required at runtime
rm -rf /var/lib/rpm /var/lib/dnf

0 comments on commit 6841780

Please sign in to comment.