Skip to content

Rebase to jdk 21 #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile.beta
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM gradle:jdk17 as builder
FROM gradle:jdk21 as builder

ENV GITHUB_URL https://github.com/NationalSecurityAgency/ghidra.git

RUN apt-get update && apt-get install -y curl git bison flex build-essential unzip
RUN apt-get update && apt-get install -y curl git bison flex build-essential unzip python3-pip

RUN echo "[+] Cloning Ghidra..." \
&& git clone ${GITHUB_URL} /root/git/ghidra

WORKDIR /root/git/ghidra

RUN echo "[+] Downloading dependencies..." \
&& gradle --init-script gradle/support/fetchDependencies.gradle init
&& gradle --init-script gradle/support/fetchDependencies.gradle init --overwrite

RUN echo "[+] Building Ghidra..." \
&& gradle buildNatives_linux64 \
Expand All @@ -26,7 +26,7 @@ RUN echo "[+] Unzip Ghidra..." \
&& rm -rf /ghidra/docs /ghidra/Extensions/Eclipse /ghidra/licenses

##########################################################################################
FROM openjdk:17-jdk-slim
FROM openjdk:21-jdk-slim

LABEL maintainer "https://github.com/blacktop"

Expand Down
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ if [ "$1" = 'server' ]; then

# Add users
GHIDRA_USERS=${GHIDRA_USERS:-admin}
if [ ! -e "/repos/users" ] && [ ! -z "${GHIDRA_USERS}" ]; then
mkdir -p /repos/~admin
if [ ! -e "/ghidra/repositories/users" ] && [ ! -z "${GHIDRA_USERS}" ]; then
mkdir -p /ghidra/repositories/~admin
for user in ${GHIDRA_USERS}; do
echo "Adding user: ${user}"
echo "-add ${user}" >> /repos/~admin/adm.cmd
echo "-add ${user}" >> /ghidra/repositories/~admin/adm.cmd
done
fi

Expand Down
2 changes: 1 addition & 1 deletion server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ wrapper.java.maxmemory=768
# Ghidra installation directory, although an absolute path is preferred if not using default.
# This variable is also used by the svrAdmin script.

ghidra.repositories.dir=/repos
ghidra.repositories.dir=./repositories

# Ghidra server startup parameters.
#
Expand Down