1.4K Star 7K Fork 1.2K

GVP方舟编译器 / OpenArkCompiler

Clone or download
Dockerfile
Copy Edit Web IDE Raw Normal History
keithyau   Add dockerfile 2019-11-02
FROM ubuntu:16.04 AS build-envMAINTAINER https://www.openarkcompiler.cn# Setting up the build environmentRUN 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 && \
东方星痕   更新Dockerfile 优化掉不需要的依赖 2020-09-25
    apt-get -y install openjdk-8-jdk git-core build-essential zlib1g-dev libc6-dev-i386 g++-multilib gcc-multilib linux-libc-dev:i386 && \    apt-get -y install gcc-5-aarch64-linux-gnu g++-5-aarch64-linux-gnu unzip tar curl && \    apt-get -y install python3-paramiko python-paramiko python-requests && \
ystyle   fix: Replace with the correct llvm path 2020-07-14
    mkdir -p /tools/ninja /tools/gn
东方星痕   update Dockerfile. 2020-07-21
# 在国内请反注释下行, 因为容器也是个单独的系统,所以别用127.0.0.1#ENV http_proxy=http://192.168.3.81:1081 \ #    https_proxy=http://192.168.3.81:1081
ystyle   fix: Replace with the correct llvm path 2020-07-14
RUN cd /tools && \
keithyau   Add dockerfile 2019-11-02
    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 && \
东方星痕   更新Dockerfile 优化掉不需要的依赖 2020-09-25
    curl -LO http://tools.harmonyos.com/mirrors/gn/1523/linux/gn.1523.tar && \
keithyau   Add dockerfile 2019-11-02
    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/ && \
东方星痕   更新Dockerfile 优化掉不需要的依赖 2020-09-25
    tar xvf /tools/gn.1523.tar && \
keithyau   Add dockerfile 2019-11-02
    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 sourceCOPY . /OpenArkCompilerWORKDIR /OpenArkCompiler
东方星痕   更新Dockerfile 优化掉不需要的依赖 2020-09-25
# create symbolic link
keithyau   Add dockerfile 2019-11-02
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 && \
ystyle   fix: Replace with the correct llvm path 2020-07-14
    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
东方星痕   更新Dockerfile 优化掉不需要的依赖 2020-09-25
keithyau   Add dockerfile 2019-11-02
# compile
ystyle   fix: dockerfile: Replace with the correct compilation output path 2020-07-14
RUN ["/bin/bash", "-c", "source build/envsetup.sh && make && ls -al "]
keithyau   Add dockerfile 2019-11-02
# build final docker imageFROM ubuntu:16.04RUN 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
ystyle   fix: dockerfile: Replace with the correct compilation output path 2020-07-14
COPY --from=build-env /OpenArkCompiler/output /OpenArkCompiler
keithyau   Add dockerfile 2019-11-02
VOLUME /OpenArkCompilerENV PATH=/OpenArkCompiler/bin:$PATH
ystyle   fix: Replace with the correct llvm path 2020-07-14
CMD maple -h
C++
1
https://git.oschina.net/openarkcompiler/OpenArkCompiler.git
git@git.oschina.net:openarkcompiler/OpenArkCompiler.git
openarkcompiler
OpenArkCompiler
OpenArkCompiler
master

Search