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

Added Alpine and Ubuntu 22.04 docker build configs #111

Open
wants to merge 2 commits into
base: llvm-14.0.0
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
16 changes: 16 additions & 0 deletions Docker/Test-Build-Alpine.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Using Ubuntu 20.04 seems to be simplest way to get an LLVM-11 that works
FROM alpine:latest
RUN apk add build-base llvm14-dev clang14-dev llvm14-static clang14-static cmake make diffutils

# Copy the source into the Docker container
RUN mkdir -p /c2ffi
COPY / /c2ffi
WORKDIR /c2ffi

# Build c2ffi
RUN cd /c2ffi && \
rm -rf build && mkdir -p build && cd build && \
cmake -DBUILD_CONFIG=Release .. && make

# As a sanity check, make sure the binary we built can be executed
RUN /c2ffi/build/bin/c2ffi --help
16 changes: 16 additions & 0 deletions Docker/Test-Build-Ubuntu-22.04.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y g++ llvm-14 clang-14 libclang-14-dev libclang-cpp14-dev cmake

# Copy the source into the Docker container
RUN mkdir -p /c2ffi
COPY / /c2ffi
WORKDIR /c2ffi

# Build c2ffi
RUN cd /c2ffi && \
rm -rf build && mkdir -p build && cd build && \
cmake -DBUILD_CONFIG=Release .. && make

# As a sanity check, make sure the binary we built can be executed
RUN /c2ffi/build/bin/c2ffi --help