Unverified Commit f6440a24 authored by Alexey Tsvetkov's avatar Alexey Tsvetkov Committed by GitHub

Add Dockerfile for Linux arm64 image (#134)

parent f948cc39
...@@ -3,7 +3,6 @@ build ...@@ -3,7 +3,6 @@ build
.project .project
local.properties local.properties
.DS_Store .DS_Store
run.sh
.idea .idea
deploy.sh deploy.sh
deploy.bat deploy.bat
......
FROM arm64v8/ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y
RUN apt-get install binutils build-essential -y
RUN apt-get install software-properties-common -y
RUN apt-get install python git fontconfig libfontconfig1-dev libglu1-mesa-dev curl wget -y
RUN apt-get install openjdk-11-jdk -y
RUN apt-get install clang-11 -y && \
apt-get remove g++ -y && \
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 100 && \
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-11 100
# Install libs & tools
ENV DEPOT_TOOLS=/usr/depot_tools
ENV PATH=$DEPOT_TOOLS:$PATH
RUN git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' $DEPOT_TOOLS
# Use UTF-8 by default
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
ENV JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF
\ No newline at end of file
CD=$(dirname "$0")
IMAGE_NAME=$(sh $CD/image-name.sh)
docker build -t $IMAGE_NAME $CD
\ No newline at end of file
echo skiko-build-ubuntu-2004-aarch64:latest
\ No newline at end of file
CD=$(dirname "$0")
IMAGE_NAME=$(sh $CD/image-name.sh)
SKIKO_ROOT_LOCAL=$(cd $CD/../.. && pwd)
docker run \
--cpus 1 \
--memory 4g \
--tty --interactive \
--volume $SKIKO_ROOT_LOCAL:/skiko \
--workdir /skiko \
$IMAGE_NAME \
bash
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment