Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ on:

# Run tests for any PRs.
pull_request:
branches: [ '*' ]

jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
custom-images:
build-and-deploy:
strategy:
matrix:
build-type: [velox-docker-image]
Expand Down Expand Up @@ -59,3 +60,19 @@ jobs:
IMAGE_TAG=$(echo ${{ matrix.build-type }} | tr '[A-Z]' '[a-z]')
docker tag $IMAGE_TAG $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION

build-only:
strategy:
matrix:
build-type: [velox-docker-image]

runs-on: ubuntu-latest
if: github.event_name == 'pull_request'

steps:
- uses: actions/checkout@v3

- name: Build image (Test)
run: |
IMAGE_TAG=$(echo ${{ matrix.build-type }} | tr '[A-Z]' '[a-z]')
docker build ${{ matrix.build-type }} --file ${{ matrix.build-type }}/Dockerfile --tag $IMAGE_TAG
26 changes: 18 additions & 8 deletions velox-docker-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,28 @@
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y
RUN apt-get install curl wget git build-essential sudo cmake -y
RUN apt-get install lldb clang -y
RUN apt update
RUN apt install curl wget git build-essential sudo -y
RUN apt install lldb-15 clang-15 libomp5-15 libomp-15-dev -y
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-15 200
RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-15 200
RUN update-alternatives --install /usr/bin/lldb lldb /usr/bin/lldb-15 200
RUN apt install ca-certificates gpg wget -y
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null
RUN apt update
RUN apt install kitware-archive-keyring -y
RUN apt update
RUN apt install cmake -y
RUN cd /usr/local && git clone --recursive https://github.com/facebookincubator/velox.git \
&& cd velox && git checkout 3020196b001130a9027b09d6b3b95385b90bc2cb && git submodule sync --recursive && git submodule update --init --recursive
RUN cd /usr/local/velox && ./scripts/setup-ubuntu.sh
RUN cd /usr/local/velox && make VELOX_BUILD_TESTING=OFF
RUN apt-get install openssh-server -y
&& cd velox && git checkout 8d01456cf77a56d56c371ecc9509c5ae111157d8 && git submodule sync --recursive && git submodule update --init --recursive
RUN apt install openssh-server -y
RUN apt install nano emacs-nox -y
ADD ./velox.patch /usr/local/velox/
ADD ./velox-install-compatible-spdlog.sh /usr/local/velox/scripts/install-compatible-spdlog.sh
WORKDIR /usr/local/velox
RUN git apply velox.patch
RUN chmod u+x ./scripts/install-compatible-spdlog.sh
RUN ./scripts/setup-ubuntu.sh
RUN make VELOX_BUILD_TESTING=OFF
RUN ./scripts/install-compatible-spdlog.sh
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -yy uuid-dev libopenblas-dev libfftw3-dev liblapacke-dev
RUN apt install -yy uuid-dev libopenblas-dev libfftw3-dev liblapacke-dev
Loading