| 1 | # Docker Image Structure |
| 2 | The codebuild specifications are run on a custom docker images that have the test dependencies installed. The docker image structure is described below. |
| 3 | |
| 4 | ### libcrypto |
| 5 | Various libcryptos are installed to `/usr/local/$LIBCRYPTO` directories. For example |
| 6 | ``` |
| 7 | # non-exhaustive list |
| 8 | /usr/local/openssl-1.0.2/lib/libcrypto.a |
| 9 | /usr/local/openssl-1.0.2/lib/libcrypto.so |
| 10 | /usr/local/openssl-1.0.2/lib/libcrypto.so.1.0.0 |
| 11 | /usr/local/openssl-1.0.2/lib/pkgconfig/libcrypto.pc |
| 12 | /usr/local/openssl-3.0/lib64/libcrypto.a |
| 13 | /usr/local/openssl-3.0/lib64/libcrypto.so.3 |
| 14 | /usr/local/openssl-3.0/lib64/libcrypto.so |
| 15 | /usr/local/openssl-3.0/lib64/pkgconfig/libcrypto.pc |
| 16 | /usr/local/boringssl/lib/libcrypto.so |
| 17 | /usr/local/awslc/lib/libcrypto.a |
| 18 | /usr/local/awslc/lib/libcrypto.so |
| 19 | ``` |
| 20 | |
| 21 | Packages installed from the `apt` package manager can generally be found in `/usr/lib`. For example, our 32 bit build uses the 32 bit `i386` libcrypto, and it's artifacts are located at |
| 22 | ``` |
| 23 | /usr/lib/i386-linux-gnu/libcrypto.a |
| 24 | /usr/lib/i386-linux-gnu/libcrypto.so.3 |
| 25 | /usr/lib/i386-linux-gnu/libcrypto.so |
| 26 | /usr/lib/i386-linux-gnu/pkgconfig/libcrypto.pc |
| 27 | ``` |
| 28 | |
| 29 | When the docker image is available locally, the structure can be easily examined by attaching an interactive terminal to the container with the following command |
| 30 | ``` |
| 31 | docker run --entrypoint /bin/bash -it --privileged <image id> |
| 32 | ``` |
| 33 | |
| 34 | Then the `find` command can be used to look at the various artifacts that are available. |
| 35 | ``` |
| 36 | sudo find / -name libcrypto* # list all libcrypto artifacts |
| 37 | ``` |
| 38 | or |
| 39 | ``` |
| 40 | sudo find / -name clang* # find all clang binaries |
| 41 | ``` |