From 6cfc9582b3bcb2e82e1ec6834b9131601c59df2b Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Sun, 27 Aug 2017 23:12:57 +0100 Subject: [PATCH] first save --- .dockerignore | 6 ++ .gitattributes | 17 +++++ .github/ISSUE_TEMPLATE.md | 21 ++++++ .github/PULL_REQUEST_TEMPLATE.md | 15 ++++ .gitignore | 43 ++++++++++++ Dockerfile | 117 +++++++++++++++++++++++++++++++ README.md | 6 ++ 7 files changed, 225 insertions(+) create mode 100644 .dockerignore create mode 100644 .gitattributes create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..cdb1a82 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +.git +.gitignore +.github +.gitattributes +READMETEMPLATE.md +README.md diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..bdb0cab --- /dev/null +++ b/.gitattributes @@ -0,0 +1,17 @@ +# Auto detect text files and perform LF normalization +* text=auto + +# Custom for Visual Studio +*.cs diff=csharp + +# Standard to msysgit +*.doc diff=astextplain +*.DOC diff=astextplain +*.docx diff=astextplain +*.DOCX diff=astextplain +*.dot diff=astextplain +*.DOT diff=astextplain +*.pdf diff=astextplain +*.PDF diff=astextplain +*.rtf diff=astextplain +*.RTF diff=astextplain diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..c73c33b --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,21 @@ + + +[linuxserverurl]: https://linuxserver.io +[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl] + + + + + + + + + + + + + + + +## Thanks, team linuxserver.io + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..f6a6381 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,15 @@ + + +[linuxserverurl]: https://linuxserver.io +[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl] + + + + + + + + + +## Thanks, team linuxserver.io + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..96374c4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,43 @@ +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# ========================= +# Operating System Files +# ========================= + +# OSX +# ========================= + +.DS_Store +.AppleDouble +.LSOverride + +# Thumbnails +._* + +# Files that might appear on external disk +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..afaa525 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,117 @@ +FROM lsiobase/xenial-root-x86 + +# set version label +ARG BUILD_DATE +ARG VERSION +LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" + +# package versions +ARG CMAKE_VER="3.9.1" +ARG NASM_VER="2.13.01" +ARG YASM_VER="1.3.0" + +# install fetch packages +RUN \ + apt-get update && \ + DEBIAN_FRONTEND="noninteractive" apt-get install -y \ + bzip2 \ + curl \ + git \ + mercurial \ + tar \ + unrar \ + unzip \ + wget \ + xz-utils && \ + rm -rf \ + /var/lib/apt/lists/* + +# install gcc-6 and g++-6 +RUN \ + apt-key adv \ + --keyserver hkp://keyserver.ubuntu.com:11371 \ + --recv-keys 60C317803A41BA51845E371A1E9377A2BA9EF27F && \ + echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> \ + /etc/apt/sources.list.d/toolchain.list && \ + echo "deb-src http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> \ + /etc/apt/sources.list.d/toolchain.list && \ + apt-get update && \ + DEBIAN_FRONTEND="noninteractive" apt-get install -y \ + g++-6 \ + gcc-6 && \ + DEBIAN_FRONTEND="noninteractive" update-alternatives --install \ + /usr/bin/gcc gcc \ + /usr/bin/gcc-6 60 \ + --slave /usr/bin/g++ \ + g++ /usr/bin/g++-6 && \ + rm -rf \ + /var/lib/apt/lists/* + +# install build packages +RUN \ + apt-get update && \ + DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \ + autoconf \ + automake \ + gawk \ + gperf \ + libarchive-dev \ + libbz2-dev \ + libcurl4-gnutls-dev \ + libtool \ + lsb-release \ + make \ + pkg-config \ + python-dev \ + zlib1g-dev && \ + rm -rf \ + /var/lib/apt/lists/* + +# compile cmake +RUN \ + curl -o \ + /tmp/cmake-${CMAKE_VER}.tar.gz -L \ + "https://cmake.org/files/v3.9/cmake-${CMAKE_VER}.tar.gz" && \ + tar xf \ + /tmp/cmake-${CMAKE_VER}.tar.gz -C /tmp/ && \ + cd /tmp/cmake-${CMAKE_VER} && \ + sed -i '/CMAKE_USE_LIBUV 1/s/1/0/' CMakeLists.txt && \ + sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake && \ + ./bootstrap \ + --docdir=/share/doc/cmake-3.9.1 \ + --mandir=/share/man \ + --no-system-jsoncpp \ + --no-system-librhash \ + --prefix=/usr \ + --system-libs && \ + make && \ + make install && \ + +# compile nasm + curl -o \ + /tmp/nasm-${NASM_VER}.tar.xz -L \ + "http://www.nasm.us/pub/nasm/releasebuilds/2.13.01/nasm-${NASM_VER}.tar.xz" && \ + tar xf \ + /tmp/nasm-${NASM_VER}.tar.xz -C /tmp && \ + cd /tmp/nasm-${NASM_VER} && \ + ./configure \ + --prefix=/usr && \ + make && \ + make install && \ + +# compile yasm + curl -o \ + /tmp/yasm-${YASM_VER}.tar.gz -L \ + "http://www.tortall.net/projects/yasm/releases/yasm-${YASM_VER}.tar.gz" && \ + tar xf \ + /tmp/yasm-${YASM_VER}.tar.gz -C /tmp && \ + cd /tmp/yasm-${YASM_VER} && \ + sed -i 's#) ytasm.*#)#' Makefile.in && \ + ./configure \ + --prefix=/usr && \ + make && \ + make install && \ + +# cleanup + rm -rf \ + /tmp/* diff --git a/README.md b/README.md new file mode 100644 index 0000000..cdc14cc --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +THIS IS NOT SOMETHING FOR PUBLIC USE + +YOU HAVE BEEN WARNED !!!! + +HERE BE DRAGONS +