Skip to content

Commit

Permalink
-Update Dockerfiles for Ubuntu20 and Ubuntu22
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-gomez-windhover committed Sep 17, 2024
1 parent feb7e8f commit 395d11c
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 2 deletions.
55 changes: 55 additions & 0 deletions Dockerfile.ubuntu20
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
FROM ubuntu:20.04
RUN apt update
ARG DEBIAN_FRONTEND=noninteractive
ENV TERM xterm-256color
RUN apt-get update && \
apt-get -y install sudo

RUN apt-get install -y gcc-multilib
RUN apt-get install -y g++-multilib
RUN apt-get install -y libdwarf-dev
RUN apt-get install -y make
RUN apt-get install -y libelf-dev
RUN apt-get install -y libsqlite3-dev
RUN apt-get install -y libssl-dev
RUN apt-get install -y doxygen
RUN apt-get install -y gcovr

RUN mkdir /home/docker
COPY . /home/docker/juicer


RUN cd /home/docker/juicer && make clean
RUN cd /home/docker/juicer && make docs

RUN cd /home/docker/juicer && make
RUN cd /home/docker/juicer && make clean
RUN cd /home/docker/juicer && make all
WORKDIR /home/docker/juicer/build
RUN ./juicer-ut "[Enumeration]"
RUN ./juicer-ut "[main_test#1]"
RUN ./juicer-ut "[main_test#2]"
RUN ./juicer-ut "[main_test#3]"
RUN ./juicer-ut "[main_test#4]"
RUN ./juicer-ut "[main_test#5]"
RUN ./juicer-ut "[main_test#6]"
RUN ./juicer-ut "[main_test#7]"
RUN ./juicer-ut "[main_test#8]"
RUN ./juicer-ut "[main_test#9]"
RUN ./juicer-ut "[main_test#10]"
RUN ./juicer-ut "[main_test#11]"
RUN ./juicer-ut "[main_test#12]"
RUN ./juicer-ut "[main_test#13]"
RUN ./juicer-ut "[main_test#14]"
RUN ./juicer-ut "[main_test#15]"
RUN ./juicer-ut "[main_test#16]"
RUN ./juicer-ut "[main_test#17]"
RUN ./juicer-ut "[Module]"
RUN ./juicer-ut "[Symbol]"

RUN cd /home/docker/juicer && make coverage
#Useful for CI
RUN cd /home/docker/juicer && gcovr --filter /home/docker/juicer/src/ --object-directory /home/docker/juicer/build/ut_obj/ --xml coverage.gcov



21 changes: 21 additions & 0 deletions Dockerfile.ubuntu20.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ubuntu:22.04
RUN apt update
ARG DEBIAN_FRONTEND=noninteractive
ENV TERM xterm-256color
RUN apt-get update && \
apt-get -y install sudo

RUN apt-get install -y gcc-multilib
RUN apt-get install -y g++-multilib
RUN apt-get install -y libdwarf-dev
RUN apt-get install -y make
RUN apt-get install -y libelf-dev
RUN apt-get install -y libsqlite3-dev
RUN apt-get install -y libssl-dev
RUN apt-get install -y doxygen
RUN apt-get install -y gdb
RUN apt-get install -y gcovr

RUN mkdir /home/docker
RUN mkdir /home/docker/juicer
WORKDIR /home/docker/juicer
21 changes: 21 additions & 0 deletions Dockerfile.ubuntu22.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ubuntu:22.04
RUN apt update
ARG DEBIAN_FRONTEND=noninteractive
ENV TERM xterm-256color
RUN apt-get update && \
apt-get -y install sudo

RUN apt-get install -y gcc-multilib
RUN apt-get install -y g++-multilib
RUN apt-get install -y libdwarf-dev
RUN apt-get install -y make
RUN apt-get install -y libelf-dev
RUN apt-get install -y libsqlite3-dev
RUN apt-get install -y libssl-dev
RUN apt-get install -y doxygen
RUN apt-get install -y gdb
RUN apt-get install -y gcovr

RUN mkdir /home/docker
RUN mkdir /home/docker/juicer
WORKDIR /home/docker/juicer
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,13 @@ clean:
-include $(UT_OBJ:.o=.d)
-include $(OBJ:.o=.d)

docker-build:
@sudo docker build --no-cache -t juicer:latest -f Dockerfile .
docker-ubuntu22-build:
@sudo docker build --no-cache -t juicer:latest -f Dockerfile.ubuntu22 .


docker-ubuntu20-build:
@sudo docker build --no-cache -t juicer:latest -f Dockerfile.ubuntu20 .


docker-build-dev:
@sudo docker build --no-cache -t juicer-dev:latest -f Dockerfile.dev .
Expand Down

0 comments on commit 395d11c

Please sign in to comment.