-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Gramine dependencies that are not needed at runtime
To remove these Gramine dependencies, a new command-line argument `--remove-gramine-deps` (alias to `-Dremove-gramine-deps=true`) is introduced. By default it is not set, since removing Gramine dependencies could also remove packages required by original app. This option is useful to minimize the final Docker image, in terms of the amount of installed software. Signed-off-by: abin <[email protected]>
- Loading branch information
Showing
5 changed files
with
89 additions
and
1 deletion.
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
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
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
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,3 +1,19 @@ | ||
{% extends "Dockerfile.common.sign.template" %} | ||
|
||
{% block uninstall %} | ||
RUN \ | ||
pip3 uninstall -y click jinja2 \ | ||
tomli tomli-w \ | ||
toml \ | ||
&& dnf remove -y binutils \ | ||
epel-release \ | ||
expect \ | ||
openssl \ | ||
python3-protobuf \ | ||
python3-pyelftools \ | ||
python3-cryptography \ | ||
tcl \ | ||
&& dnf -y clean all; | ||
{% endblock %} | ||
|
||
{% block path %}export PYTHONPATH="${PYTHONPATH}:$(find /gramine/meson_build_output/lib64 -type d -path '*/site-packages')" &&{% endblock %} |
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,3 +1,22 @@ | ||
{% extends "Dockerfile.common.sign.template" %} | ||
|
||
{% block uninstall %} | ||
RUN \ | ||
apt-get update -y \ | ||
&& apt-get install -y python3-pip \ | ||
&& pip3 uninstall -y click jinja2 \ | ||
tomli tomli-w \ | ||
toml \ | ||
&& apt-get remove -y binutils \ | ||
expect \ | ||
libcurl4-openssl-dev \ | ||
openssl \ | ||
python3-pip \ | ||
python3-protobuf \ | ||
python3-cryptography \ | ||
python3-pyelftools \ | ||
&& apt-get autoremove -y \ | ||
&& rm -rf /var/lib/apt/lists/*; | ||
{% endblock %} | ||
|
||
{% block path %}export PYTHONPATH="${PYTHONPATH}:$(find /gramine/meson_build_output/lib -type d -path '*/site-packages')" &&{% endblock %} |