mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-23 00:16:19 -05:00
Creating Help link in top navbar. Adding wrolpi-help as submodule and docker container which displays the WROLPi Help repo.
This commit is contained in:
parent
01177a6f1e
commit
e6d8c5ce99
7 changed files with 42 additions and 5 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "docker/help/wrolpi-help"]
|
||||
path = docker/help/wrolpi-help
|
||||
url = https://github.com/lrnselfreliance/wrolpi-help.git
|
||||
|
|
@ -48,6 +48,18 @@ function Footer() {
|
|||
</Container>
|
||||
}
|
||||
|
||||
function HelpPage() {
|
||||
return <iframe
|
||||
title='map'
|
||||
src={`http://${window.location.hostname}:8086/`}
|
||||
style={{
|
||||
position: 'fixed',
|
||||
height: '100%',
|
||||
width: '100%',
|
||||
border: 'none',
|
||||
}}/>
|
||||
}
|
||||
|
||||
function Root() {
|
||||
return <>
|
||||
<header>
|
||||
|
|
@ -70,6 +82,7 @@ const router = createBrowserRouter(createRoutesFromElements(<Route
|
|||
<Route path='videos/channel/:channelId/video/:videoId' exact element={<VideoWrapper/>}/>
|
||||
<Route path="videos/*" element={<VideosRoute/>}/>
|
||||
<Route path="admin/*" element={<AdminRoute/>}/>
|
||||
<Route path="help/*" element={<HelpPage/>}/>
|
||||
<Route path="more/*" element={<MoreRoute/>}/>
|
||||
<Route path="inventory/*" element={<InventoryRoute/>}/>
|
||||
<Route path='archive/*' element={<ArchiveRoute/>}/>
|
||||
|
|
|
|||
|
|
@ -23,8 +23,9 @@ const links = [
|
|||
]
|
||||
},
|
||||
];
|
||||
const help = {to: '/help', text: 'Help', key: 'help'};
|
||||
const admin = {to: '/admin', text: 'Admin', key: 'admin'};
|
||||
const rightLinks = [admin,];
|
||||
const rightLinks = [help, admin];
|
||||
|
||||
const collapsedLinks = links.concat([admin,]);
|
||||
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ services:
|
|||
- ${REACT_APP_API-127.0.0.1:8081}:8081
|
||||
command: '-vv api --host 0.0.0.0'
|
||||
user: '${UID-1000}:${GID-1000}'
|
||||
# healthcheck:
|
||||
# test: [ 'CMD-SHELL', 'curl http://127.0.0.1:8081/api/echo' ]
|
||||
# healthcheck:
|
||||
# test: [ 'CMD-SHELL', 'curl http://127.0.0.1:8081/api/echo' ]
|
||||
|
||||
archive:
|
||||
build:
|
||||
|
|
@ -102,6 +102,15 @@ services:
|
|||
ports:
|
||||
- '8085:8085'
|
||||
|
||||
help: # The WROLPi Help documentation.
|
||||
build:
|
||||
context: .
|
||||
dockerfile: docker/help/Dockerfile
|
||||
volumes:
|
||||
- './docker/help/wrolpi-help:/opt/wrolpi-help'
|
||||
ports:
|
||||
- '8086:8086'
|
||||
|
||||
volumes:
|
||||
openstreetmap-data:
|
||||
external: true
|
||||
|
|
|
|||
9
docker/help/Dockerfile
Normal file
9
docker/help/Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
FROM python:3.11-bookworm
|
||||
ENV DOCKER=true
|
||||
WORKDIR /opt/wrolpi-help
|
||||
|
||||
COPY docker/help/wrolpi-help /opt/wrolpi-help
|
||||
RUN pip3 install -r /opt/wrolpi-help/requirements.txt
|
||||
|
||||
ENTRYPOINT ["mkdocs"]
|
||||
CMD ["serve", "-a", "0.0.0.0:8086"]
|
||||
1
docker/help/wrolpi-help
Submodule
1
docker/help/wrolpi-help
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit b2167cf098eaedcf427f9d4e1aa22d0fd7dbf267
|
||||
|
|
@ -37,7 +37,7 @@ echo 'IMG_SUFFIX="-lite"' > "${BUILD_DIR}/stage2/EXPORT_IMAGE"
|
|||
echo 'IMG_SUFFIX="-desktop"' > "${BUILD_DIR}/stage5/EXPORT_IMAGE"
|
||||
|
||||
# Build the images.
|
||||
(cd "${BUILD_DIR}" && time nice -n 18 "${BUILD_DIR}/build.sh" -c "${BUILD_DIR}/config.txt" | \
|
||||
(cd "${BUILD_DIR}" && time nice -n 18 "${BUILD_DIR}"/build.sh -c "${BUILD_DIR}"/config.txt | \
|
||||
tee "${SCRIPT_DIR}"/build.log)
|
||||
|
||||
grep "02-run.sh completed" "${SCRIPT_DIR}/build.log" >/dev/null 2>&1 || (echo "script 2 failed!" && exit 1)
|
||||
|
|
@ -45,6 +45,7 @@ grep "03-run-chroot.sh completed" "${SCRIPT_DIR}/build.log" >/dev/null 2>&1 || (
|
|||
grep "04-run-chroot.sh completed" "${SCRIPT_DIR}/build.log" >/dev/null 2>&1 || (echo "script 4 failed!" && exit 1)
|
||||
|
||||
# Move the built images out of the build directory.
|
||||
mv "${SCRIPT_DIR}/deploy/*xz" "${SCRIPT_DIR}/"
|
||||
mv "${SCRIPT_DIR}"/deploy/*lite*xz "${SCRIPT_DIR}"/WROLPi-v"${VERSION}"-aarch64-lite.img.xz
|
||||
mv "${SCRIPT_DIR}"/deploy/*desktop*xz "${SCRIPT_DIR}"/WROLPi-v"${VERSION}"-aarch64-desktop.img.xz
|
||||
chmod 644 "${SCRIPT_DIR}"/*xz
|
||||
chown 1000:1000 "${SCRIPT_DIR}"/*xz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue