Skip to content

Commit

Permalink
add obdiag build docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Teingi committed Nov 7, 2024
2 parents def19d7 + 9974123 commit 80b5852
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_base_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
file: build/Dockerfile
push: true
tags: |
${{ vars.DOCKER_PUSH_BASE }}/oceanbase/obdiag-builder:latest
${{ vars.DOCKER_PUSH_BASE }}/oceanbase/obdiag-builder:latest
12 changes: 12 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM centos:7
RUN rm -rf /etc/yum.repos.d/*
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
RUN yum install -y wget rpm-build
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh --no-check-certificate
RUN sh Miniconda3-latest-Linux-x86_64.sh -p /opt/miniconda3 -b
RUN export PATH=/opt/miniconda3/bin:$PATH
RUN /opt/miniconda3/bin/conda init
RUN /opt/miniconda3/bin/conda create --name obdiag python=3.8 -y
RUN source /opt/miniconda3/bin/activate obdiag
RUN /opt/miniconda3/envs/obdiag/bin/python3.8 -m pip install --upgrade pip setuptools wheel
RUN yum install -y gcc gcc-c++ make

0 comments on commit 80b5852

Please sign in to comment.