Skip to content

Commit

Permalink
Merge pull request #23 from term-world/chompchain
Browse files Browse the repository at this point in the history
Adding chompchain requirements to topia images
  • Loading branch information
dluman committed Jun 25, 2023
2 parents 751c3c1 + 08dfa76 commit 14a4ac6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dockerfiles/topia/self-contained/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ RUN curl -fsSL $GITHUB_CDN/scripts/direvents.sh | cat >> /etc/bash.bashrc
RUN curl -fsSL $GITHUB_CDN/scripts/gginstall.sh | sh
RUN curl -fsSL $GITHUB_CDN/scripts/utilinstall.sh | sh

RUN git clone https://github.com/term-world/chompchain-wallet.git
RUN cd chompchain-wallet && python -m pip install .

RUN git clone https://github.com/term-world/chompchain.git
RUN cd chompchain && python -m pip install .

RUN git clone https://github.com/term-world/falcon-sign.git
RUN cd falcon-sign && python -m pip install .

RUN curl -fsSL https://code-server.dev/install.sh | sh

RUN curl -fsSL https://api.github.com/repos/term-world/term-world-theme/releases/latest | wget $(jq -r ".assets[].browser_download_url")
Expand Down
2 changes: 2 additions & 0 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ echo "export OPEN_AI_KEY=$OPEN_AI_KEY" >> $ENV_HELPER
echo "export OPEN_AI_ORG=$OPEN_AI_ORG" >> $ENV_HELPER

ln -s /world/.python/bin/python3 /usr/bin/python
rm /usr/bin/python3
ln -s /world/.python/bin/python3 /usr/bin/python3

useradd -u $VS_USER_ID $VS_USER -s /bin/bash
groupadd -g $GID $DISTRICT
Expand Down
8 changes: 8 additions & 0 deletions scripts/world-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ export PYTHONDONTWRITEBYTECODE=1

source /etc/profile.d/world-market.sh
source /etc/profile.d/world-helper.sh

# Chompchain

alias cmd_txn='f(){ last_cmd=$(history 1 | cut -c 8- | sed '\''s#\x22#\\x22#g'\'')
python -c "from chompchainwallet.transaction import CmdTransaction;
CmdTransaction(\"$last_cmd\")"; unset -f f;}; f'

PROMPT_COMMAND=cmd_txn

0 comments on commit 14a4ac6

Please sign in to comment.