Skip to content

Commit a5fa6ed

Browse files
authored
Merge pull request #1 from linuxserver/initial
Initial release
2 parents 631d67f + 3fc0dd4 commit a5fa6ed

File tree

18 files changed

+2073
-1
lines changed

18 files changed

+2073
-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+
open_collective: linuxserver
2+
custom: ["https://patreon.com/mrgretzky","https://ko-fi.com/mrgretzky","https://liberapay.com/mrgretzky",]

.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 pwndrop" -->

.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: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
FROM lsiobase/alpine:3.11 as buildstage
2+
3+
# build variables
4+
ARG PWNDROP_RELEASE
5+
6+
RUN \
7+
echo "**** install build packages ****" && \
8+
apk add --no-cache \
9+
curl \
10+
g++ \
11+
gcc \
12+
git \
13+
go \
14+
tar
15+
16+
RUN \
17+
echo "**** fetch source code ****" && \
18+
if [ -z ${PWNDROP_RELEASE+x} ]; then \
19+
PWNDROP_RELEASE=$(curl -sX GET "https://api.github.com/repos/kgretzky/pwndrop/releases/latest" \
20+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
21+
fi && \
22+
mkdir -p \
23+
/tmp/pwndrop && \
24+
curl -o \
25+
/tmp/pwndrop-src.tar.gz -L \
26+
"https://github.com/kgretzky/pwndrop/archive/${PWNDROP_RELEASE}.tar.gz" && \
27+
tar xf \
28+
/tmp/pwndrop-src.tar.gz -C \
29+
/tmp/pwndrop --strip-components=1 && \
30+
echo "**** compile pwndrop ****" && \
31+
cd /tmp/pwndrop && \
32+
go build -ldflags="-s -w" \
33+
-o /app/pwndrop/pwndrop \
34+
-mod=vendor \
35+
main.go && \
36+
cp -r ./www /app/pwndrop/admin
37+
38+
############## runtime stage ##############
39+
FROM lsiobase/alpine:3.11
40+
41+
# set version label
42+
ARG BUILD_DATE
43+
ARG VERSION
44+
ARG PWNDROP_RELEASE
45+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
46+
LABEL maintainer="aptalca"
47+
48+
# add pwndrop
49+
COPY --from=buildstage /app/pwndrop/ /app/pwndrop/
50+
51+
# add local files
52+
COPY /root /
53+
54+
# ports and volumes
55+
EXPOSE 8080 4443

Dockerfile.aarch64

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
FROM lsiobase/alpine:arm64v8-3.11 as buildstage
2+
3+
# build variables
4+
ARG PWNDROP_RELEASE
5+
6+
RUN \
7+
echo "**** install build packages ****" && \
8+
apk add --no-cache \
9+
curl \
10+
g++ \
11+
gcc \
12+
git \
13+
go \
14+
tar
15+
16+
RUN \
17+
echo "**** fetch source code ****" && \
18+
if [ -z ${PWNDROP_RELEASE+x} ]; then \
19+
PWNDROP_RELEASE=$(curl -sX GET "https://api.github.com/repos/kgretzky/pwndrop/releases/latest" \
20+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
21+
fi && \
22+
mkdir -p \
23+
/tmp/pwndrop && \
24+
curl -o \
25+
/tmp/pwndrop-src.tar.gz -L \
26+
"https://github.com/kgretzky/pwndrop/archive/${PWNDROP_RELEASE}.tar.gz" && \
27+
tar xf \
28+
/tmp/pwndrop-src.tar.gz -C \
29+
/tmp/pwndrop --strip-components=1 && \
30+
echo "**** compile pwndrop ****" && \
31+
cd /tmp/pwndrop && \
32+
go build -ldflags="-s -w" \
33+
-o /app/pwndrop/pwndrop \
34+
-mod=vendor \
35+
main.go && \
36+
cp -r ./www /app/pwndrop/admin
37+
38+
############## runtime stage ##############
39+
FROM lsiobase/alpine:arm64v8-3.11
40+
41+
# set version label
42+
ARG BUILD_DATE
43+
ARG VERSION
44+
ARG PWNDROP_RELEASE
45+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
46+
LABEL maintainer="aptalca"
47+
48+
# add pwndrop
49+
COPY --from=buildstage /app/pwndrop/ /app/pwndrop/
50+
51+
# add local files
52+
COPY /root /
53+
54+
# ports and volumes
55+
EXPOSE 8080 4443

Dockerfile.armhf

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
FROM lsiobase/alpine:arm32v7-3.11 as buildstage
2+
3+
# build variables
4+
ARG PWNDROP_RELEASE
5+
6+
RUN \
7+
echo "**** install build packages ****" && \
8+
apk add --no-cache \
9+
curl \
10+
g++ \
11+
gcc \
12+
git \
13+
go \
14+
tar
15+
16+
RUN \
17+
echo "**** fetch source code ****" && \
18+
if [ -z ${PWNDROP_RELEASE+x} ]; then \
19+
PWNDROP_RELEASE=$(curl -sX GET "https://api.github.com/repos/kgretzky/pwndrop/releases/latest" \
20+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
21+
fi && \
22+
mkdir -p \
23+
/tmp/pwndrop && \
24+
curl -o \
25+
/tmp/pwndrop-src.tar.gz -L \
26+
"https://github.com/kgretzky/pwndrop/archive/${PWNDROP_RELEASE}.tar.gz" && \
27+
tar xf \
28+
/tmp/pwndrop-src.tar.gz -C \
29+
/tmp/pwndrop --strip-components=1 && \
30+
echo "**** compile pwndrop ****" && \
31+
cd /tmp/pwndrop && \
32+
go build -ldflags="-s -w" \
33+
-o /app/pwndrop/pwndrop \
34+
-mod=vendor \
35+
main.go && \
36+
cp -r ./www /app/pwndrop/admin
37+
38+
############## runtime stage ##############
39+
FROM lsiobase/alpine:arm32v7-3.11
40+
41+
# set version label
42+
ARG BUILD_DATE
43+
ARG VERSION
44+
ARG PWNDROP_RELEASE
45+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
46+
LABEL maintainer="aptalca"
47+
48+
# add pwndrop
49+
COPY --from=buildstage /app/pwndrop/ /app/pwndrop/
50+
51+
# add local files
52+
COPY /root /
53+
54+
# ports and volumes
55+
EXPOSE 8080 4443

0 commit comments

Comments
 (0)