Clone the projects and mount them in a container:
git clone -b polkadot-v0.9.20-dev [email protected]:ajuna-network/Ajuna.git Ajuna
git clone [email protected]:ajuna-network/worker.git worker
cd worker && git checkout 0c40097 && cd ..| import boto3, re, asyncio | |
| async def sync_one_to_s3(path): | |
| source, target = path | |
| bucket = re.sub('^s3://(.+?)/.+$', '\\1', target) | |
| s3 = boto3.resource('s3') | |
| b = s3.Bucket(bucket) | |
| try: | |
| b.upload_file(file, key) | |
| except ClientError as e: |
| #![feature(specialization)] | |
| trait Foo { | |
| fn foo(&self); | |
| } | |
| impl<T> Foo for T { | |
| default fn foo(&self) { println!("default foo") } | |
| } |
| # clone repos | |
| mkdir move-repo && cd move-repo/ | |
| git clone <repo-src> | |
| git clone <repo-dst> | |
| # prepare source | |
| cd repo-src | |
| #git checkout <branch-in-repo-src> # optional | |
| #git remote rm origin # optional | |
| git filter-branch --subdirectory-filter <directory-to-move> -- --all |
| // Source: https://codesandwich.github.io/overlapping_blanket_impls/ | |
| use std::convert::TryInto; | |
| // Dummy Trait | |
| trait Blanket<I> { | |
| fn blanket(&self) -> &'static str; | |
| } | |
| // Dummy Structs | |
| struct Numbers; |
| # clone an upstream repo | |
| git clone https://github.com/<user>/<project>.git && cd project | |
| git branch -m upstream-master | |
| git subtree split --prefix=<folder>/<subfolder> -b upstream-rebase | |
| git checkout upstream-rebase | |
| git remote rename origin upstream | |
| git remote add origin https://github.com/<my-account>/<my-project>.git | |
| git fetch origin | |
| git push -u origin upstream-rebase |
Clone the projects and mount them in a container:
git clone -b polkadot-v0.9.20-dev [email protected]:ajuna-network/Ajuna.git Ajuna
git clone [email protected]:ajuna-network/worker.git worker
cd worker && git checkout 0c40097 && cd ..Run compose with optinal logging (open http://localhost in your browser for app):
docker-compose up -d
docker logs ajuna-network_worker_1 -fBash into the worker container to start sending trusted calls:
--node-key, --bootnodes and the different ports used)