Skip to content

Commit 0083311

Browse files
committed
修改ubuntu的构建环境
1 parent 517e648 commit 0083311

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

rockylinux_dev/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM rockylinux:9.3.20231119 AS base
22

33
RUN dnf install -y dnf-plugins-core && dnf install -y epel-release && dnf config-manager --set-enabled crb
44

5-
RUN yum -y install openssh openssh-server openssh-clients util-linux-user procps-ng-devel
5+
RUN yum -y install openssh openssh-server openssh-clients util-linux-user procps-ng-devel fuse-sshfs
66
RUN yum -y install vim gcc gcc-c++ perl-Encode* perl-Data-Dumper perl-Text-Unidecode perl-libintl autoconf automake libtool git file bison texinfo ncurses-* make gperf rsync gettext-devel wget patch CUnit-devel net-tools iproute gdb
77

88

rockylinux_dev/Dockerfile_aarch64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM rockylinux:9.3.20231119 AS base
22

33
RUN dnf install -y dnf-plugins-core && dnf install -y epel-release && dnf config-manager --set-enabled crb
44

5-
RUN yum -y install openssh openssh-server openssh-clients util-linux-user procps-ng-devel
5+
RUN yum -y install openssh openssh-server openssh-clients util-linux-user procps-ng-devel fuse-sshfs
66
RUN yum -y install vim gcc gcc-c++ perl-Encode* perl-Data-Dumper perl-Text-Unidecode perl-libintl autoconf automake libtool git file bison texinfo ncurses-* make gperf rsync gettext-devel wget patch CUnit-devel net-tools iproute gdb
77

88

ubuntu_dev/Dockerfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ ARG DEBIAN_FRONTEND=noninteractive
77
ENV TZ=Asia/Shanghai
88

99
RUN apt-get update
10-
RUN apt-get install -y locales gcc g++ libncurses-dev vim net-tools git curl iftop htop build-essential gdb iproute2 && rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
10+
RUN apt-get install -y locales gcc g++ libncurses-dev vim net-tools git curl iftop htop build-essential gdb iproute2 && \
11+
rm -rf /var/lib/apt/lists/* && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
1112
ENV LANG en_US.utf8
1213

1314
# SSH Install
@@ -51,21 +52,16 @@ RUN go install github.com/ramya-rao-a/go-outline@latest && \
5152
go install github.com/go-delve/delve/cmd/dlv@latest && \
5253
go install honnef.co/go/tools/cmd/staticcheck@latest && \
5354
go install golang.org/x/tools/gopls@latest
55+
56+
FROM golangdev AS nodedev
5457
# nvm Install
5558
RUN bash /opt/devinstaller/nodejsinstaller.sh
5659

5760
FROM nodedev AS pydev
5861
# python Install
5962
RUN bash /opt/devinstaller/pyinstaller.sh
6063

61-
# 配置 xvfb和x11vnc 环境
62-
ENV DISPLAY=":1"
63-
RUN apt-get install -y x11vnc xvfb firefox gedit-dev xdotool
64-
RUN mkdir /root/.vnc && \
65-
touch /root/.vnc/passwd && \
66-
x11vnc -storepasswd "p@ssw0rd" /root/.vnc/passwd
67-
68-
64+
FROM pydev AS javadev
6965
# 配置 Java开发环境
7066
RUN bash /opt/devinstaller/javainstaller.sh
7167

ubuntu_dev/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fi
66
cp -r ../devinstaller ./devinstaller
77

88
if [[ $(uname -m) == "x86_64" ]]; then
9-
docker build --builder mybuilder --network=host -f Dockerfile --load --target vscodeserver -t liuwenru/ubuntu_dev:$(uname -m) .
9+
docker build --no-cache --builder mybuilder --network=host -f Dockerfile --load -t liuwenru/ubuntu_dev:$(uname -m) .
1010
elif [[ $(uname -m) == "aarch64" ]]; then
1111
docker build --no-cache --network=host -f Dockerfile_aarch64 -t liuwenru/ubuntu_dev:$(uname -m) .
1212
fi

0 commit comments

Comments
 (0)