Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit e9ad7b3

Browse files
committed
initial upload
1 parent 44b8e37 commit e9ad7b3

15 files changed

+2108
-1
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.git
2+
.gitignore
3+
.github
4+
.gitattributes
5+
READMETEMPLATE.md
6+
README.md

.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: linuxserver
2+
open_collective: linuxserver

.github/ISSUE_TEMPLATE.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[linuxserverurl]: https://linuxserver.io
2+
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
3+
4+
If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support.
5+
6+
<!--- Provide a general summary of the issue in the Title above -->
7+
8+
------------------------------
9+
10+
## Expected Behavior
11+
<!--- Tell us what should happen -->
12+
13+
## Current Behavior
14+
<!--- Tell us what happens instead of the expected behavior -->
15+
16+
## Steps to Reproduce
17+
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
18+
<!--- reproduce this bug. Include code to reproduce, if relevant -->
19+
1.
20+
2.
21+
3.
22+
4.
23+
24+
## Environment
25+
**OS:**
26+
**CPU architecture:** x86_64/arm32/arm64
27+
**How docker service was installed:**
28+
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
29+
30+
## Command used to create docker container (run/create/compose/screenshot)
31+
<!--- Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container -->
32+
33+
## Docker logs
34+
<!--- Provide a full docker log, output of "docker logs docker-compose" -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
[linuxserverurl]: https://linuxserver.io
4+
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]
5+
6+
7+
<!--- Before submitting a pull request please check the following -->
8+
9+
<!--- If this is a fix for a typo in code or documentation in the README please file an issue and let us sort it out we do not need a PR -->
10+
<!--- Ask yourself if this modification is something the whole userbase will benefit from, if this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
11+
<!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message -->
12+
<!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
13+
<!--- We maintain a changelog of major revisions to the container at the end of readme-vars.yml in the root of this repository, please add your changes there if appropriate -->
14+
15+
16+
<!--- Coding guidelines: -->
17+
<!--- 1. Installed packages in the Dockerfiles should be in alphabetical order -->
18+
<!--- 2. Changes to Dockerfile should be replicated in Dockerfile.armhf and Dockerfile.aarch64 if applicable -->
19+
<!--- 3. Indentation style (tabs vs 4 spaces vs 1 space) should match the rest of the document -->
20+
<!--- 4. Readme is auto generated from readme-vars.yml, make your changes there -->
21+
22+
------------------------------
23+
24+
We welcome all PR’s though this doesn’t guarantee it will be accepted.
25+
26+
## Description:
27+
<!--- Describe your changes in detail -->
28+
29+
## Benefits of this PR and context:
30+
<!--- Please explain why we should accept this PR. If this fixes an outstanding bug, please reference the issue # -->
31+
32+
## How Has This Been Tested?
33+
<!--- Please describe in detail how you tested your changes. -->
34+
<!--- Include details of your testing environment, and the tests you ran to -->
35+
<!--- see how your change affects other areas of the code, etc. -->
36+
37+
38+
## Source / References:
39+
<!--- Please include any forum posts/github links relevant to the PR -->

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Windows image file caches
2+
Thumbs.db
3+
ehthumbs.db
4+
5+
# Folder config file
6+
Desktop.ini
7+
8+
# Recycle Bin used on file shares
9+
$RECYCLE.BIN/
10+
11+
# Windows Installer files
12+
*.cab
13+
*.msi
14+
*.msm
15+
*.msp
16+
17+
# Windows shortcuts
18+
*.lnk
19+
20+
# =========================
21+
# Operating System Files
22+
# =========================
23+
24+
# OSX
25+
# =========================
26+
27+
.DS_Store
28+
.AppleDouble
29+
.LSOverride
30+
31+
# Thumbnails
32+
._*
33+
34+
# Files that might appear on external disk
35+
.Spotlight-V100
36+
.Trashes
37+
38+
# Directories potentially created on remote AFP share
39+
.AppleDB
40+
.AppleDesktop
41+
Network Trash Folder
42+
Temporary Items
43+
.apdisk

Dockerfile

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
ARG DOCKER_VERSION=19.03.5
2+
3+
FROM docker:${DOCKER_VERSION} AS docker-cli
4+
5+
FROM lsiobase/ubuntu:bionic AS build
6+
7+
ARG COMPOSE_VERSION
8+
9+
RUN apt-get update && apt-get install --no-install-recommends -y \
10+
curl \
11+
gcc \
12+
git \
13+
libc-dev \
14+
libffi-dev \
15+
libgcc-6-dev \
16+
libssl-dev \
17+
make \
18+
openssl \
19+
python3-dev \
20+
python3-pip \
21+
zlib1g-dev
22+
23+
COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker
24+
25+
RUN \
26+
mkdir -p /compose && \
27+
if [ -z ${COMPOSE_VERSION+x} ]; then \
28+
COMPOSE_VERSION=$(curl -sX GET "https://api.github.com/repos/docker/compose/releases/latest" \
29+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
30+
fi && \
31+
git clone https://github.com/docker/compose.git && \
32+
cd /compose && \
33+
git checkout "${COMPOSE_VERSION}" && \
34+
pip3 install virtualenv==16.2.0 && \
35+
pip3 install tox==2.9.1 && \
36+
sed -i 's|envlist = .*|envlist = py36,pre-commit|g' tox.ini && \
37+
tox --notest && \
38+
mkdir -p dist && \
39+
chmod 777 dist && \
40+
/compose/.tox/py36/bin/pip3 install -q -r requirements-build.txt && \
41+
echo "$(script/build/write-git-sha)" > compose/GITSHA && \
42+
export PATH="/compose/pyinstaller:${PATH}" && \
43+
/compose/.tox/py36/bin/pyinstaller --exclude-module pycrypto --exclude-module PyInstaller docker-compose.spec && \
44+
ls -la dist/ && \
45+
ldd dist/docker-compose && \
46+
mv dist/docker-compose /usr/local/bin && \
47+
docker-compose version
48+
49+
############## runtime stage ##############
50+
FROM lsiobase/ubuntu:bionic
51+
52+
ARG BUILD_DATE
53+
ARG VERSION
54+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
55+
LABEL maintainer="aptalca"
56+
57+
COPY --from=build /compose/docker-compose-entrypoint.sh /usr/local/bin/docker-compose-entrypoint.sh
58+
COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker
59+
COPY --from=build /usr/local/bin/docker-compose /usr/local/bin/docker-compose
60+
ENTRYPOINT ["sh", "/usr/local/bin/docker-compose-entrypoint.sh"]

Dockerfile.aarch64

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
ARG DOCKER_VERSION=19.03.5
2+
3+
FROM arm64v8/docker:${DOCKER_VERSION} AS docker-cli
4+
5+
FROM lsiobase/ubuntu:arm64v8-bionic AS build
6+
7+
ARG COMPOSE_VERSION
8+
9+
RUN apt-get update && apt-get install --no-install-recommends -y \
10+
curl \
11+
gcc \
12+
git \
13+
libc-dev \
14+
libffi-dev \
15+
libgcc-6-dev \
16+
libssl-dev \
17+
make \
18+
openssl \
19+
python3-dev \
20+
python3-pip \
21+
zlib1g-dev
22+
23+
COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker
24+
25+
RUN \
26+
mkdir -p /compose && \
27+
if [ -z ${COMPOSE_VERSION+x} ]; then \
28+
COMPOSE_VERSION=$(curl -sX GET "https://api.github.com/repos/docker/compose/releases/latest" \
29+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
30+
fi && \
31+
git clone https://github.com/docker/compose.git && \
32+
cd /compose && \
33+
git checkout "${COMPOSE_VERSION}" && \
34+
pip3 install virtualenv==16.2.0 && \
35+
pip3 install tox==2.9.1 && \
36+
sed -i 's|envlist = .*|envlist = py36,pre-commit|g' tox.ini && \
37+
tox --notest && \
38+
mkdir -p dist && \
39+
chmod 777 dist && \
40+
/compose/.tox/py36/bin/pip3 install -q -r requirements-build.txt && \
41+
echo "$(script/build/write-git-sha)" > compose/GITSHA && \
42+
export PATH="/compose/pyinstaller:${PATH}" && \
43+
/compose/.tox/py36/bin/pyinstaller --exclude-module pycrypto --exclude-module PyInstaller docker-compose.spec && \
44+
ls -la dist/ && \
45+
ldd dist/docker-compose && \
46+
mv dist/docker-compose /usr/local/bin && \
47+
docker-compose version
48+
49+
############## runtime stage ##############
50+
FROM lsiobase/ubuntu:arm64v8-bionic
51+
52+
ARG BUILD_DATE
53+
ARG VERSION
54+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
55+
LABEL maintainer="aptalca"
56+
57+
COPY --from=build /compose/docker-compose-entrypoint.sh /usr/local/bin/docker-compose-entrypoint.sh
58+
COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker
59+
COPY --from=build /usr/local/bin/docker-compose /usr/local/bin/docker-compose
60+
ENTRYPOINT ["sh", "/usr/local/bin/docker-compose-entrypoint.sh"]

Dockerfile.armhf

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
ARG DOCKER_VERSION=19.03.5
2+
3+
FROM arm32v7/docker:${DOCKER_VERSION} AS docker-cli
4+
5+
FROM lsiobase/ubuntu:arm32v7-bionic AS build
6+
7+
ARG COMPOSE_VERSION
8+
9+
RUN apt-get update && apt-get install --no-install-recommends -y \
10+
curl \
11+
gcc \
12+
git \
13+
libc-dev \
14+
libffi-dev \
15+
libgcc-6-dev \
16+
libssl-dev \
17+
make \
18+
openssl \
19+
python3-dev \
20+
python3-pip \
21+
zlib1g-dev
22+
23+
COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker
24+
25+
RUN \
26+
mkdir -p /compose && \
27+
if [ -z ${COMPOSE_VERSION+x} ]; then \
28+
COMPOSE_VERSION=$(curl -sX GET "https://api.github.com/repos/docker/compose/releases/latest" \
29+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
30+
fi && \
31+
git clone https://github.com/docker/compose.git && \
32+
cd /compose && \
33+
git checkout "${COMPOSE_VERSION}" && \
34+
pip3 install virtualenv==16.2.0 && \
35+
pip3 install tox==2.9.1 && \
36+
sed -i 's|envlist = .*|envlist = py36,pre-commit|g' tox.ini && \
37+
tox --notest && \
38+
mkdir -p dist && \
39+
chmod 777 dist && \
40+
/compose/.tox/py36/bin/pip3 install -q -r requirements-build.txt && \
41+
echo "$(script/build/write-git-sha)" > compose/GITSHA && \
42+
export PATH="/compose/pyinstaller:${PATH}" && \
43+
/compose/.tox/py36/bin/pyinstaller --exclude-module pycrypto --exclude-module PyInstaller docker-compose.spec && \
44+
ls -la dist/ && \
45+
ldd dist/docker-compose && \
46+
mv dist/docker-compose /usr/local/bin && \
47+
docker-compose version
48+
49+
############## runtime stage ##############
50+
FROM lsiobase/ubuntu:arm32v7-bionic
51+
52+
ARG BUILD_DATE
53+
ARG VERSION
54+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
55+
LABEL maintainer="aptalca"
56+
57+
COPY --from=build /compose/docker-compose-entrypoint.sh /usr/local/bin/docker-compose-entrypoint.sh
58+
COPY --from=docker-cli /usr/local/bin/docker /usr/local/bin/docker
59+
COPY --from=build /usr/local/bin/docker-compose /usr/local/bin/docker-compose
60+
ENTRYPOINT ["sh", "/usr/local/bin/docker-compose-entrypoint.sh"]

0 commit comments

Comments
 (0)