forked from redballoonsecurity/ofrak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move away from "$OFRAK_DIR" argument to $PACKAGE_PATH for Docker buil…
…ds (redballoonsecurity#425) - $PACKAGE_PATH generalizes build_image.py such that it works with any yaml file containing a valid list of Python packages Before this change, it was possible to use build_image.py a directory above the OFRAK repository by passing in an OFRAK_DIR arugment in the yml file. This change generalizes the approach so that build_image.py can be run in any ancestor directory.
- Loading branch information
Showing
7 changed files
with
19 additions
and
17 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
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
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,7 +1,6 @@ | ||
FROM node:latest AS svelte | ||
|
||
ARG OFRAK_DIR=. | ||
COPY --chown=node:node $OFRAK_DIR/frontend /home/node/frontend | ||
COPY --chown=node:node $PACKAGE_DIR /home/node/frontend | ||
|
||
WORKDIR /home/node/frontend | ||
RUN su node -c "npm install && npm run build" |
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
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,4 +1,3 @@ | ||
ARG OFRAK_DIR=. | ||
COPY $OFRAK_DIR/mkdocs.yml /mkdocs.yml | ||
COPY $OFRAK_DIR/docs /docs | ||
COPY $OFRAK_DIR/examples /examples | ||
COPY $PACKAGE_PATH/../mkdocs.yml /mkdocs.yml | ||
COPY $PACKAGE_PATH/../docs /docs | ||
COPY $PACKAGE_PATH/../examples /examples |