jsimonetti / docker-gns3-server

Dockerfile for GNS3 server
The Unlicense
75 stars 26 forks source link

busybox missing in gns3 server version 2.2.46 #145

Closed minpeter closed 4 months ago

minpeter commented 7 months ago

I know it's not a problem with this repo.

However, I opened an issue because it can be resolved simply by updating the dockerfile until the next version is released.

FROM alpine:3.19.1

# Install the magic wrapper.
ADD ./start.sh /start.sh
ADD ./config.ini /config.ini
ADD ./requirements.txt /requirements.txt
COPY dependencies.json /tmp/dependencies.json

RUN mkdir /data && \
    apk add --no-cache --virtual=build-dependencies jq gcc python3-dev musl-dev linux-headers \
    && jq -r 'to_entries | .[] | .key + "=" + .value' /tmp/dependencies.json | xargs apk add --no-cache \
    && pip install -r /requirements.txt --break-system-packages \
    && apk del --purge build-dependencies

CMD [ "/start.sh" ]

# this new line!!
RUN ln -s /bin/busybox /usr/lib/python3.11/site-packages/gns3server/compute/docker/resources/bin
WORKDIR /data

VOLUME ["/data"]

This temporarily resolves the issue of Docker not running.

jsimonetti commented 7 months ago

Hi, thank you for submitting this. Is this a know issue that is being worked on somewhere? If so, could you link to it from here so we can track when it is fixed?

minpeter commented 7 months ago

https://github.com/GNS3/gns3-server/issues/2367

I reported it myself. We haven't confirmed yet whether the issue has been resolved in beta v3.0. I will share progress.

jsimonetti commented 7 months ago

@minpeter can you confirm the last docker image fixes your problem?

minpeter commented 7 months ago

Solved. thanks :)

jsimonetti commented 7 months ago

Ill keep this open until we get an update from upstream

minpeter commented 6 months ago

Upstream issue is closed. They decided to no longer include busybox in their packaging.

I think we can review whether the busybox connection implemented above is the best practice and close this issue.

jsimonetti commented 4 months ago

I have added a permanent solution for this.

Please re-open if this did not fix your issue.