public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] docker: Add commit information to Docker image
@ 2022-06-08 12:51 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:51 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e009a46e2267a622eeef02217e273deb8913029f
commit e009a46e2267a622eeef02217e273deb8913029f
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date: Mon May 30 16:01:42 2022 +0200
docker: Add commit information to Docker image
Diff:
---
Dockerfile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Dockerfile b/Dockerfile
index 681a7444b2c..da97edacb9e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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"]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:51 [gcc/devel/rust/master] docker: Add commit information to Docker image Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).