Skip to content

Commit 316e046

Browse files
Merge pull request #2066 from valory-xyz/feat/optimise-images
Optimise images
2 parents 01ef7ee + 2f739a7 commit 316e046

File tree

66 files changed

+350
-1084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+350
-1084
lines changed

HISTORY.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
# Release History - `open-autonomy`
22

33

4+
# 0.13.0 (2023-09-27)
5+
6+
Autonomy:
7+
- Replaces `open-aea-web3` with `web3py<7,>=6.0.0`
8+
- Bumps `protobuf<5.0.0,>=4.21.6`
9+
- Fixes `protobuf` incompatibility issue when importing hardware wallet plugin
10+
- Refactors autonomy and agent images to
11+
- Include install and build scripts in the base image
12+
- Remove unwanted layers
13+
- Remove unwanted data files
14+
15+
Packages:
16+
- Generates protocols using the latest compatible `protobuf` compiler
17+
- Compiles the tendermint connection protocol buffers using the latest compatible `protobuf` compiler
18+
19+
Chores:
20+
- Bumps `protobuf` compiler to `24.3`
21+
422
# 0.12.1.post4 (2023-09-25)
523

624
Autonomy:

SECURITY.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ The following table shows which versions of `open-autonomy` are currently being
88

99
| Version | Supported |
1010
| --------- | ------------------ |
11-
| `0.12.1.post4` | :white_check_mark: |
12-
| `< 0.12.x` | :x: |
11+
| `0.13.0` | :white_check_mark: |
12+
| `< 0.13.x` | :x: |
1313

1414
## Reporting a Vulnerability
1515

autonomy/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
__title__ = "open-autonomy"
2323
__description__ = "A framework for the creation of autonomous agent services."
2424
__url__ = "https://github.com/valory-xyz/open-autonomy.git"
25-
__version__ = "0.12.1.post4"
25+
__version__ = "0.13.0"
2626
__author__ = "Valory AG"
2727
__license__ = "Apache-2.0"
2828
__copyright__ = "2021-2022 Valory AG"

autonomy/constants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@
5858
ACN_IMAGE_NAME = os.environ.get("ACN_IMAGE_NAME", "valory/open-acn-node")
5959
DEFAULT_DOCKER_IMAGE_AUTHOR = "valory"
6060
OAR_IMAGE = "{image_author}/oar-{agent}:{version}"
61-
ABSTRACT_ROUND_ABCI_SKILL_WITH_HASH = "valory/abstract_round_abci:0.1.0:bafybeihh7st2pmutpodau3u53i4kkexa6xj5d3ry3lnsehfb5s53u4he2q"
61+
ABSTRACT_ROUND_ABCI_SKILL_WITH_HASH = "valory/abstract_round_abci:0.1.0:bafybeibrrgdzbpdqyirkfulg5bgkrdwlynezdheplm55xfhkrnlxgvluo4"

autonomy/data/Dockerfiles/agent/Dockerfile

+4-7
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ FROM ${AUTONOMY_IMAGE_NAME}:${AUTONOMY_IMAGE_VERSION}
66
ARG AEA_AGENT
77
ARG AUTHOR
88

9-
COPY start.sh /home/ubuntu
10-
COPY install.sh /home/ubuntu
9+
RUN aea init --reset --remote --ipfs --author ${AUTHOR}
1110

12-
VOLUME /home/ubuntu/logs
13-
WORKDIR /home/ubuntu
11+
WORKDIR /root
1412

15-
RUN aea init --reset --remote --ipfs --author ${AUTHOR}
16-
RUN AEA_AGENT=${AEA_AGENT} bash install.sh
13+
RUN AEA_AGENT=${AEA_AGENT} bash /root/scripts/install.sh
1714

18-
CMD ["start.sh"]
15+
CMD ["/root/scripts/start.sh"]
1916

2017
HEALTHCHECK --interval=3s --timeout=600s --retries=600 CMD netstat -ltn | grep -c 26658 > /dev/null; if [ 0 != $? ]; then exit 1; fi;
+11-17
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,21 @@
11
ARG AEA_VERSION=latest
2-
FROM valory/open-aea-user:${AEA_VERSION}
3-
ARG AUTHOR=default_author
42

5-
WORKDIR /home/ubuntu
6-
ENV PATH=$PATH:/home/ubuntu/.local/bin
3+
FROM valory/open-aea-user:${AEA_VERSION}
74

8-
RUN sudo apt-get update && sudo apt-get upgrade -y
9-
RUN cd /usr/bin && sudo rm python3 && sudo ln -s python3.10 python3 && sudo ln -s python3.10 python
10-
RUN sudo apt-get install wait-for-it net-tools -y
11-
RUN sudo apt remove --purge python3-virtualenv
5+
ARG AUTHOR=default_author
126

7+
RUN apt remove --purge python3-virtualenv
8+
RUN python -m pip uninstall -y setuptools
139
RUN python -m pip install --upgrade pip
1410
RUN python -m pip install --force-reinstall pipenv virtualenv --user
15-
RUN python -m pip uninstall -y setuptools
16-
WORKDIR /home/ubuntu
1711

18-
COPY openssl.cnf /etc/ssl
19-
COPY Pipfile /home/ubuntu/Pipfile
20-
COPY start_dev.sh /home/ubuntu/start_dev.sh
21-
COPY start.sh /home/ubuntu/start.sh
22-
COPY watcher.py /home/ubuntu/watcher.py
12+
WORKDIR /root
2313

24-
CMD ["./start_dev.sh"]
14+
COPY Pipfile /root/Pipfile
15+
COPY start_dev.sh /root/start_dev.sh
16+
COPY start.sh /root/start.sh
17+
COPY watcher.py /root/watcher.py
2518

26-
HEALTHCHECK --interval=3s --timeout=600s --retries=600 CMD netstat -ltn | grep -c 26658 > /dev/null; if [ 0 != $? ]; then exit 1; fi;
19+
CMD ["/root/start_dev.sh"]
2720

21+
HEALTHCHECK --interval=3s --timeout=600s --retries=600 CMD netstat -ltn | grep -c 26658 > /dev/null; if [ 0 != $? ]; then exit 1; fi;

0 commit comments

Comments
 (0)