mirror of
https://github.com/n0-computer/iroh.git
synced 2026-11-29 08:01:13 +00:00
## Description As previously announced and planned, this removes all protocol implementations from the `iroh` crate, as well as removes the `iroh-cli` crate. The core functionality of those protocols, including RPC & CLI now is in the individual crates. ## Remove from `iroh` - [x] `iroh-docs` - [x] `iroh-blobs` - [x] `iroh-gossip` ## Examples - [x] Move examples to the appropriate repos: https://github.com/n0-computer/iroh-blobs/pull/15 ## Tests - [x] Move the remaining tests to the appropriate repos CLI - [x] Remove ## Breaking Changes - `iroh-cli` removed - the crate itself - the ability to run `iroh` itself in a docker container, as there is no binary anymore - removed - `iroh::blobs` use `iroh_blobs` - `iroh::docs` use `iroh_docs` - `iroh::gossip` use `iroh_gossip` - `iroh::client::blobs` use `iroh_blobs::rpc::client`. a memory client is available on Blobs - `iroh::client::tags` use `iroh_blobs::rpc::client`. a memory client is available on Blobs - `iroh::client::gossip` use `iroh_gossip::rpc::client`. a memory client is available on Gossip - `iroh::client::docs` use `iroh_docs::rpc::client`. a memory client is available on Docs - `iroh::client::authors` use `iroh_docs::rpc::client`. a memory client is available on Docs - `iroh::node::MemNode`, use `Node` directly - `iroh::node::FsNode`, use `Node` directly - `iroh::node::Node::local_pool_handle` - `iroh::node::builder::DocsStorage` - `iroh::node::builder::Builder::enable_gc_policy` - `iroh::node::builder::Builder::enable_docs` - `iroh::node::builder::Builder::register_cb_done` - `iroh::node::builder::ProtocolBuilder::local_pool_handle` - `iroh::node::builder::GcPolicy` - `iroh::util::progress` - `iroh::util::path::IrohPaths::BaoStoreDir` - `iroh::util::path::IrohPaths::DocsDatabase ` - `iroh::util::path::IrohPaths::Console` - `iroh::util::path::IrohPaths::DefaultAuthor` - `iroh::node::Builder` has no more generic parameters anymore - `iroh::node::Node` has no more generic parameters anymore ## Notes & open questions ## Change checklist - [x] Self-review. - [x] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [x] Tests if relevant. - [x] All breaking changes documented. --------- Co-authored-by: Asmir Avdicevic <asmir.avdicevic64@gmail.com>
103 lines
3.3 KiB
YAML
103 lines
3.3 KiB
YAML
name: Docker
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
release_version:
|
|
description: "Release version"
|
|
required: true
|
|
type: string
|
|
default: ""
|
|
base_hash:
|
|
description: "Commit hash from which to build"
|
|
required: true
|
|
type: string
|
|
default: ""
|
|
publish:
|
|
description: "Publish to Docker Hub"
|
|
required: true
|
|
type: boolean
|
|
default: false
|
|
workflow_call:
|
|
inputs:
|
|
release_version:
|
|
description: "Release version"
|
|
required: true
|
|
type: string
|
|
default: ""
|
|
base_hash:
|
|
description: "Commit hash from which to build"
|
|
required: true
|
|
type: string
|
|
default: ""
|
|
publish:
|
|
description: "Publish to Docker Hub"
|
|
required: true
|
|
type: boolean
|
|
default: false
|
|
|
|
env:
|
|
IROH_FORCE_STAGING_RELAYS: "1"
|
|
|
|
jobs:
|
|
build_and_publish:
|
|
timeout-minutes: 30
|
|
name: Docker
|
|
runs-on: [self-hosted, linux, X64]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Prep dirs
|
|
run: |
|
|
mkdir -p bins/linux/amd64
|
|
mkdir -p bins/linux/arm64
|
|
|
|
- name: Setup awscli on linux
|
|
run: |
|
|
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
|
|
unzip awscliv2.zip
|
|
sudo ./aws/install --update
|
|
|
|
- name: Set aws credentials
|
|
run: |
|
|
echo "AWS_ACCESS_KEY_ID=${{secrets.S3_ACCESS_KEY_ID}}" >> $GITHUB_ENV
|
|
echo "AWS_SECRET_ACCESS_KEY=${{secrets.S3_ACCESS_KEY}}" >> $GITHUB_ENV
|
|
echo "AWS_DEFAULT_REGION=us-west-2" >> $GITHUB_ENV
|
|
|
|
- name: Fetch release binaries
|
|
run: |
|
|
aws s3 cp s3://vorc/iroh-relay-linux-amd64-${{ inputs.base_hash }} bins/linux/amd64/iroh-relay
|
|
aws s3 cp s3://vorc/iroh-dns-server-linux-amd64-${{ inputs.base_hash }} bins/linux/amd64/iroh-dns-server
|
|
|
|
aws s3 cp s3://vorc/iroh-relay-linux-aarch64-${{ inputs.base_hash }} bins/linux/arm64/iroh-relay
|
|
aws s3 cp s3://vorc/iroh-dns-server-linux-aarch64-${{ inputs.base_hash }} bins/linux/arm64/iroh-dns-server
|
|
|
|
- name: Build Docker image (iroh-relay)
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: ${{ inputs.publish }}
|
|
tags: n0computer/iroh-relay:latest,n0computer/iroh-relay:${{ inputs.release_version }}
|
|
target: iroh-relay
|
|
platforms: linux/amd64,linux/arm64/v8
|
|
file: docker/Dockerfile.ci
|
|
|
|
- name: Build Docker image (iroh-dns-server)
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: ${{ inputs.publish }}
|
|
tags: n0computer/iroh-dns-server:latest,n0computer/iroh-dns-server:${{ inputs.release_version }}
|
|
target: iroh-dns-server
|
|
platforms: linux/amd64,linux/arm64/v8
|
|
file: docker/Dockerfile.ci |