Skip to content

Instantly share code, notes, and snippets.

@zjm1060
Last active November 17, 2022 03:10
Show Gist options
  • Save zjm1060/d98448aae8ce3ff7bd1c7c4f029837e0 to your computer and use it in GitHub Desktop.
Save zjm1060/d98448aae8ce3ff7bd1c7c4f029837e0 to your computer and use it in GitHub Desktop.
FROM ubuntu:18.04
RUN sed -i 's@http://.*ubuntu.com@http://repo.huaweicloud.com@g' /etc/apt/sources.list
RUN apt update
RUN apt install -y locales git openssh-server vim nautilus \
openjdk-17-jre make gcc-aarch64-linux-gnu \
g++-aarch64-linux-gnu gdb-multiarch \
gcc-arm-linux-gnueabihf \
g++-arm-linux-gnueabihf
RUN apt update && apt install -y -f
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
RUN echo "PermitRootLogin yes" > /etc/ssh/sshd_config
RUN echo "root:root" | chpasswd
RUN service ssh start
WORKDIR /root
RUN wget -c https://mirrors.neusoft.edu.cn/eclipse/oomph/epp/2022-09/R/eclipse-inst-jre-linux64.tar.gz
RUN tar xf eclipse-inst-jre-linux64.tar.gz
RUN rm eclipse-inst-jre-linux64.tar.gz
ENV DISPLAY your ip address:0
RUN /root/eclipse-installer/eclipse-inst
docker build -t ubuntu-eclipse -f eclipse.dockerfile .
//docker commit 2d70142242b2 ubuntu-eclipse
docker run -it --name eclipse -p 5022:22 -v "$PWD/eclipse-workspace:/root/eclipse-workspace" ubuntu-eclipse
export DISPLAY=your ip address:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment