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

The name org.eclipse.swt was not provided by any .service files #33

Open
fipro78 opened this issue Nov 21, 2022 · 0 comments
Open

The name org.eclipse.swt was not provided by any .service files #33

fipro78 opened this issue Nov 21, 2022 · 0 comments

Comments

@fipro78
Copy link

fipro78 commented Nov 21, 2022

I tried to update the example to current versions of Java and Eclipse. But when I start the container and try to access the containerized Eclipse via browser, I get the following error:

*** Please connect to http://172.17.0.2:5000 using your web browser ***
Starting Eclipse IDE...
Listening on /root/.cache/broadway6.socket
Error: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.eclipse.swt was not provided by any .service files

I tried it with this Dockerfile

FROM fedora:34

ENV http_proxy http://host.docker.internal:3128
ENV https_proxy http://host.docker.internal:3128

RUN dnf -y update && dnf -y install \
      dbus dbus-daemon dbus-glib \
      xorg-x11-server-utils \
      webkit2gtk3 webkit2gtk3-devel \
      mesa-libGL \
      adobe-source-code-pro-fonts abattis-cantarell-fonts \
      gnome-settings-daemon \
      wget tar \
      git-all \
      java-17-openjdk && \
      dnf clean all && \
      wget https://dlcdn.apache.org/maven/maven-3/3.8.6/binaries/apache-maven-3.8.6-bin.tar.gz && \
      sudo tar xzf apache-maven-3.8.6-bin.tar.gz -C /opt && \
      cd /opt && sudo ln -s apache-maven-3.8.6 maven

ENV MAVEN_HOME /opt/maven
ENV PATH $MAVEN_HOME/bin:$PATH

# Configure broadway
ENV BROADWAY_DISPLAY=:5
ENV BROADWAY_PORT=5000
EXPOSE 5000
ENV GDK_BACKEND=broadway

# Get Eclipse IDE
RUN echo "Downloading Eclipse" && \
    cd /root && \
    wget -O- "http://ftp.osuosl.org/pub/eclipse/technology/epp/downloads/release/2022-09/R/eclipse-java-2022-09-R-linux-gtk-x86_64.tar.gz" | tar xz && \
    cd eclipse/ && \
    echo $'name=Eclipse IDE\n\
id=org.eclipse.ui.ide.workbench\n\
version=4.25.0' > .eclipseproduct

# Prepare project area
RUN mkdir /projects
VOLUME /projects

RUN for f in "/etc" "/var/run" "/projects" "/root"; do \
    	chgrp -R 0 ${f} && \
    	chmod -R g+rwX ${f}; \
    done

COPY ./init.sh /
ENTRYPOINT [ "/init.sh" ]

Any idea what is missing or needs to be adjusted to make it work again?

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

1 participant