-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
126 changed files
with
5,846 additions
and
1,709 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM maven:3.6.1-jdk-8 AS build | ||
ADD . /app | ||
WORKDIR /app | ||
RUN mvn clean install -pl testing,core,cli | ||
|
||
FROM adoptopenjdk/openjdk8:alpine | ||
COPY --from=registry.hub.docker.com/adamcin/jvshim /go/bin/jvshim /usr/bin/java | ||
RUN mkdir -p /app/oakpal-cli | ||
COPY --from=build /app/cli/target/oakpal-cli-*-dist.tar.gz /app | ||
RUN tar --strip-components 1 -C /app/oakpal-cli -zxf /app/oakpal-cli-*-dist.tar.gz \ | ||
&& rm -f /app/oakpal-cli-*-dist.tar.gz | ||
|
||
ENV JAVA_OPTS "" | ||
ENV OAKPAL_OPEAR "." | ||
RUN mkdir -p /work | ||
WORKDIR /work | ||
ENTRYPOINT ["/app/oakpal-cli/bin/oakpal.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
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
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# prototype dockerfile for faster iterations | ||
FROM adoptopenjdk/openjdk8:alpine | ||
COPY --from=registry.hub.docker.com/adamcin/jvshim /go/bin/jvshim /usr/bin/java | ||
RUN mkdir -p /app/oakpal-cli | ||
COPY target/oakpal-cli-*-dist.tar.gz /app | ||
RUN tar --strip-components 1 -C /app/oakpal-cli -zxf /app/oakpal-cli-*-dist.tar.gz \ | ||
&& rm -f /app/oakpal-cli-*-dist.tar.gz | ||
|
||
ENV JAVA_OPTS "" | ||
ENV OAKPAL_OPEAR "." | ||
RUN mkdir -p /work | ||
WORKDIR /work | ||
ENTRYPOINT ["/app/oakpal-cli/bin/oakpal.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CLI architecture | ||
================ | ||
|
||
* Docker-oriented: the Dockerfile will live in the root of the oakpal repo, and it will run a multi-stage build to execute maven, then extract the cli distributable. | ||
* Multi-stage, and multi-space (base command home dir + machine workspace + scan workspace) | ||
|
||
## Environment Variables | ||
|
||
`OAKPAL_HOME`: defines base command directory. `${OAKPAL_HOME}/bin/oakpal` should execute the tool with standard classpath behavior of listing `${OAKPAL_HOME}/lib/*.jar`. | ||
The contents of `OAKPAL_HOME` should be established in the base docker image. This base image should also set the `ENTRYPOINT` to properly execute the `bin/oakpal` command | ||
with the appropriate `OAKPAL_PLAN` directory referenced | ||
|
||
`OAKPAL_PLAN`: defines the directory where additional modules, checklists, configurations, and pre-install packages are downloaded prior to a scan. Downstream Dockerfiles | ||
should use the base oakpal command to prepare the OAKPAL_PLAN directory using `RUN` directives. | ||
|
||
|
||
|
Oops, something went wrong.