Skip to content

Commit

Permalink
Add adapters docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
majetideepak committed May 30, 2024
1 parent 7d5919f commit 5380375
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
name: Linux ${{ matrix.type }} with adapters
if: ${{ github.repository == 'facebookincubator/velox' }}
runs-on: ${{ matrix.runner }}
container: ghcr.io/facebookincubator/velox-dev:adapters
container: docker.io/majetideepak4/velox:adapters9
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
# prevent errors when forks ff their main branch
if: ${{ github.repository == 'facebookincubator/velox' }}
runs-on: 8-core
container: ghcr.io/facebookincubator/velox-dev:adapters
container: docker.io/majetideepak4/velox:adapters9
defaults:
run:
shell: bash
Expand Down
28 changes: 26 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,43 @@ services:
- .:/velox:delegated
command: scripts/docker-command.sh

adapters-cpp:
# Usage:
# docker-compose pull adapters-cpp or docker-compose build adapters-cpp
# or
# docker-compose run --rm adapters-cpp
# or
# docker-compose run -e NUM_THREADS=<NUMBER_OF_THREADS_TO_USE> --rm adapters-cpp
# to set the number of threads used during compilation
image: ghcr.io/facebookincubator/velox-dev:adapters
build:
context: .
dockerfile: scripts/adapters.dockerfile
args:
image: ghcr.io/facebookincubator/velox-dev:centos9
environment:
NUM_THREADS: 8 # default value for NUM_THREADS
CCACHE_DIR: "/velox/.ccache"
EXTRA_CMAKE_FLAGS: -DVELOX_ENABLE_PARQUET=ON
-DVELOX_ENABLE_S3=ON
volumes:
- .:/velox:delegated
working_dir: /velox
command: /velox/scripts/docker-command.sh

centos-cpp:
# Usage:
# docker-compose pull centos-cpp or docker-compose build centos-cpp
# docker-compose run --rm centos-cpp
# or
# docker-compose run -e NUM_THREADS=<NUMBER_OF_THREADS_TO_USE> --rm centos-cpp
# to set the number of threads used during compilation
image: ghcr.io/facebookincubator/velox-dev:centos9
image: ghcr.io/facebookincubator/velox-dev:centos8
build:
context: .
dockerfile: scripts/centos.dockerfile
args:
image: quay.io/centos/centos:stream9
image: quay.io/centos/centos:stream8
environment:
NUM_THREADS: 8 # default value for NUM_THREADS
CCACHE_DIR: "/velox/.ccache"
Expand Down
2 changes: 1 addition & 1 deletion scripts/adapters.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Build the test and build container for presto_cpp
ARG image=docker.io/majetideepak/velox:centos9
ARG image=ghcr.io/facebookincubator/velox-dev:centos9
FROM $image
ARG cpu_target=avx
ENV CPU_TARGET=$cpu_target
Expand Down
8 changes: 4 additions & 4 deletions scripts/setup-adapters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
# Dependencies of Azure Storage Blob cpp
apt install -y openssl
else # Assume Fedora/CentOS
yum -y install libxml2-devel libgsasl-devel libuuid-devel
dnf -y install libxml2-devel libgsasl-devel libuuid-devel krb5-devel
# Dependencies of GCS, probably a workaround until the docker image is rebuilt
yum -y install curl-devel c-ares-devel
dnf -y install npm curl-devel c-ares-devel
# Dependencies of Azure Storage Blob Cpp
yum -y install perl-IPC-Cmd
yum -y install openssl
dnf -y install perl-IPC-Cmd
dnf -y install openssl
fi
fi

Expand Down

0 comments on commit 5380375

Please sign in to comment.