Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit f85a479

Browse files
author
danecreekphotography
authored
Add support for viewing the originals and annotation folder (#364)
* Add support for viewing the originals and annotation folder * Attempt to fix webpack failure * Bundle public folders into Docker image * Add logging for public path * Remove npm audit. Again. * More public folder nonsense * More webpack nonsense * Clean up unneeded code
1 parent 3c497c1 commit f85a479

7 files changed

Lines changed: 1967 additions & 189 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
node-version: ${{ matrix.node-version }}
3434

3535
- run: npm ci
36-
- run: npm audit
3736
- run: npm run lint
3837
- run: npm test
3938
- run: npm run webpack

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## Unreleased
4+
5+
- The `/originals` and `/annotations` folders can now be viewed via the webserver. This enables
6+
browsing the list of all stored images instead of having to know the specific filename of the
7+
image. Resolves [issue363](https://github.com/danecreekphotography/node-deepstackai-trigger/issues/363).
8+
39
## 5.2.1
410

511
- Address security vulnerability in webpack used during the build process. Resolves [issue 357](https://github.com/danecreekphotography/node-deepstackai-trigger/issues/357).

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ FROM node:slim
1616
# Pre-create the temporary storage folder so it has the right user
1717
# permissions on it after volume mount
1818
RUN mkdir -p /node-deepstackai-trigger && chown -R node:node /node-deepstackai-trigger
19+
RUN mkdir -p /home/node/app/public && chown -R node:node /home/node/app/public
1920

2021
WORKDIR /home/node/app
2122
USER node
@@ -25,6 +26,9 @@ COPY --from=build --chown=node:node /home/node/app/LICENSE .
2526
COPY --from=build --chown=node:node /home/node/app/FONT_LICENSE .
2627
COPY --from=build --chown=node:node /home/node/app/fonts/CascadiaCode.ttf ./fonts/CascadiaCode.ttf
2728

29+
# The static files for directory display by the Express web server need to get copied over.
30+
COPY --from=build --chown=node:node /home/node/app/node_modules/serve-index/public ./public
31+
2832
# Enable polling for watching files by default since it appears that's
2933
# the only way to have file detection work in a Docker container.
3034
# This can always be set to false in docker-compose.yml later if necessary.

0 commit comments

Comments
 (0)