boot"/>
sam9x60 boot
build.sh
#!/bin/bashdocker build --build-arg __USER__=${USER} \-t compile:latest .
dockerfile 根据 github 中的petalinux 构建 docker 环境的脚本修改出来的
FROM ubuntu:18.04ARG __USER__
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q \build-essential \sudo \tofrodos \iproute2 \gawk \net-tools \expect \libncurses5-dev \tftpd \update-inetd \libssl-dev \flex \bison \libselinux1 \gnupg \wget \socat \gcc-multilib \libsdl1.2-dev \libglib2.0-dev \lib32z1-dev \libgtk2.0-0 \libtinfo5 \xxd \screen \pax \diffstat \xvfb \xterm \texinfo \gzip \unzip \cpio \chrpath \autoconf \lsb-release \libtool \libtool-bin \locales \kmod \git \rsync \bc \openssh-server \libpython3-dev \u-boot-tools \python3 \software-properties-common\&& apt-get clean \&& rm -rf /var/lib/apt/lists/*RUN locale-gen en_US.UTF-8 && update-locale
EXPOSE 22 80
RUN adduser --disabled-password --gecos '' ${__USER__} && \usermod -aG sudo ${__USER__} && \echo "${__USER__} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
COPY ./installEnv.sh /home/${__USER__}
RUN cd /home/${__USER__} && ./installEnv.sh
RUN cd /home/${__USER__} && rm ./installEnv.sh
USER ${__USER__}
ENV HOME /home/${__USER__}
ENV LANG en_US.UTF-8
WORKDIR /home/${__USER__}
加上喜爱的neovim 工具
# neovim software
wget .tar.gz
tar xvzf nvim-linux64.tar.gz
cp -rvf nvim-linux64/* /usr/
rm -rf nvim-linux64.tar.gz
rm -rf nvim-linux64# nodejs neovim must depend
wget .4.0/node-v20.4.0-linux-x64.tar.xz
tar xvJf node-v20.4.0-linux-x64.tar.xz
cp -rf node-v20.4.0-linux-x64/* /usr
rm -rf node-v20.4.0-linux-x64.tar.xz
rm -rf node-v20.4.0-linux-x64
ubuntu18.04
buildroot/package/{fakeroot,dtc} 需要修改
更多推荐
sam9x60 boot
发布评论