Skip to content

Commit 34cbb00

Browse files
committed
build out jenkins and readme, added multiarch docker files
1 parent ab323f8 commit 34cbb00

File tree

9 files changed

+1237
-4
lines changed

9 files changed

+1237
-4
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ If you are new to Docker or this application our issue tracker is **ONLY** used
3131
<!--- Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container -->
3232

3333
## Docker logs
34-
<!--- Provide a full docker log, output of "docker logs healthchecks" -->
34+
<!--- Provide a full docker log, output of "docker logs netbox" -->

.github/workflows/greetings.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
steps:
99
- uses: actions/first-interaction@v1
1010
with:
11-
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [issue template](https://github.com/linuxserver/docker-healthchecks/.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-healthchecks/.github/PULL_REQUEST_TEMPLATE.md)!'
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)!'
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}

Dockerfile.aarch64

Lines changed: 62 additions & 0 deletions
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

Lines changed: 62 additions & 0 deletions
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)