Skip to content

Commit

Permalink
Merge pull request #303 from threefoldtech/algola_test
Browse files Browse the repository at this point in the history
update algorand to latest
  • Loading branch information
hossnys authored Jan 12, 2025
2 parents f1051a6 + 5f3c228 commit 7fb532c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 40 deletions.
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

0 comments on commit 7fb532c

Please sign in to comment.