-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into ipdx-circleci-depreca…
…tion
- Loading branch information
Showing
311 changed files
with
11,223 additions
and
2,260 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,32 @@ | ||
name: Comment with sorted PR checks | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
pull_number: | ||
description: 'Pull request number' | ||
required: true | ||
workflow_run: | ||
workflows: | ||
- Build | ||
- Check | ||
- CodeQL | ||
- Test | ||
types: | ||
- requested | ||
- completed | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
comment: | ||
if: github.event.inputs.pull_number || github.event.workflow_run.event == 'pull_request' | ||
uses: ipdxco/sorted-pr-checks/.github/workflows/comment.yml@v1 | ||
with: | ||
pull_number: ${{ github.event.inputs.pull_number || github.event.workflow_run.pull_requests[0].number }} | ||
template: unsuccessful_only |
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
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 |
---|---|---|
|
@@ -39,6 +39,7 @@ build/paramfetch.sh | |
*.snap | ||
devgen.car | ||
localnet.json | ||
/*.ndjson | ||
|
||
*-fuzz.zip | ||
/chain/types/work_msg/ | ||
|
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
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
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,95 @@ | ||
##################################### | ||
FROM golang:1.21.7-bullseye AS curio-builder | ||
MAINTAINER Curio Development Team | ||
|
||
RUN apt-get update && apt-get install -y ca-certificates build-essential clang ocl-icd-opencl-dev ocl-icd-libopencl1 jq libhwloc-dev | ||
|
||
ENV XDG_CACHE_HOME="/tmp" | ||
|
||
### taken from https://github.com/rust-lang/docker-rust/blob/master/1.63.0/buster/Dockerfile | ||
ENV RUSTUP_HOME=/usr/local/rustup \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH \ | ||
RUST_VERSION=1.63.0 | ||
|
||
RUN set -eux; \ | ||
dpkgArch="$(dpkg --print-architecture)"; \ | ||
case "${dpkgArch##*-}" in \ | ||
amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='5cc9ffd1026e82e7fb2eec2121ad71f4b0f044e88bca39207b3f6b769aaa799c' ;; \ | ||
arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='e189948e396d47254103a49c987e7fb0e5dd8e34b200aa4481ecc4b8e41fb929' ;; \ | ||
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \ | ||
esac; \ | ||
url="https://static.rust-lang.org/rustup/archive/1.25.1/${rustArch}/rustup-init"; \ | ||
wget "$url"; \ | ||
echo "${rustupSha256} *rustup-init" | sha256sum -c -; \ | ||
chmod +x rustup-init; \ | ||
./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION --default-host ${rustArch}; \ | ||
rm rustup-init; \ | ||
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \ | ||
rustup --version; \ | ||
cargo --version; \ | ||
rustc --version; | ||
|
||
COPY ./ /opt/curio | ||
WORKDIR /opt/curio | ||
|
||
### make configurable filecoin-ffi build | ||
ARG FFI_BUILD_FROM_SOURCE=0 | ||
ENV FFI_BUILD_FROM_SOURCE=${FFI_BUILD_FROM_SOURCE} | ||
|
||
RUN make clean deps | ||
|
||
ARG RUSTFLAGS="" | ||
ARG GOFLAGS="" | ||
|
||
RUN make curio-devnet | ||
|
||
##################################### | ||
FROM ubuntu:22.04 AS curio-all-in-one | ||
|
||
RUN apt-get update && apt-get install -y dnsutils vim curl | ||
|
||
# Copy libraries and binaries from curio-builder | ||
COPY --from=curio-builder /etc/ssl/certs /etc/ssl/certs | ||
COPY --from=curio-builder /lib/*/libdl.so.2 /lib/ | ||
COPY --from=curio-builder /lib/*/librt.so.1 /lib/ | ||
COPY --from=curio-builder /lib/*/libgcc_s.so.1 /lib/ | ||
COPY --from=curio-builder /lib/*/libutil.so.1 /lib/ | ||
COPY --from=curio-builder /usr/lib/*/libltdl.so.7 /lib/ | ||
COPY --from=curio-builder /usr/lib/*/libnuma.so.1 /lib/ | ||
COPY --from=curio-builder /usr/lib/*/libhwloc.so.* /lib/ | ||
COPY --from=curio-builder /usr/lib/*/libOpenCL.so.1 /lib/ | ||
|
||
# Setup user and OpenCL configuration | ||
RUN useradd -r -u 532 -U fc && \ | ||
mkdir -p /etc/OpenCL/vendors && \ | ||
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd | ||
|
||
# Environment setup | ||
ENV FILECOIN_PARAMETER_CACHE=/var/tmp/filecoin-proof-parameters \ | ||
LOTUS_MINER_PATH=/var/lib/lotus-miner \ | ||
LOTUS_PATH=/var/lib/lotus \ | ||
CURIO_REPO_PATH=/var/lib/curio | ||
|
||
# Copy binaries and scripts | ||
COPY --from=curio-builder /opt/curio/lotus /usr/local/bin/ | ||
COPY --from=curio-builder /opt/curio/lotus-seed /usr/local/bin/ | ||
COPY --from=curio-builder /opt/curio/lotus-shed /usr/local/bin/ | ||
COPY --from=curio-builder /opt/curio/lotus-miner /usr/local/bin/ | ||
COPY --from=curio-builder /opt/curio/curio /usr/local/bin/ | ||
COPY --from=curio-builder /opt/curio/sptool /usr/local/bin/ | ||
|
||
# Set up directories and permissions | ||
RUN mkdir /var/tmp/filecoin-proof-parameters \ | ||
/var/lib/lotus \ | ||
/var/lib/lotus-miner \ | ||
/var/lib/curio && \ | ||
chown fc: /var/tmp/filecoin-proof-parameters /var/lib/lotus /var/lib/lotus-miner /var/lib/curio | ||
|
||
# Define volumes | ||
VOLUME ["/var/tmp/filecoin-proof-parameters", "/var/lib/lotus", "/var/lib/lotus-miner", "/var/lib/curio"] | ||
|
||
# Expose necessary ports | ||
EXPOSE 1234 2345 12300 4701 32100 | ||
|
||
CMD ["/bin/bash"] |
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
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
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
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
Oops, something went wrong.