-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimise images #2066
Optimise images #2066
Conversation
- Include install and build scripts in the base image - Remove unwanted layers - Remove unwanted data files
COPY start.sh /home/ubuntu | ||
COPY install.sh /home/ubuntu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be included in the base image
|
||
WORKDIR /home/ubuntu | ||
ENV PATH=$PATH:/home/ubuntu/.local/bin | ||
COPY scripts /root/scripts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Install and runner scripts
RUN sudo apt-get update --fix-missing | ||
RUN sudo apt-get autoremove | ||
RUN sudo apt-get autoclean | ||
RUN sudo apt-get install python3.10 python3.10-dev git cmake autoconf automake build-essential libffi-dev libtool pkg-config -y | ||
RUN cd /usr/bin && sudo rm python3 && sudo ln -s python3.10 python3 && sudo ln -s python3.10 python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to install the python interpreters and dev libraries, they are included in the base image
RUN sudo apt-get install net-tools -y | ||
RUN python -m pip install --upgrade pip | ||
|
||
COPY openssl.cnf /etc/ssl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Included in the base image
open-aea[all]>=1.40.0,<2.0.0 | ||
open-aea-cli-ipfs>=1.40.0,<2.0.0 | ||
protobuf>=4.21.6,<5.0.0 | ||
requests==2.27.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already included in the base image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Release `v0.13.0`
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## bump/oaea-1-40-0 #2066 +/- ##
===================================================
Coverage ? 94.23%
===================================================
Files ? 263
Lines ? 15956
Branches ? 0
===================================================
Hits ? 15036
Misses ? 920
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Proposed changes
This PR
Fixes
If it fixes a bug or resolves a feature request, be sure to link to that issue.
Types of changes
What types of changes does your code introduce? (A breaking change is a fix or feature that would cause existing functionality and APIs to not work as expected.)
Put an
x
in the box that appliesChecklist
Put an
x
in the boxes that apply.main
branch (left side). Also you should start your branch off ourmain
.