Skip to content
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

busybox missing in gns3 server version 2.2.46 #145

Closed
minpeter opened this issue Apr 8, 2024 · 7 comments
Closed

busybox missing in gns3 server version 2.2.46 #145

minpeter opened this issue Apr 8, 2024 · 7 comments

Comments

@minpeter
Copy link

minpeter commented Apr 8, 2024

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
Copy link
Owner

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
Copy link
Author

minpeter commented Apr 8, 2024

GNS3/gns3-server#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 added a commit that referenced this issue Apr 8, 2024
Workaround for #145
@jsimonetti
Copy link
Owner

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

@minpeter
Copy link
Author

minpeter commented Apr 8, 2024

Solved. thanks :)

@jsimonetti
Copy link
Owner

Ill keep this open until we get an update from upstream

@minpeter
Copy link
Author

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 added a commit that referenced this issue Jun 21, 2024
Signed-off-by: Jeroen Simonetti <[email protected]>
@jsimonetti
Copy link
Owner

I have added a permanent solution for this.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants