Official Docker Image #108
Replies: 2 comments 1 reply
-
Ah nice! That project sounds like it lines up well with using only the terminal. Hopefully the One point here, the turtle commands (E.G. Given your project, another thing which may be worth mentioning is setting up an editor. There are some notes here: I just tested out with the image and was able to do the following:
At that point, I can run It would be cool to be able to run ucblogo on a very lightweight container; I have to admit, I don't have much experience on that front :) One of the ideas I've been mulling (but haven't done anything on) is building a ucblogo image which can take a program and capture the turtle graphics output. |
Beta Was this translation helpful? Give feedback.
-
So this one builds an image under 10Mb. FROM debian:10 AS builder
RUN apt-get update \
&& apt-get install -y \
build-essential autoconf autoconf-archive automake coreutils libtool gettext git ncurses-dev texinfo texlive libwxgtk3.0-dev
WORKDIR /logo
RUN git clone https://github.com/jrincayc/ucblogo-code .
RUN autoreconf --install \
&& ./configure --without-wx-config \
&& make \
&& make install
RUN ldd ucblogo | tr -s '[:blank:]' '\n' | grep '^/' | \
xargs -I % sh -c 'mkdir -p $(dirname deps%); cp % deps%;'
FROM gcr.io/distroless/static
COPY --from=builder /logo/deps /
COPY --from=builder /usr/local/bin/ucblogo /
COPY --from=builder /usr/local/share/ucblogo/logolib /
CMD [ "/ucblogo" ] There's no vi, and "FORWARD 100" triggers a malloc, but it's a start. |
Beta Was this translation helpful? Give feedback.
-
My plan was to go through this book: https://people.eecs.berkeley.edu/~bh/v1-toc2.html
I expected that something like
docker run -it ucblogo:latest
would give me an environment enough to check all the examples from the book. After finding out that there's no official image, I thought "how hard can it be", so that started this #107 :)I am not particularly sure about the turtle graphics. If there's an option to use just the terminal for it that would be great.
On an unrelated note: I hoped to use
debian
image only to build the program, and then to run the actual program on something considerably more lightweight, like https://github.com/GoogleContainerTools/distroless/blob/main/base/README.mdBeta Was this translation helpful? Give feedback.
All reactions