-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: Update Dockerfile for multiple distributions
Update Docker file for lastest distributions such as latest fedora, ubuntu, CentOS, Rocky Linux and opensuse 15 Reported-by: Paran Lee <[email protected]> Signed-off-by: JeongWan Gho <[email protected]> Signed-off-by: Yusun Choi <[email protected]> Signed-off-by: Paran Lee <[email protected]>
- Loading branch information
Showing
16 changed files
with
203 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM alpine:3.15 | ||
ARG test | ||
RUN apk update | ||
RUN apk add build-base linux-headers git bash libunwind-dev | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "${test}" == "yes" ] ; then \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh && ./configure && make && make unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM alpine:3.16 | ||
ARG test | ||
RUN apk update | ||
RUN apk add build-base linux-headers git bash libunwind-dev | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "${test}" == "yes" ] ; then \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh && ./configure && make && make unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM centos:8 | ||
ARG test | ||
|
||
# setting package manager | ||
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | ||
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | ||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* | ||
RUN dnf install -y 'dnf-command(config-manager)' | ||
RUN dnf config-manager --set-enabled powertools | ||
|
||
RUN dnf -y install gcc gcc-c++ git make libasan libubsan | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM centos:latest | ||
ARG test | ||
|
||
# setting package manager | ||
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* | ||
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* | ||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* | ||
RUN dnf install -y 'dnf-command(config-manager)' | ||
RUN dnf config-manager --set-enabled powertools | ||
|
||
RUN dnf -y install gcc gcc-c++ git make libasan libubsan | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM fedora:35 | ||
ARG test | ||
RUN yum install -y git gcc make libasan libubsan | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM fedora:36 | ||
ARG test | ||
RUN dnf install -y git gcc make libasan libubsan | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM fedora:37 | ||
ARG test | ||
RUN dnf install -y git gcc make libasan libubsan | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM fedora:latest | ||
ARG test | ||
RUN yum install -y git gcc make libasan libubsan | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM opensuse/leap:15 | ||
ARG test | ||
RUN zypper install -y gcc git make | ||
RUN zypper install -y pandoc libdw-devel python3-devel ncurses-devel pkg-config libstdc++-devel | ||
RUN zypper install -y luajit-devel libcapstone-devel | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM opensuse/leap:latest | ||
ARG test | ||
RUN zypper install -y gcc git make | ||
RUN zypper install -y pandoc libdw-devel python3-devel ncurses-devel pkg-config libstdc++-devel | ||
RUN zypper install -y luajit-devel libcapstone-devel | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM rockylinux:8 | ||
ARG test | ||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* | ||
RUN dnf --enablerepo=powertools install -y pandoc | ||
RUN dnf install -y gcc gcc-c++ git make libasan libubsan epel-release | ||
RUN dnf install -y elfutils-devel python3-devel ncurses-devel luajit-devel capstone-devel | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM rockylinux:9 | ||
ARG test | ||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* | ||
RUN dnf install -y wget gcc gcc-c++ git make libasan libubsan epel-release | ||
RUN dnf install -y elfutils-devel python3-devel ncurses-devel luajit-devel capstone-devel | ||
RUN wget https://github.com/jgm/pandoc/releases/download/2.19.2/pandoc-2.19.2-linux-amd64.tar.gz | ||
RUN tar xvzf pandoc-2.19.2-linux-amd64.tar.gz --strip-components 1 -C /usr/local/ | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ubuntu:20.04 | ||
ARG test | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends git gcc make ca-certificates | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi | ||
RUN apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM ubuntu:22.04 | ||
ARG test | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends git gcc make ca-certificates | ||
RUN mkdir -p /usr/src | ||
RUN git clone https://github.com/namhyung/uftrace /usr/src/uftrace | ||
RUN if [ "$test" = "yes" ] ; then \ | ||
cd /usr/src/uftrace \ | ||
&& ./misc/install-deps.sh -y \ | ||
&& ./configure && make ASAN=1 && make ASAN=1 unittest; \ | ||
else \ | ||
cd /usr/src/uftrace && ./misc/install-deps.sh -y && ./configure && make && make install; \ | ||
fi | ||
RUN apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* |