Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial version of alpine docker #125

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
60 changes: 60 additions & 0 deletions docker/linux_amd64/alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
FROM alpine:3.20

ARG DUCKDB_VER=v1.1.3
ARG vcpkg_url="https://github.com/microsoft/vcpkg.git"
ARG vcpkg_commit="a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6"

# Install build dependencies
RUN apk update && \
apk add --no-cache \
bash \
build-base \
ccache \
cmake \
curl \
git \
g++ \
linux-headers \
make \
ninja-build \
perl \
pkgconfig \
python3 \
rustup \
tar \
unzip \
zip

RUN ln -s /usr/lib/ninja-build/bin/ninja /usr/bin/ninja

ENV VCPKG_FORCE_SYSTEM_BINARIES=1
RUN mkdir /vcpkg && \
cd /vcpkg && \
git init && \
git remote add origin $vcpkg_url && \
git fetch origin $vcpkg_commit && \
git checkout $vcpkg_commit && \
./bootstrap-vcpkg.sh
ENV VCPKG_ROOT=/vcpkg
ENV VCPKG_TOOLCHAIN_PATH=/vcpkg/scripts/buildsystems/vcpkg.cmake

# Common environment variables
ENV GEN=ninja

# Specify where we expect the extension to be mounted and use that as working dir
VOLUME /duckdb_build_dir
WORKDIR /duckdb_build_dir

# Mount for ccache to allow restoring ccache in GH actions
VOLUME /ccache_dir
ENV CCACHE_DIR=/ccache_dir
ENV CCACHE_COMPRESS=TRUE
ENV CCACHE_COMPRESSLEVEL=6
ENV CCACHE_MAXSIZE=400M

# extension-ci needs rust?

# Install the Rust toolchain
RUN rustup-init -y --default-toolchain stable

RUN git clone --branch $DUCKDB_VER https://github.com/duckdb/extension-ci-tools
8 changes: 8 additions & 0 deletions docker/linux_amd64/alpine/env.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
VCPKG_TARGET_TRIPLET=x64-linux
BUILD_SHELL=0
OPENSSL_ROOT_DIR=/duckdb_build_dir/build/release/vcpkg_installed/x64-linux
OPENSSL_DIR=/duckdb_build_dir/build/release/vcpkg_installed/x64-linux
OPENSSL_USE_STATIC_LIBS=true
DUCKDB_PLATFORM=linux-x64
DUCKDB_GIT_VERSION=1.1.3
LINUX_CI_IN_DOCKER=1