代码拉取完成,页面将自动刷新
同步操作将从 方舟编译器/OpenArkCompiler 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
FROM ubuntu:16.04 AS build-env
MAINTAINER https://www.openarkcompiler.cn
# Setting up the build environment
RUN sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list && \
dpkg --add-architecture i386 && \
apt-get -y update && \
apt-get -y dist-upgrade && \
apt-get -y install curl git-core tar xz-utils unzip gnupg flex bison gperf build-essential ccache openjdk-8-jdk && \
apt-get -y install zlib1g-dev libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc lib32z1-dev qemu g++-multilib gcc-multilib libglib2.0-dev libpixman-1-dev linux-libc-dev:i386 && \
apt-get -y install python3-paramiko python-paramiko python-jenkins python-requests python-xlwt && \
apt-get -y install gcc-5-aarch64-linux-gnu g++-5-aarch64-linux-gnu aria2 && \
mkdir -p /tools/ninja /tools/gn
# 在国内请反注释下行, 因为容器也是个单独的系统,所以别用127.0.0.1
#ENV http_proxy=http://192.168.3.81:1081 \
# https_proxy=http://192.168.3.81:1081
RUN cd /tools && \
curl -C - -LO http://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz && \
curl -LO https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-linux.zip && \
curl -L -o /tools/gn/gn https://archive.softwareheritage.org/browse/content/sha1_git:2dc0d5b26caef44f467de8120b26f8aad8b878be/raw/?filename=gn && \
tar Jvxf /tools/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz -C /tools/ && \
unzip /tools/ninja-linux.zip -d /tools/ninja/ && \
chmod a+x /tools/gn/gn && \
rm /tools/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz /tools/ninja-linux.zip && \
rm -rf /var/cache/apt/archives
# copy source
COPY . /OpenArkCompiler
WORKDIR /OpenArkCompiler
# create symbolic link and
RUN mkdir -p /OpenArkCompiler/tools /OpenArkCompiler/tools/gn && \
ln -s /tools/ninja /OpenArkCompiler/tools/ninja_1.9.0 && \
ln -s /tools/gn/gn /OpenArkCompiler/tools/gn/gn && \
ln -s /tools/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04 /OpenArkCompiler/tools/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04
# compile
RUN ["/bin/bash", "-c", "source build/envsetup.sh && make && ls -al "]
# build final docker image
FROM ubuntu:16.04
RUN sed -i 's/archive.ubuntu.com/mirrors.163.com/g' /etc/apt/sources.list && \
apt-get -y update && \
apt-get install -y openjdk-8-jdk curl vim && \
rm -rf /var/cache/apt/archives
COPY --from=build-env /OpenArkCompiler/output /OpenArkCompiler
VOLUME /OpenArkCompiler
ENV PATH=/OpenArkCompiler/bin:$PATH
CMD maple -h
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。