Skip to content

Commit

Permalink
Added build-gdb
Browse files Browse the repository at this point in the history
  • Loading branch information
dutor committed Mar 30, 2020
1 parent 44ae9ef commit 374dacf
Show file tree
Hide file tree
Showing 12 changed files with 415 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/toolset/build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ gcc-%:
llvm-%:
@echo '******************' Build Nebula Toolset/LLVM For $* '********************'
@$(docker_cmd) --rm -it dutor/toolset-build:$* ./build-llvm.sh

gdb-%:
@echo '******************' Build Nebula Toolset/LLVM For $* '********************'
@$(docker_cmd) --rm -it dutor/toolset-build:$* ./build-gdb.sh
28 changes: 28 additions & 0 deletions docker/toolset/images/build-gdb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#! /usr/bin/env bash

set -e

release="$(lsb_release -si) $(lsb_release -sr)"
if [[ "$release" =~ "CentOS 8" ]]
then
echo "Skip build GCC for Centos 8"
exit 0
fi

if [[ "$release" =~ "Debian 10" ]]
then
echo "Skip build GCC for Debian 10"
exit 0
fi

this_dir=$(dirname $(readlink -f $0))

versions=${BUILD_GDB_VERSIONS:-all}

build-gdb --version=$versions


cp -v toolset-build/vesoft-gdb-*.sh /data

[[ -n $OSS_ENDPOINT ]] && ${this_dir}/oss-upload.sh toolset toolset-build/vesoft-gdb-*.sh

5 changes: 5 additions & 0 deletions docker/toolset/images/centos-6.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ RUN yum install -y make \
unzip \
bzip2 \
xz \
xz-devel \
patch \
python \
python-devel \
redhat-lsb-core \
zlib-devel \
gcc \
Expand Down Expand Up @@ -37,6 +39,9 @@ WORKDIR ${PACKAGE_DIR}
COPY build-gcc.sh ${PACKAGE_DIR}/build-gcc.sh
RUN chmod +x ${PACKAGE_DIR}/build-gcc.sh

COPY build-gdb.sh ${PACKAGE_DIR}/build-gdb.sh
RUN chmod +x ${PACKAGE_DIR}/build-gdb.sh

COPY build-llvm.sh ${PACKAGE_DIR}/build-llvm.sh
RUN chmod +x ${PACKAGE_DIR}/build-llvm.sh

Expand Down
5 changes: 5 additions & 0 deletions docker/toolset/images/centos-7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ RUN yum install -y make \
unzip \
bzip2 \
xz \
xz-devel \
patch \
python \
python-devel \
redhat-lsb-core \
zlib-devel \
gcc \
Expand All @@ -36,6 +38,9 @@ WORKDIR ${PACKAGE_DIR}
COPY build-gcc.sh ${PACKAGE_DIR}/build-gcc.sh
RUN chmod +x ${PACKAGE_DIR}/build-gcc.sh

COPY build-gdb.sh ${PACKAGE_DIR}/build-gdb.sh
RUN chmod +x ${PACKAGE_DIR}/build-gdb.sh

COPY build-llvm.sh ${PACKAGE_DIR}/build-llvm.sh
RUN chmod +x ${PACKAGE_DIR}/build-llvm.sh

Expand Down
3 changes: 3 additions & 0 deletions docker/toolset/images/centos-8.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ WORKDIR ${PACKAGE_DIR}
COPY build-gcc.sh ${PACKAGE_DIR}/build-gcc.sh
RUN chmod +x ${PACKAGE_DIR}/build-gcc.sh

COPY build-gdb.sh ${PACKAGE_DIR}/build-gdb.sh
RUN chmod +x ${PACKAGE_DIR}/build-gdb.sh

COPY build-llvm.sh ${PACKAGE_DIR}/build-llvm.sh
RUN chmod +x ${PACKAGE_DIR}/build-llvm.sh

Expand Down
3 changes: 3 additions & 0 deletions docker/toolset/images/debian-10.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ WORKDIR ${PACKAGE_DIR}
COPY build-gcc.sh ${PACKAGE_DIR}/build-gcc.sh
RUN chmod +x ${PACKAGE_DIR}/build-gcc.sh

COPY build-gdb.sh ${PACKAGE_DIR}/build-gdb.sh
RUN chmod +x ${PACKAGE_DIR}/build-gdb.sh

COPY build-llvm.sh ${PACKAGE_DIR}/build-llvm.sh
RUN chmod +x ${PACKAGE_DIR}/build-llvm.sh

Expand Down
5 changes: 5 additions & 0 deletions docker/toolset/images/debian-7.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ RUN apt-get install -y make \
unzip \
curl \
xz-utils \
liblzma-dev \
python-dev \
patch \
lsb-core \
libz-dev \
Expand All @@ -35,6 +37,9 @@ WORKDIR ${PACKAGE_DIR}
COPY build-gcc.sh ${PACKAGE_DIR}/build-gcc.sh
RUN chmod +x ${PACKAGE_DIR}/build-gcc.sh

COPY build-gdb.sh ${PACKAGE_DIR}/build-gdb.sh
RUN chmod +x ${PACKAGE_DIR}/build-gdb.sh

COPY build-llvm.sh ${PACKAGE_DIR}/build-llvm.sh
RUN chmod +x ${PACKAGE_DIR}/build-llvm.sh

Expand Down
5 changes: 5 additions & 0 deletions docker/toolset/images/debian-8.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN apt-get install -y make \
unzip \
curl \
xz-utils \
liblzma-dev ]
python-dev ]
patch \
lsb-core \
libz-dev \
Expand All @@ -34,6 +36,9 @@ WORKDIR ${PACKAGE_DIR}
COPY build-gcc.sh ${PACKAGE_DIR}/build-gcc.sh
RUN chmod +x ${PACKAGE_DIR}/build-gcc.sh

COPY build-gdb.sh ${PACKAGE_DIR}/build-gdb.sh
RUN chmod +x ${PACKAGE_DIR}/build-gdb.sh

COPY build-llvm.sh ${PACKAGE_DIR}/build-llvm.sh
RUN chmod +x ${PACKAGE_DIR}/build-llvm.sh

Expand Down
5 changes: 5 additions & 0 deletions docker/toolset/images/debian-9.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ RUN apt-get install -y make \
curl \
xz-utils \
pxz \
liblzma-dev \
python-dev \
patch \
lsb-core \
libz-dev \
Expand All @@ -34,6 +36,9 @@ WORKDIR ${PACKAGE_DIR}
COPY build-gcc.sh ${PACKAGE_DIR}/build-gcc.sh
RUN chmod +x ${PACKAGE_DIR}/build-gcc.sh

COPY build-gdb.sh ${PACKAGE_DIR}/build-gdb.sh
RUN chmod +x ${PACKAGE_DIR}/build-gdb.sh

COPY build-llvm.sh ${PACKAGE_DIR}/build-llvm.sh
RUN chmod +x ${PACKAGE_DIR}/build-llvm.sh

Expand Down
Loading

0 comments on commit 374dacf

Please sign in to comment.