-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added entrypoint to docker image. * Added information about running in docker. * Fix sonar issue * Fix sonar redirect complaint * Clean up docker image a bit
- Loading branch information
Showing
2 changed files
with
17 additions
and
12 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 |
---|---|---|
@@ -1,21 +1,17 @@ | ||
FROM python:3.11-rc-bullseye | ||
WORKDIR /pixee | ||
|
||
RUN apt-get update | ||
ENV CODEMODDER_JAVA_VERSION=0.75.1 | ||
|
||
# Install Python 3, pip and wget | ||
RUN apt-get install -y wget unzip openjdk-17-jre | ||
|
||
RUN ln -s /usr/bin/python3 /usr/bin/python && \ | ||
java -version && \ | ||
python --version && \ | ||
python3 -m pip install semgrep==1.15.0 && \ | ||
python3 -m pip install codemodder | ||
|
||
RUN wget https://github.com/pixee/codemodder-java/releases/download/v0.72.2/codemodder-java-codemods-0.72.2.zip | ||
RUN unzip codemodder-java-codemods-0.72.2.zip | ||
RUN apt-get update && apt-get --no-install-recommends install -y wget unzip openjdk-17-jre && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
RUN wget --max-redirect=1 "https://github.com/pixee/codemodder-java/releases/download/v${CODEMODDER_JAVA_VERSION}/codemodder-java-codemods-${CODEMODDER_JAVA_VERSION}.zip" | ||
RUN unzip codemodder-java-codemods-*.zip && rm codemodder-java-codemods-*.zip | ||
|
||
RUN python3 -m pip install pixee | ||
|
||
COPY bin ./bin | ||
ENV PATH="${PATH}:/pixee/bin" | ||
|
||
WORKDIR /src | ||
|
||
ENTRYPOINT ["pixee"] |