diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-05-30 16:01:42 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-05-30 16:38:31 +0200 |
commit | e009a46e2267a622eeef02217e273deb8913029f (patch) | |
tree | c77499867a9bb208dfbcfd20170297c10b807628 | |
parent | 7a94948e65db2fef6fd93c94e70ead168b71513d (diff) | |
download | gcc-e009a46e2267a622eeef02217e273deb8913029f.zip gcc-e009a46e2267a622eeef02217e273deb8913029f.tar.gz gcc-e009a46e2267a622eeef02217e273deb8913029f.tar.bz2 |
docker: Add commit information to Docker image
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -44,7 +44,8 @@ RUN apt-get update; \ xz-utils \ zlib1g-dev \ flex \ - bison + bison \ + git ADD . /usr/src/gcc RUN /bin/sh -c set -ex; \ @@ -58,6 +59,9 @@ RUN /bin/sh -c set -ex; \ cd /root; \ rm -rf /usr/src/gcc +RUN cd /usr/src/gcc; \ + git log -1 --format="%h" > /GCCRS_BUILD; \ + RUN /bin/sh -c set -ex; \ echo '/usr/local/lib64' > /etc/ld.so.conf.d/local-lib64.conf; \ ldconfig -v @@ -69,6 +73,7 @@ RUN /bin/sh -c set -ex; \ FROM rust:latest COPY --from=gcc-builder /usr/ /usr/ +COPY --from=gcc-builder /GCCRS_BUILD /GCCRS_BUILD RUN cargo install --git https://github.com/Rust-GCC/cargo-gccrs cargo-gccrs CMD ["bash"] |