-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7aba1ec
commit 81db7d9
Showing
272 changed files
with
13,850 additions
and
892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -318,4 +318,5 @@ src/OpenJpegDotNet.Native/build* | |
|
||
nuget/*.nupkg | ||
|
||
work | ||
work | ||
AppCertReport.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "src/openjpeg"] | ||
path = src/openjpeg | ||
url = https://github.com/uclouvain/openjpeg | ||
ignore = dirty | ||
ignore = dirty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM arm32v7/ubuntu:bionic | ||
LABEL maintainer "Takuya Takeuchi <takuya.takeuchi.dev@gmail.com>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM arm64v8/ubuntu:bionic | ||
LABEL maintainer "Takuya Takeuchi <takuya.takeuchi.dev@gmail.com>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM ubuntu:18.04 | ||
LABEL maintainer "Takuya Takeuchi <takuya.takeuchi.dev@gmail.com>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ARG IMAGE_NAME | ||
FROM ${IMAGE_NAME}:latest | ||
LABEL maintainer "Takuya Takeuchi <takuya.takeuchi.dev@gmail.com>" | ||
|
||
# install gosu to execute process by non-root user | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
gosu | ||
|
||
# to use add-apt-repository | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
software-properties-common | ||
|
||
RUN add-apt-repository ppa:git-core/ppa \ | ||
&& apt-get update && apt-get install -y --no-install-recommends \ | ||
git \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# copy build script and run | ||
COPY runBuild.sh /runBuild.sh | ||
RUN chmod 744 /runBuild.sh | ||
ENTRYPOINT ["./runBuild.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
Source=$1 | ||
TARGET=$2 | ||
ARCH=$3 | ||
PLATFORM=$4 | ||
DDNROOT=/opt/data/OpenJpegDotNet | ||
|
||
if [ $# -eq 5 ]; then | ||
OPTION=$5 | ||
fi | ||
|
||
CONFIG=Release | ||
|
||
# create non-root user | ||
NON_ROOT_USER=user | ||
USER_ID=${LOCAL_UID:-9001} | ||
GROUP_ID=${LOCAL_GID:-9001} | ||
echo "Starting with UID : $USER_ID, GID: $GROUP_ID" | ||
useradd -u $USER_ID -o -m $NON_ROOT_USER | ||
groupmod -g $GROUP_ID $NON_ROOT_USER | ||
export HOME=/home/$NON_ROOT_USER | ||
|
||
cd ${DDNROOT}/src/${Source} | ||
exec /usr/sbin/gosu $NON_ROOT_USER pwsh Build.ps1 ${CONFIG} ${TARGET} ${ARCH} ${PLATFORM} ${OPTION} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
FROM ubuntu:16.04 | ||
LABEL maintainer "Takuya Takeuchi <takuya.takeuchi.dev@gmail.com>" | ||
|
||
# ENVS | ||
ENV ANDROID_HOME /opt/android-sdk-linux | ||
ENV PATH ${PATH}:${ANDROID_HOME}/tools/bin:${ANDROID_HOME}/platform-tools:${PATH}:${ANDROID_HOME}/tools | ||
ENV ANDROID_NDK /opt/android-ndk-linux | ||
ENV ANDROID_NDK_HOME /opt/android-ndk-linux | ||
ENV ANDROID_NDK_VERSION r20 | ||
# https://developer.android.com/studio/index.html | ||
ENV ANDROID_SDK_URL https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | ||
ENV ANDROID_SDK_VERSION 28 | ||
ENV ANDROID_SDK_VERSION_BUILDTOOLS 28.0.3 | ||
ENV ANDROID_NDK_URL https://dl.google.com/android/repository/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.zip | ||
ENV OPENJDK_MAJOR_VERSION 8 | ||
|
||
# install package to build | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
libx11-dev \ | ||
libgtk2.0-dev \ | ||
pkg-config \ | ||
openjdk-8-jdk \ | ||
ca-certificates-java | ||
|
||
# install openjdk8 | ||
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64 | ||
RUN export JAVA_HOME | ||
|
||
# install android sdk and ndk | ||
RUN cd /opt && mkdir -p /opt/android-sdk-linux && mkdir -p ~/.android && touch ~/.android/repositories.cfg | ||
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
unzip \ | ||
wget \ | ||
apt-transport-https | ||
|
||
RUN cd /opt/android-sdk-linux \ | ||
&& wget -q --output-document=sdk-tools.zip ${ANDROID_SDK_URL} \ | ||
&& unzip sdk-tools.zip \ | ||
&& rm -f sdk-tools.zip | ||
# ENV SDKMANAGER_OPTS "--add-modules java.se.ee" | ||
RUN echo y | sdkmanager "build-tools;${ANDROID_SDK_VERSION_BUILDTOOLS}" "platforms;android-${ANDROID_SDK_VERSION}" \ | ||
&& echo y | sdkmanager "extras;android;m2repository" "extras;google;m2repository" "extras;google;google_play_services" \ | ||
&& echo y | sdkmanager "cmake;3.6.4111459" | ||
RUN cd /opt \ | ||
&& wget -q --output-document=android-ndk.zip ${ANDROID_NDK_URL} \ | ||
&& unzip android-ndk.zip \ | ||
&& rm -f android-ndk.zip \ | ||
&& mv android-ndk-${ANDROID_NDK_VERSION} android-ndk-linux | ||
|
||
# install latest cmake | ||
ENV CMAKE_VERSION 3.14.5 | ||
ENV CMAKE_FILE cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz | ||
ENV CMAKE_URL https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/${CMAKE_FILE} | ||
ENV CMAKE_URL_FILE ${CMAKE_FILE} | ||
RUN wget ${CMAKE_URL} \ | ||
&& tar -xzf ${CMAKE_FILE} \ | ||
&& rm ${CMAKE_FILE} \ | ||
&& mv ${CMAKE_FILE%.tar.gz} /opt/cmake \ | ||
&& ln -s /opt/cmake/bin/* /usr/bin | ||
|
||
# install latest ninja | ||
ENV NINJA_VERSION 1.9.0 | ||
ENV NINJA_FILE ninja-linux.zip | ||
ENV NINJA_URL https://github.com/ninja-build/ninja/releases/download/v${NINJA_VERSION}/${NINJA_FILE} | ||
RUN wget https://github.com/ninja-build/ninja/releases/download/v${NINJA_VERSION}/ninja-linux.zip \ | ||
&& unzip ${NINJA_FILE} \ | ||
&& rm ${NINJA_FILE} \ | ||
&& mkdir -p /opt/ninja \ | ||
&& mv ninja /opt/ninja \ | ||
&& ln -s /opt/ninja/* /usr/bin | ||
|
||
# Register Microsoft key and feed | ||
RUN apt-get update && apt-get install -y \ | ||
wget \ | ||
apt-transport-https | ||
RUN wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb | ||
RUN dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb | ||
RUN apt-get update && apt-get install -y \ | ||
powershell \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# install vulkan sdk | ||
RUN apt-get update && apt install -y wget apt-transport-https | ||
|
||
ENV VULKAN_SDK_VERSION 1.2.162.0 | ||
WORKDIR /usr/share/vulkan | ||
RUN wget https://sdk.lunarg.com/sdk/download/${VULKAN_SDK_VERSION}/linux/vulkansdk-linux-x86_64-${VULKAN_SDK_VERSION}.tar.gz?Human=true -O vulkansdk-linux-x86_64-${VULKAN_SDK_VERSION}.tar.gz | ||
RUN tar -xf vulkansdk-linux-x86_64-${VULKAN_SDK_VERSION}.tar.gz | ||
RUN rm vulkansdk-linux-x86_64-${VULKAN_SDK_VERSION}.tar.gz | ||
ENV VULKAN_SDK /usr/share/vulkan/${VULKAN_SDK_VERSION}/x86_64 | ||
|
||
WORKDIR / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM ubuntu:18.04 | ||
LABEL maintainer "Takuya Takeuchi <takuya.takeuchi.dev@gmail.com>" | ||
|
||
# install package to build | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
tar \ | ||
wget | ||
|
||
# install latest cmake | ||
ENV CMAKE_FILE cmake-3.19.4-Linux-x86_64.tar.gz | ||
ENV CMAKE_URL https://github.com/Kitware/CMake/releases/download/v3.19.4/${CMAKE_FILE} | ||
ENV CMAKE_URL_FILE ${CMAKE_FILE} | ||
RUN wget ${CMAKE_URL} \ | ||
&& tar -xzf ${CMAKE_FILE} \ | ||
&& rm ${CMAKE_FILE} \ | ||
&& mv ${CMAKE_FILE%.tar.gz} /opt/cmake \ | ||
&& ln -s /opt/cmake/bin/* /usr/bin | ||
|
||
# set compiler | ||
ENV CMAKE_C_COMPILER=/usr/bin/gcc | ||
ENV CMAKE_CXX_COMPILER=/usr/bin/g++ | ||
|
||
# Register Microsoft key and feed | ||
RUN apt-get update && apt-get install -y \ | ||
apt-transport-https | ||
RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb | ||
RUN dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb | ||
RUN apt-get update && apt-get install -y \ | ||
powershell | ||
|
||
# Support python build | ||
RUN apt-get update && apt-get install -y \ | ||
python3-distutils \ | ||
python3-dev \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# install compiler for arm | ||
RUN apt-get update && apt-get install -y \ | ||
g++-arm-linux-gnueabihf \ | ||
g++-aarch64-linux-gnu \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM ubuntu:18.04 | ||
LABEL maintainer "Takuya Takeuchi <takuya.takeuchi.dev@gmail.com>" | ||
|
||
# install package to build | ||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
tar \ | ||
wget | ||
|
||
# install latest cmake | ||
ENV CMAKE_FILE cmake-3.19.4-Linux-x86_64.tar.gz | ||
ENV CMAKE_URL https://github.com/Kitware/CMake/releases/download/v3.19.4/${CMAKE_FILE} | ||
ENV CMAKE_URL_FILE ${CMAKE_FILE} | ||
RUN wget ${CMAKE_URL} \ | ||
&& tar -xzf ${CMAKE_FILE} \ | ||
&& rm ${CMAKE_FILE} \ | ||
&& mv ${CMAKE_FILE%.tar.gz} /opt/cmake \ | ||
&& ln -s /opt/cmake/bin/* /usr/bin | ||
|
||
# set compiler | ||
ENV CMAKE_C_COMPILER=/usr/bin/gcc | ||
ENV CMAKE_CXX_COMPILER=/usr/bin/g++ | ||
|
||
# Register Microsoft key and feed | ||
RUN apt-get update && apt-get install -y \ | ||
apt-transport-https | ||
RUN wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb | ||
RUN dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb | ||
RUN apt-get update && apt-get install -y \ | ||
powershell | ||
|
||
# Support python build | ||
RUN apt-get update && apt-get install -y \ | ||
python3-distutils \ | ||
python3-dev \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# install compiler for arm | ||
RUN apt-get update && apt-get install -y \ | ||
g++-arm-linux-gnueabihf \ | ||
g++-aarch64-linux-gnu \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* |
Oops, something went wrong.