forked from fetchai/agents-aea
-
Notifications
You must be signed in to change notification settings - Fork 16
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 user image #669
Merged
Merged
Optimise user image #669
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -377,4 +377,5 @@ plug-in | |
cosmpy | ||
tomte | ||
pyyaml | ||
1.36.0 | ||
1.36.0 | ||
1.39.0.post1 |
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,36 +1,16 @@ | ||
FROM ubuntu:22.04 | ||
FROM python:3.11-slim | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
RUN apt-get install sudo git curl -y | ||
|
||
RUN adduser --disabled-password --gecos '' ubuntu | ||
RUN adduser ubuntu sudo | ||
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | ||
|
||
RUN apt install -y python3.10 python3.10-dev python3-pip libffi-dev | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install pipenv | ||
|
||
# utils | ||
RUN apt install -y wget | ||
|
||
# golang | ||
RUN wget https://dl.google.com/go/go1.13.8.linux-amd64.tar.gz && \ | ||
tar -xzvf go1.13.8.linux-amd64.tar.gz -C /usr/local && \ | ||
export PATH=$PATH:/usr/local/go/bin && echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && \ | ||
mkdir $HOME/go | ||
|
||
Comment on lines
-18
to
-21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not required for agent runtime |
||
USER ubuntu | ||
|
||
ENV PATH="${PATH}:/usr/local/go/bin" | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV LC_ALL C.UTF-8 | ||
ENV LANG C.UTF-8 | ||
|
||
RUN apt update && apt install -y python3.11-dev python3-pip -y && apt autoremove && apt autoclean | ||
|
||
RUN pip3 install --upgrade pip | ||
RUN pip3 install "open-aea[all]==1.39.0.post1" open-aea-cli-ipfs==1.39.0.post1 | ||
|
||
COPY user-image/openssl.cnf /etc/ssl | ||
|
||
RUN echo 'PATH="$(python3.10 -m site --user-base)/bin:${PATH}"' >> ~/.bashrc | ||
RUN echo "alias pip=pip3" >> ~/.bashrc | ||
RUN echo "alias python=python3.10" >> ~/.bashrc | ||
WORKDIR /root | ||
|
||
ENTRYPOINT [ "/bin/bash"] | ||
ENTRYPOINT ["/bin/bash", "-c"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
cool change!
we definitely need to pay more attention to the images quiality