1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00
cdt/docker/cdt-infra-all-gdbs
Jonah Graham 9fb6260b6a Add Dockerfiles for build images of CDT project
This is the state of the files as of cdt-infra
commit 497e7b2a643ff6ea12a56a21c17dd2d170e918c8 with
the Readme updated for the new locations
2024-04-26 11:15:27 -04:00
..
ubuntu-18.04 Add Dockerfiles for build images of CDT project 2024-04-26 11:15:27 -04:00
Readme.md Add Dockerfiles for build images of CDT project 2024-04-26 11:15:27 -04:00

Building GDBs in a separate image

The GDBs take a long time to build and it is very inconvenient to have to build them because something else in a Docker file has changed. Therefore, this image only builds the GDBs using the download-build-gdb.sh script.

Other images can then use these prebuilt GDBs by copying them to their image.

For example, to copy all the GDBs use this line:

COPY --from=cdt-infra-all-gdbs:ubuntu-18.04 /shared/common/gdb/gdb-all /shared/common/gdb/gdb-all

Or, to copy a specific version only, do this:

# Copy install directory
COPY --from=cdt-infra-all-gdbs:ubuntu-18.04 /shared/common/gdb/gdb-all/install/gdb-8.2.1 /shared/common/gdb/gdb-all/install/gdb-8.2.1
# Copy versioned links
COPY --from=cdt-infra-all-gdbs:ubuntu-18.04 /shared/common/gdb/gdb-all/bin/gdb.8.2 /shared/common/gdb/gdb-all/bin/gdb.8.2
COPY --from=cdt-infra-all-gdbs:ubuntu-18.04 /shared/common/gdb/gdb-all/bin/gdb.8.2.1 /shared/common/gdb/gdb-all/bin/gdb.8.2.1
COPY --from=cdt-infra-all-gdbs:ubuntu-18.04 /shared/common/gdb/gdb-all/bin/gdbserver.8.2 /shared/common/gdb/gdb-all/bin/gdbserver.8.2
COPY --from=cdt-infra-all-gdbs:ubuntu-18.04 /shared/common/gdb/gdb-all/bin/gdbserver.8.2.1 /shared/common/gdb/gdb-all/bin/gdbserver.8.2.1