Skip to content

Commit 10e0986

Browse files
committed
Simplify build.sh run instructions.
1 parent 9ddfe85 commit 10e0986

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ENV PATH=/root/.cargo/bin:${PATH}
2727
RUN apt-get install -y --no-install-recommends clang
2828

2929
# Install python
30-
RUN apt-get install -y --no-install-recommends python3.10 libpython3.10 python3-distutils python3-pip
30+
RUN apt-get install -y --no-install-recommends python3.8 libpython3.8 python3-distutils python3-pip
3131
RUN python3 -m pip install termgraph \
3232
&& python3 -m pip install pandas \
3333
&& python3 -m pip install termcolor \

build.sh

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,8 @@ docker tag ${IMAGE_NAME} ${IMAGE_NAME}_${ARCH}_${KERNEL}:latest
1212
docker tag ${IMAGE_NAME} ${IMAGE_NAME}_${ARCH}_${KERNEL}:${IMAGE_VER}
1313

1414
echo ""
15-
echo "The entry point is a wrapper to the python script 'wasmscore.py'"
15+
echo "The entry point is a wrapper to the python script 'wasmscore.py'."
16+
echo ""
1617
echo "To run from this local build use command (for a list of more options use --help):"
1718
echo "> docker run -ti ${IMAGE_NAME} <options>"
1819
echo ""
19-
echo "To stop and rm all ${IMAGE_NAME} containers:"
20-
echo "> docker rm \$(docker stop \$(docker ps -a -q --filter ancestor=${IMAGE_NAME}:latest --format="{{.ID}}"))"
21-
echo ""
22-
echo "For a detached setup that allows for copying files to the image or"
23-
echo "entering the container, use the following commands:"
24-
echo "> docker run --entrypoint=/bin/bash -ti -d ${IMAGE_NAME}"
25-
echo "> wasmscore_container_id=\$(docker ps | grep -m 1 ${IMAGE_NAME} | awk '{ print \$1 }')"
26-
echo ""
27-
echo "> docker cp <file> \${wasmscore_container_id}:"
28-
echo "or"
29-
echo "> docker exec -ti \${wasmscore_container_id}" /bin/bash
30-
echo ""

wasmscore.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
cd sightglass
3-
python3.10 ./wasmscore.py $@
3+
python3 ./wasmscore.py $@
44
cd - > /dev/null

0 commit comments

Comments
 (0)