Skip to content
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

update algorand to latest #303

Merged
merged 2 commits into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions tfgrid3/algorand/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt -y install wget curl vim net-tools iputils-ping openssh-server

RUN wget -O /sbin/zinit https://github.com/threefoldtech/zinit/releases/download/v0.2.5/zinit && \
chmod +x /sbin/zinit
# Download and install latest zinit
RUN curl -s https://api.github.com/repos/threefoldtech/zinit/releases/latest | \
grep "browser_download_url" | \
cut -d '"' -f 4 | \
wget -qi - -O /sbin/zinit

RUN chmod +x /sbin/zinit

ENV ALGORAND_DATA=/var/lib/algorand
RUN echo export ALGORAND_DATA=/var/lib/algorand >> ~/.bashrc
Expand Down Expand Up @@ -52,4 +57,4 @@ COPY zinit /etc/zinit

ENTRYPOINT [ "/sbin/zinit", "init" ]

# IMAGE_TAG: threefolddev/algorand:v1.0-all
# IMAGE_TAG: threefolddev/algorand:v1.0-all
4 changes: 2 additions & 2 deletions tfgrid3/algorand/Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
```bash
SSH_KEY # your public ssh key
NETWORK # one of algorand nets [mainnet, testnet, betanet, devnet]
NODE_TYPE # algorand node type [default, participant, relay, indexer]
NODE_TYPE # algorand node type [default, relay, indexer]
ACCOUNT_MNEMONICS # account mnemonics that have some microalgo to do the participation transaction
FIRST_ROUND # first validation block (get it from algoexplorer or use 20M)
LAST_ROUND # last validation block (30M is reasonable range)
Expand All @@ -32,4 +32,4 @@ LAST_ROUND # last validation block (30M is reasonable range)
For every update
- create new tag and describe the changes you made for a better history tracking.
- update the tag in the dockerfile
- promote to latest after you done, so all changes can be applied across all projects using the flist.
- promote to latest after you done, so all changes can be applied across all projects using the flist.
27 changes: 0 additions & 27 deletions tfgrid3/algorand/scripts/configure_participant.sh

This file was deleted.

5 changes: 0 additions & 5 deletions tfgrid3/algorand/zinit/participant.yaml

This file was deleted.

4 changes: 1 addition & 3 deletions tfgrid3/algorand/zinit/sshkey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ exec: |

chmod 700 /root/.ssh
chmod 600 /root/.ssh/authorized_keys

echo "$SSH_KEY" >> /root/.ssh/authorized_keys
fi
'
oneshot: true
oneshot: true
Loading