first save

This commit is contained in:
sparklyballs 2017-08-27 23:12:57 +01:00
commit 6cfc9582b3
7 changed files with 225 additions and 0 deletions

6
.dockerignore Normal file
View File

@ -0,0 +1,6 @@
.git
.gitignore
.github
.gitattributes
READMETEMPLATE.md
README.md

17
.gitattributes vendored Normal file
View File

@ -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

21
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,21 @@
<!--- Provide a general summary of the issue in the Title above -->
[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
<!--- If you have an issue with the project, please provide us with the following information -->
<!--- Host OS -->
<!--- Command line users, your run/create command, GUI/Unraid users, a screenshot of your template settings. -->
<!--- Docker log output, docker log <container-name> -->
<!--- Mention if you're using symlinks on any of the volume mounts. -->
<!--- If you have a suggestion or fix for the project, please provide us with the following information -->
<!--- What you think your suggestion brings to the project, or fixes with the project -->
<!--- If it's a fix, would it be better suited as a Pull request to the repo ? -->
## Thanks, team linuxserver.io

15
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,15 @@
<!--- Provide a general summary of your changes in the Title above -->
[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
<!--- Before submitting a pull request please check the following -->
<!--- That you have made a branch in your fork, we'd rather not merge from your master -->
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
<!--- -->
## Thanks, team linuxserver.io

43
.gitignore vendored Normal file
View File

@ -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

117
Dockerfile Normal file
View File

@ -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/*

6
README.md Normal file
View File

@ -0,0 +1,6 @@
THIS IS NOT SOMETHING FOR PUBLIC USE
YOU HAVE BEEN WARNED !!!!
HERE BE DRAGONS