-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39973be
commit b557447
Showing
3 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build and push debug docker image | ||
|
||
on: | ||
push: | ||
branches: | ||
- "debug/db-perf" | ||
|
||
concurrency: | ||
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | ||
cancel-in-progress: true | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }}-debug | ||
|
||
jobs: | ||
docker: | ||
runs-on: | ||
labels: ubuntu-22.04-64core | ||
permissions: | ||
packages: write | ||
contents: read | ||
attestations: write | ||
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and Push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: Dockerfile.debug | ||
push: true | ||
tags: | | ||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} | ||
platforms: linux/amd64 | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM --platform=linux/amd64 ubuntu:22.04 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
build-essential \ | ||
libssl-dev \ | ||
texinfo \ | ||
libcap2-bin \ | ||
pkg-config \ | ||
git \ | ||
devscripts \ | ||
debhelper \ | ||
ca-certificates \ | ||
wget | ||
|
||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
ENV PATH "/root/.cargo/bin:${PATH}" | ||
ENV RUSTUP_HOME "/root/.rustup" | ||
ENV CARGO_HOME "/root/.cargo" | ||
RUN rustup toolchain install nightly-2024-07-10 | ||
RUN rustup default nightly-2024-07-10 | ||
RUN rustup component add cargo | ||
RUN cargo install cargo-build-deps && cargo install cargo-edit | ||
|
||
COPY . . | ||
|
||
RUN apt-get update && apt-get install -y pkg-config wget libssl-dev ca-certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb \ | ||
&& dpkg -i cuda-keyring_1.1-1_all.deb \ | ||
&& apt-get update \ | ||
&& apt-get install -y cuda-toolkit-12-2 libnccl2=2.22.3-1+cuda12.2 libnccl-dev=2.22.3-1+cuda12.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="RUST_MODULE" version="4"> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/benches" isTestSource="true" /> | ||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" /> | ||
<sourceFolder url="file://$MODULE_DIR$/iris-mpc-common/src" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/iris-mpc-gpu/benches" isTestSource="true" /> | ||
<sourceFolder url="file://$MODULE_DIR$/iris-mpc-gpu/src" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/iris-mpc-gpu/tests" isTestSource="true" /> | ||
<sourceFolder url="file://$MODULE_DIR$/iris-mpc-store/src" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/iris-mpc-upgrade/src" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/iris-mpc/src" isTestSource="false" /> | ||
<excludeFolder url="file://$MODULE_DIR$/target" /> | ||
</content> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
</component> | ||
</module> |