-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker support #107
Comments
That specific error is due to not having Alpine VersionI did find a couple errors which led me to switch to alpine 3.13:
As well as:
There may be a better approach; but, moving back to 3.13 appears to resolve these. pr commandThe next error relates to missing the
This can be addressed by adding makeinfoThe next error is missing
This can be addressed by adding terminalThe next error I'm a bit stumped by at the moment to be honest:
I tried adding a few different terminal related packages; but, I think I'm going to admit I've gotten to the point of just making guesses at this point and hope this jumps out to someone else :) Revised DockerfileWhere this puts my working FROM alpine:3.13 AS builder
RUN apk add --update \
alpine-sdk \
autoconf \
autoconf-archive \
automake \
coreutils \
libtool \
gettext \
git \
texinfo \
texlive \
wxgtk
WORKDIR /logo
RUN git clone https://github.com/jrincayc/ucblogo-code .
RUN autoupdate \
&& autoreconf --install \
&& ./configure \
&& make |
Ah, one cup of coffee later ☕ and stepping back a bit - instead of |
I think the
But now I am facing this
|
Gotcha, makes sense. I think the next step is probably going to depend on the project you are envisioning (it will likely depend on if you're looking to use turtle graphics or not and if you want an interactive environment or a virtual display environment). If you're willing to share a bit about your project, I think this sounds like a great topic for the discussion area :) That said, to get to a Logo prompt in the console, I'd suggest configuring without wx:
(IIRC, it's necessary to have wx on the docker image in order to get the necessary macro to request not using it, so I wouldn't remove it from the install command). However, that is going to require being able to build/link the non-wx console. I found that adding ncurses-dev satisfied the necessary requirements (there may be other approaches here as well). In order to have paths to various data files set up properly, I'd suggest doing a 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 ls -la /logo
CMD [ "ucblogo" ] Hopefully this will get you to a point where you see the following when you run the docker image:
|
When trying to build this on docker
this is the output
Please advise.
The text was updated successfully, but these errors were encountered: