File tree 2 files changed +45
-0
lines changed
2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ # 1. Build the Docker image
2
+ # ```
3
+ # docker build --no-cache -t firedbg-ubuntu24.04 -f build/Dockerfile.ubuntu24.04 .
4
+ # # Or, keeping the full build log
5
+ # docker build --no-cache --progress plain -t firedbg-ubuntu24.04 -f build/Dockerfile.ubuntu24.04 .
6
+ # ```
7
+ # 2. Start a Docker container and mount the directories to the container
8
+ # ```
9
+ # docker run --name firedbg-ubuntu24.04 --rm -it -v $(pwd):/FireDBG.for.Rust firedbg-ubuntu24.04
10
+ # ```
11
+ # 3. Build release
12
+ # ```
13
+ # cd /FireDBG.for.Rust && sh build-tools/release-x86_64-ubuntu.sh
14
+ # ```
15
+
16
+ FROM ubuntu:24.04
17
+
18
+ # apt install without interactive dialogue
19
+ ARG DEBIAN_FRONTEND=noninteractive
20
+
21
+ # The following dependencies are required
22
+ RUN apt update
23
+ # Needed in `release.sh`
24
+ RUN apt install curl unzip -y
25
+ # Needed to build FireDBG executables and run self tests
26
+ RUN apt install clang build-essential pkg-config libssl-dev -y
27
+ RUN apt install liblldb-18 python3-lldb-18 libc++-dev libc++abi1-18 -y
28
+ # Link c++ to `clang` instead of g++
29
+ RUN update-alternatives --set c++ /usr/bin/clang++
30
+
31
+ # Install Rust
32
+ RUN curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal -y
33
+ ENV PATH "/root/.cargo/bin:$PATH"
34
+
35
+ # Create symbolic links such that `cargo` and `lldb` can locate them
36
+ RUN ln -s /usr/lib/x86_64-linux-gnu/liblldb-18.so.1 /usr/lib/x86_64-linux-gnu/liblldb.so
37
+
38
+ # For unknown reason, if LLDB cannot locate `lldb-server`
39
+ RUN export LLDB_DEBUGSERVER_PATH=/usr/lib/llvm-18/bin/lldb-server-18.0.0
Original file line number Diff line number Diff line change @@ -154,6 +154,9 @@ get_architecture() {
154
154
case " $_os_id_like " in
155
155
ubuntu* )
156
156
case " $_os_version_id " in
157
+ 24* ) # Ubuntu Noble
158
+ local _ostype=" ubuntu24.04"
159
+ ;;
157
160
21* ) # Ubuntu Jammy
158
161
local _ostype=" ubuntu22.04"
159
162
;;
@@ -168,6 +171,9 @@ get_architecture() {
168
171
esac
169
172
esac
170
173
case " $_ostype " in
174
+ ubuntu24* )
175
+ check_apt_install libc++abi1-18
176
+ ;;
171
177
ubuntu22* )
172
178
check_apt_install libc++abi1-15
173
179
;;
You can’t perform that action at this time.
0 commit comments