Skip to content

Commit

Permalink
Use Ubuntu python3-requests on examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vfusco committed Feb 15, 2023
1 parent 53e0fc8 commit 5f2283f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/img-pack
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ blocksize=4096
bytes=$(($(wc -c < "$1") +0))
bcargs="$(cat <<- EOF
define max(a, b) { return (a > b) * a + (a <= b) * b }
max(8, 1.2 * ($bytes + $blocksize - 1) / $blocksize)
max(8, 1.5 * ($bytes + $blocksize - 1) / $blocksize)
EOF
)"
blocks=$(echo "$bcargs" | bc)
Expand Down
7 changes: 3 additions & 4 deletions example/ubuntu-22.04.dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM --platform=linux/riscv64 riscv64/ubuntu:22.04
ARG TOOLS=machine-emulator-tools.tar.gz
RUN apt update && \
apt install -y --no-install-recommends \
RUN apt-get update && \
apt-get install -y --no-install-recommends \
busybox-static \
python3 python3-pip && \
pip3 install requests && \
python3 python3-requests && \
rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --user-group dapp
ADD ${TOOLS} /

0 comments on commit 5f2283f

Please sign in to comment.