Skip to content

Commit

Permalink
Updating links to gcov
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Jun 6, 2024
1 parent 342fce3 commit ebb17e2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
FROM ubuntu:latest

# Installing g++-9 and GNU Make
RUN apt update && apt install -y --no-install-recommends g++-9
RUN apt update && apt install -y --no-install-recommends g++-11
RUN apt install -y --no-install-recommends make

# Makeing the path availables
RUN cd /bin/ && ln -s g++-9 g++ && \
# Making the path availables
RUN cd /bin/ && ln -s g++-11 g++ && \
ln -s gcov-11 gcov && \
echo export PATH=$PATH:/bin/:/user/bin/ > ~/.profile

# Installing gcov
RUN apt install -y --no-install-recommends gcovr

# Test run
COPY hello.cpp /home/hello.cpp
RUN echo "all:\n\tg++ -std=c++11 hello.cpp -o hello.o && ./hello.o" >> /home/Makefile
Expand Down

0 comments on commit ebb17e2

Please sign in to comment.