Skip to content

Commit c51c2d0

Browse files
Merge pull request #1 from linuxserver/initial
Initial
2 parents b76e252 + 74f921c commit c51c2d0

20 files changed

+2451
-1
lines changed

.dockerignore

+6
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

+17
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

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: linuxserver
2+
open_collective: linuxserver

.github/ISSUE_TEMPLATE.md

+34
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 netbox" -->

.github/PULL_REQUEST_TEMPLATE.md

+39
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 -->

.github/workflows/greetings.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Greetings
2+
3+
on: [pull_request_target, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/first-interaction@v1
10+
with:
11+
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [issue template](https://github.com/linuxserver/docker-netbox/.github/ISSUE_TEMPLATE.md)!'
12+
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-netbox/.github/PULL_REQUEST_TEMPLATE.md)!'
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "30 1 * * *"
6+
7+
jobs:
8+
stale:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/stale@v1
14+
with:
15+
stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
16+
stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
17+
stale-issue-label: 'no-issue-activity'
18+
stale-pr-label: 'no-pr-activity'
19+
days-before-stale: 30
20+
days-before-close: 365
21+
exempt-issue-labels: 'awaiting-approval,work-in-progress'
22+
exempt-pr-labels: 'awaiting-approval,work-in-progress'
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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
44+
45+
.history/

Dockerfile

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
FROM lsiobase/alpine:3.12
2+
3+
# set version label
4+
ARG BUILD_DATE
5+
ARG VERSION
6+
ARG NETBOX_RELEASE
7+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8+
LABEL maintainer="alex-phillips"
9+
10+
RUN \
11+
echo "**** install build packages ****" && \
12+
apk add --no-cache --upgrade --virtual=build-dependencies \
13+
curl \
14+
gcc \
15+
git \
16+
jpeg-dev \
17+
libffi-dev \
18+
libxslt-dev \
19+
libxml2-dev \
20+
musl-dev \
21+
openssl-dev \
22+
postgresql-dev \
23+
python3-dev \
24+
zlib-dev && \
25+
echo "**** install runtime packages ****" && \
26+
apk add --no-cache --upgrade \
27+
postgresql-client \
28+
py3-pillow \
29+
py3-setuptools \
30+
python3 \
31+
uwsgi \
32+
uwsgi-python && \
33+
echo "**** install netbox ****" && \
34+
mkdir -p /app/netbox && \
35+
if [ -z ${NETBOX_RELEASE+x} ]; then \
36+
NETBOX_RELEASE=$(curl -sX GET "https://api.github.com/repos/netbox-community/netbox/releases/latest" \
37+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
38+
fi && \
39+
curl -o \
40+
/tmp/netbox.tar.gz -L \
41+
"https://github.com/netbox-community/netbox/archive/${NETBOX_RELEASE}.tar.gz" && \
42+
tar xf \
43+
/tmp/netbox.tar.gz -C \
44+
/app/netbox/ --strip-components=1 && \
45+
echo "**** install pip packages ****" && \
46+
python3 -m ensurepip && \
47+
rm -rf /usr/lib/python*/ensurepip && \
48+
cd /app/netbox && \
49+
pip3 install wheel && \
50+
pip3 install -r requirements.txt && \
51+
echo "**** cleanup ****" && \
52+
apk del --purge \
53+
build-dependencies && \
54+
rm -rf \
55+
/root/.cache \
56+
/tmp/*
57+
58+
# copy local files
59+
COPY root/ /
60+
61+
# ports and volumes
62+
EXPOSE 8000

Dockerfile.aarch64

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
FROM lsiobase/alpine:arm64v8-3.12
2+
3+
# set version label
4+
ARG BUILD_DATE
5+
ARG VERSION
6+
ARG NETBOX_RELEASE
7+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8+
LABEL maintainer="alex-phillips"
9+
10+
RUN \
11+
echo "**** install build packages ****" && \
12+
apk add --no-cache --upgrade --virtual=build-dependencies \
13+
curl \
14+
gcc \
15+
git \
16+
jpeg-dev \
17+
libffi-dev \
18+
libxslt-dev \
19+
libxml2-dev \
20+
musl-dev \
21+
openssl-dev \
22+
postgresql-dev \
23+
python3-dev \
24+
zlib-dev && \
25+
echo "**** install runtime packages ****" && \
26+
apk add --no-cache --upgrade \
27+
postgresql-client \
28+
py3-pillow \
29+
py3-setuptools \
30+
python3 \
31+
uwsgi \
32+
uwsgi-python && \
33+
echo "**** install netbox ****" && \
34+
mkdir -p /app/netbox && \
35+
if [ -z ${NETBOX_RELEASE+x} ]; then \
36+
NETBOX_RELEASE=$(curl -sX GET "https://api.github.com/repos/netbox-community/netbox/releases/latest" \
37+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
38+
fi && \
39+
curl -o \
40+
/tmp/netbox.tar.gz -L \
41+
"https://github.com/netbox-community/netbox/archive/${NETBOX_RELEASE}.tar.gz" && \
42+
tar xf \
43+
/tmp/netbox.tar.gz -C \
44+
/app/netbox/ --strip-components=1 && \
45+
echo "**** install pip packages ****" && \
46+
python3 -m ensurepip && \
47+
rm -rf /usr/lib/python*/ensurepip && \
48+
cd /app/netbox && \
49+
pip3 install wheel && \
50+
pip3 install -r requirements.txt && \
51+
echo "**** cleanup ****" && \
52+
apk del --purge \
53+
build-dependencies && \
54+
rm -rf \
55+
/root/.cache \
56+
/tmp/*
57+
58+
# copy local files
59+
COPY root/ /
60+
61+
# ports and volumes
62+
EXPOSE 8000

Dockerfile.armhf

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
FROM lsiobase/alpine:arm32v7-3.12
2+
3+
# set version label
4+
ARG BUILD_DATE
5+
ARG VERSION
6+
ARG NETBOX_RELEASE
7+
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
8+
LABEL maintainer="alex-phillips"
9+
10+
RUN \
11+
echo "**** install build packages ****" && \
12+
apk add --no-cache --upgrade --virtual=build-dependencies \
13+
curl \
14+
gcc \
15+
git \
16+
jpeg-dev \
17+
libffi-dev \
18+
libxslt-dev \
19+
libxml2-dev \
20+
musl-dev \
21+
openssl-dev \
22+
postgresql-dev \
23+
python3-dev \
24+
zlib-dev && \
25+
echo "**** install runtime packages ****" && \
26+
apk add --no-cache --upgrade \
27+
postgresql-client \
28+
py3-pillow \
29+
py3-setuptools \
30+
python3 \
31+
uwsgi \
32+
uwsgi-python && \
33+
echo "**** install netbox ****" && \
34+
mkdir -p /app/netbox && \
35+
if [ -z ${NETBOX_RELEASE+x} ]; then \
36+
NETBOX_RELEASE=$(curl -sX GET "https://api.github.com/repos/netbox-community/netbox/releases/latest" \
37+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
38+
fi && \
39+
curl -o \
40+
/tmp/netbox.tar.gz -L \
41+
"https://github.com/netbox-community/netbox/archive/${NETBOX_RELEASE}.tar.gz" && \
42+
tar xf \
43+
/tmp/netbox.tar.gz -C \
44+
/app/netbox/ --strip-components=1 && \
45+
echo "**** install pip packages ****" && \
46+
python3 -m ensurepip && \
47+
rm -rf /usr/lib/python*/ensurepip && \
48+
cd /app/netbox && \
49+
pip3 install wheel && \
50+
pip3 install -r requirements.txt && \
51+
echo "**** cleanup ****" && \
52+
apk del --purge \
53+
build-dependencies && \
54+
rm -rf \
55+
/root/.cache \
56+
/tmp/*
57+
58+
# copy local files
59+
COPY root/ /
60+
61+
# ports and volumes
62+
EXPOSE 8000

0 commit comments

Comments
 (0)