Skip to content

Commit

Permalink
Merge pull request #1 from linuxserver/initial
Browse files Browse the repository at this point in the history
Initial release
  • Loading branch information
aptalca authored Apr 19, 2020
2 parents 631d67f + 3fc0dd4 commit a5fa6ed
Show file tree
Hide file tree
Showing 18 changed files with 2,073 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.git
.gitignore
.github
.gitattributes
READMETEMPLATE.md
README.md
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
open_collective: linuxserver
custom: ["https://patreon.com/mrgretzky","https://ko-fi.com/mrgretzky","https://liberapay.com/mrgretzky",]
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]

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.

<!--- Provide a general summary of the issue in the Title above -->

------------------------------

## Expected Behavior
<!--- Tell us what should happen -->

## Current Behavior
<!--- Tell us what happens instead of the expected behavior -->

## Steps to Reproduce
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include code to reproduce, if relevant -->
1.
2.
3.
4.

## Environment
**OS:**
**CPU architecture:** x86_64/arm32/arm64
**How docker service was installed:**
<!--- Providing context helps us come up with a solution that is most useful in the real world -->

## Command used to create docker container (run/create/compose/screenshot)
<!--- Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container -->

## Docker logs
<!--- Provide a full docker log, output of "docker logs pwndrop" -->
39 changes: 39 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--- 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 -->

<!--- 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 -->
<!--- 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/ -->
<!--- 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 -->
<!--- 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 -->


<!--- Coding guidelines: -->
<!--- 1. Installed packages in the Dockerfiles should be in alphabetical order -->
<!--- 2. Changes to Dockerfile should be replicated in Dockerfile.armhf and Dockerfile.aarch64 if applicable -->
<!--- 3. Indentation style (tabs vs 4 spaces vs 1 space) should match the rest of the document -->
<!--- 4. Readme is auto generated from readme-vars.yml, make your changes there -->

------------------------------

We welcome all PR’s though this doesn’t guarantee it will be accepted.

## Description:
<!--- Describe your changes in detail -->

## Benefits of this PR and context:
<!--- Please explain why we should accept this PR. If this fixes an outstanding bug, please reference the issue # -->

## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->


## Source / References:
<!--- Please include any forum posts/github links relevant to the PR -->
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
55 changes: 55 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM lsiobase/alpine:3.11 as buildstage

# build variables
ARG PWNDROP_RELEASE

RUN \
echo "**** install build packages ****" && \
apk add --no-cache \
curl \
g++ \
gcc \
git \
go \
tar

RUN \
echo "**** fetch source code ****" && \
if [ -z ${PWNDROP_RELEASE+x} ]; then \
PWNDROP_RELEASE=$(curl -sX GET "https://api.github.com/repos/kgretzky/pwndrop/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/tmp/pwndrop && \
curl -o \
/tmp/pwndrop-src.tar.gz -L \
"https://github.com/kgretzky/pwndrop/archive/${PWNDROP_RELEASE}.tar.gz" && \
tar xf \
/tmp/pwndrop-src.tar.gz -C \
/tmp/pwndrop --strip-components=1 && \
echo "**** compile pwndrop ****" && \
cd /tmp/pwndrop && \
go build -ldflags="-s -w" \
-o /app/pwndrop/pwndrop \
-mod=vendor \
main.go && \
cp -r ./www /app/pwndrop/admin

############## runtime stage ##############
FROM lsiobase/alpine:3.11

# set version label
ARG BUILD_DATE
ARG VERSION
ARG PWNDROP_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"

# add pwndrop
COPY --from=buildstage /app/pwndrop/ /app/pwndrop/

# add local files
COPY /root /

# ports and volumes
EXPOSE 8080 4443
55 changes: 55 additions & 0 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM lsiobase/alpine:arm64v8-3.11 as buildstage

# build variables
ARG PWNDROP_RELEASE

RUN \
echo "**** install build packages ****" && \
apk add --no-cache \
curl \
g++ \
gcc \
git \
go \
tar

RUN \
echo "**** fetch source code ****" && \
if [ -z ${PWNDROP_RELEASE+x} ]; then \
PWNDROP_RELEASE=$(curl -sX GET "https://api.github.com/repos/kgretzky/pwndrop/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/tmp/pwndrop && \
curl -o \
/tmp/pwndrop-src.tar.gz -L \
"https://github.com/kgretzky/pwndrop/archive/${PWNDROP_RELEASE}.tar.gz" && \
tar xf \
/tmp/pwndrop-src.tar.gz -C \
/tmp/pwndrop --strip-components=1 && \
echo "**** compile pwndrop ****" && \
cd /tmp/pwndrop && \
go build -ldflags="-s -w" \
-o /app/pwndrop/pwndrop \
-mod=vendor \
main.go && \
cp -r ./www /app/pwndrop/admin

############## runtime stage ##############
FROM lsiobase/alpine:arm64v8-3.11

# set version label
ARG BUILD_DATE
ARG VERSION
ARG PWNDROP_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"

# add pwndrop
COPY --from=buildstage /app/pwndrop/ /app/pwndrop/

# add local files
COPY /root /

# ports and volumes
EXPOSE 8080 4443
55 changes: 55 additions & 0 deletions Dockerfile.armhf
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM lsiobase/alpine:arm32v7-3.11 as buildstage

# build variables
ARG PWNDROP_RELEASE

RUN \
echo "**** install build packages ****" && \
apk add --no-cache \
curl \
g++ \
gcc \
git \
go \
tar

RUN \
echo "**** fetch source code ****" && \
if [ -z ${PWNDROP_RELEASE+x} ]; then \
PWNDROP_RELEASE=$(curl -sX GET "https://api.github.com/repos/kgretzky/pwndrop/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
mkdir -p \
/tmp/pwndrop && \
curl -o \
/tmp/pwndrop-src.tar.gz -L \
"https://github.com/kgretzky/pwndrop/archive/${PWNDROP_RELEASE}.tar.gz" && \
tar xf \
/tmp/pwndrop-src.tar.gz -C \
/tmp/pwndrop --strip-components=1 && \
echo "**** compile pwndrop ****" && \
cd /tmp/pwndrop && \
go build -ldflags="-s -w" \
-o /app/pwndrop/pwndrop \
-mod=vendor \
main.go && \
cp -r ./www /app/pwndrop/admin

############## runtime stage ##############
FROM lsiobase/alpine:arm32v7-3.11

# set version label
ARG BUILD_DATE
ARG VERSION
ARG PWNDROP_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"

# add pwndrop
COPY --from=buildstage /app/pwndrop/ /app/pwndrop/

# add local files
COPY /root /

# ports and volumes
EXPOSE 8080 4443
Loading

0 comments on commit a5fa6ed

Please sign in to comment.