-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch deprecated requests for node-fetch
Update logo, clean up netboot.xyz naming
- Loading branch information
Showing
7 changed files
with
115 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,52 @@ | ||
FROM lsiobase/cloud9:alpine | ||
FROM alpine:3.18 | ||
|
||
# set version label | ||
ARG BUILD_DATE | ||
ARG VERSION | ||
ARG WEBAPP_VERSION | ||
LABEL build_version="netboot.xyz version: ${VERSION} Build-date: ${BUILD_DATE}" | ||
LABEL maintainer="antonym" | ||
|
||
RUN \ | ||
echo "**** install build packages ****" && \ | ||
apk upgrade --no-cache && \ | ||
apk add --no-cache --virtual=build-dependencies \ | ||
curl \ | ||
nodejs-npm && \ | ||
nodejs npm && \ | ||
echo "**** install runtime packages ****" && \ | ||
apk add --no-cache \ | ||
git \ | ||
logrotate \ | ||
jq \ | ||
nghttp2-dev \ | ||
nginx \ | ||
nodejs \ | ||
sudo \ | ||
tftp-hpa && \ | ||
echo "**** install WebApp ****" && \ | ||
git clone https://github.com/netbootxyz/webapp.git /code && \ | ||
npm config set unsafe-perm true && \ | ||
npm i npm@latest -g && \ | ||
npm install --prefix /code && \ | ||
npm install -g nodemon && \ | ||
echo "**** cleanup ****" && \ | ||
apk del --purge \ | ||
build-dependencies && \ | ||
rm -rf \ | ||
/tmp/* | ||
|
||
# copy local files | ||
COPY root/ / | ||
bash \ | ||
busybox \ | ||
curl \ | ||
git \ | ||
jq \ | ||
nghttp2-dev \ | ||
nginx \ | ||
nodejs \ | ||
shadow \ | ||
sudo \ | ||
supervisor \ | ||
syslog-ng \ | ||
tar \ | ||
tftp-hpa | ||
|
||
RUN \ | ||
groupmod -g 1000 users && \ | ||
useradd -u 911 -U -d /config -s /bin/false nbxyz && \ | ||
usermod -G users nbxyz && \ | ||
mkdir /app \ | ||
/config \ | ||
/defaults | ||
|
||
COPY . /app | ||
|
||
RUN \ | ||
npm install --prefix /app | ||
|
||
ENV TFTPD_OPTS='' | ||
|
||
#App runs on port 3000 development interface on port 8000 | ||
EXPOSE 3000 | ||
EXPOSE 8000 | ||
EXPOSE 8080 | ||
|
||
COPY root/ / | ||
|
||
# default command | ||
CMD ["sh","/start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
Basic run example: | ||
# netboot.xyz webapp | ||
|
||
This repo houses the netboot.xyz webapp that | ||
provides a web interface for editing iPXE files | ||
and downloading assets locally to the app. | ||
|
||
## Building netboot.xyz webapp locally | ||
|
||
```bash | ||
docker build . -t netbootxyz-webapp | ||
``` | ||
|
||
## Running it locally | ||
|
||
```bash | ||
docker run -d \ | ||
-e PUID=1000 \ | ||
-e PGID=1000 \ | ||
-v <path to menu/config>:/config \ | ||
-v <path to mirrored assets>:/assets `#optional` \ | ||
-p 69:69/udp \ | ||
-p 8080:80 \ | ||
-p 3000:3000 \ | ||
-p 8000:8000 \ | ||
ghcr.io/netbootxyz/webapp-dev | ||
--name=netbootxyz-webapp \ | ||
-e MENU_VERSION=2.0.73 `# optional` \ | ||
-p 3000:3000 `# sets webapp port` \ | ||
-p 69:69/udp `# sets tftp port` \ | ||
-p 8080:80 `# optional` \ | ||
-v /local/path/to/config:/config `# optional` \ | ||
-v /local/path/to/assets:/assets `# optional` \ | ||
--restart unless-stopped \ | ||
netbootxyz-webapp | ||
``` | ||
|
||
* Port 8000- Development interface | ||
* Port 3000- Web Application | ||
* Port 8080- NGINX Webserver for local asset hosting | ||
* Port 69- TFTP server for menus/kpxe files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters