Public Repository

Last pushed: 3 months ago
Short Description
CentOS 7 Docker Image with Eclipse Neon, Maven 3.5.0 and Open JDK 1.8.0
Full Description

How to run this image:

The following docker-compose file can be used to run this image

docker-compose.yml:

version: '3'
services:
    eclipse:
        image: "wabreu/eclipse"
        environment:
            - DISPLAY=${DISPLAY}
        volumes:
            - .:/home/developer
            - /tmp/.X11-unix:/tmp/.X11-unix
        links:
            - wildfly

Dockerfile Content:

FROM centos:7

# Install Maven e Eclipse Neon
ADD apache-maven-3.5.0-bin.tar.gz /opt/
ADD eclipse-neon.tar.gz /opt/

# Install necessary packages for  eclipse
RUN yum -y update && \
    yum -y install dbus sudo libXtst gtk2 gtk2-enginesi xorg-x11-fonts-* liberation-sans-fonts java-1.8.0-openjdk-devel && \
    yum clean all && rm -rf /tmp/* && \
    ln -s /opt/eclipse/eclipse /usr/bin/eclipse && \
    ln -s /opt/apache-maven-3.5.0/bin/mvn /usr/bin/mvn

# Create a Developer user
RUN groupadd -r developer -g 1000 && useradd -u 1000 -r -g developer -m -d /home/developer -c "User Developer" developer && \
    chmod 755 /home/developer && \
    echo "developer ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

WORKDIR /home/developer

USER developer

# Set default encoding
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

# Set Java Home
ENV JAVA_HOME /usr/lib/jvm/java

CMD ["/opt/eclipse/eclipse"]
Docker Pull Command
Owner
wabreu

Comments (0)