9 Star 18 Fork 40

openEuler/yocto-embedded-tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
# base image
FROM openeuler/openeuler:22.03-lts
# MAINTAINER
MAINTAINER harvey
# yum install
RUN set -eux; \
yum -y install git java tar cmake gperf sqlite-devel libffi-devel xz-devel zlib zlib-devel openssl-devel bzip2-devel ncurses-devel readline-devel libpcap-devel parted autoconf-archive chrpath gcc-c++ patch rpm-build flex autoconf automake m4 bison bc libtool gettext-devel createrepo_c git net-tools wget sudo hostname rpcgen texinfo python meson dosfstools mtools libmpc-devel gmp-devel ninja-build numactl-devel make
# gcc install
ARG tools_dir=/usr1/tools
ARG gcc_install_dir=/usr1/openeuler/gcc
# change dir to workdir and star install
WORKDIR ${tools_dir}
RUN wget https://repo.openeuler.org/openEuler-22.03-LTS/EPOL/main/x86_64/Packages/gcc-cross-1.0-0.oe2203.x86_64.rpm -P ${tools_dir}
RUN rpm2cpio ${tools_dir}/gcc-cross-1.0-0.oe2203.x86_64.rpm | cpio -id
# change dir to workdir and unpack
WORKDIR ${gcc_install_dir}
RUN tar -xf ${tools_dir}/tmp/openeuler_gcc_arm32le.tar.gz
RUN find ./openeuler_gcc_arm32le -type d | xargs chmod go+x
RUN chmod go+r ./openeuler_gcc_arm32le -R
RUN chmod -R 755 /usr1/openeuler/gcc/openeuler_gcc_arm32le/bin
RUN tar -xf ${tools_dir}/tmp/openeuler_gcc_arm64le.tar.gz
RUN find ./openeuler_gcc_arm64le -type d | xargs chmod go+x
RUN chmod go+r ./openeuler_gcc_arm64le -R
RUN chmod -R 755 /usr1/openeuler/gcc/openeuler_gcc_arm64le/bin
RUN find ./ | xargs chmod go+x
# clean install package
WORKDIR /usr1
RUN rm -rf tools
ARG VERSION=4.3
ARG user=openeuler
ARG group=openeuler
ARG uid=1000
ARG gid=1000
ARG AGENT_WORKDIR=/home/agent
# add build user
RUN groupadd -g ${gid} ${group}
RUN useradd -c "openeuler" -d /home/${user} -u ${uid} -g ${gid} -m ${user}
RUN echo "${user} ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
# modify /usr1 owner
RUN chown -R openeuler:users /usr1
# modify default configs
RUN sed -i 's/TMOUT=300/TMOUT=/g' /etc/bashrc
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openeuler/yocto-embedded-tools.git
git@gitee.com:openeuler/yocto-embedded-tools.git
openeuler
yocto-embedded-tools
yocto-embedded-tools
openEuler-22.03-LTS

搜索帮助