## Docker folding@home conatiner
Debian stretch imagine with folding at home set to run as part of the containers team.
You can override all settings by adding the flags to the end of the docker run command:
```
"--user=YOUR_NAME", "--team=TEAM_NUMBER", "--gpu=false", "--smp=true"
```
Currently COVID19 is taking prioroty so its a great cause that we all need right now.
## Running manually
To run simply type:
```
docker run -d -p7396:7396 richarvey/foldingathome:latest
```
You can get to the webUI on [http://localhost:7396](http://localhost:7396)
## Deploying on ECS/Fargate Using CDK
We've included CDK fiels to help you deploy on AWS in fargate, check out [https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html](https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html) to get setup.
The `cdk.json` file tells the CDK Toolkit how to execute your app.
Once installed run:
```
cd cdk
npm install
npm run build
cdk deploy
```
### Useful commands
* `npm install -g aws-cdk` install the aws cdk
* `npm install` install all required modules
* `npm run build` compile typescript to js
* `cdk diff` compare deployed stack with current state
* `cdk synth` emits the synthesized CloudFormation template
* `cdk deploy` deploy this stack to your default AWS account/region
![Running tasks in fargate](img/ink.png)
### Manually switching to SPOT (save some money)
Get your account id:
```
aws sts get-caller-identity
```
Using the aws CLI and changing the ARN / region:
```
aws ecs put-cluster-capacity-providers --cluster arn:aws:ecs:eu-west-1:YOUR_ACCOUNT_ID:cluster/CdkfoldingStack-FoldingClusterYOUR_CLUSTER_UID --capacity-providers FARGATE FARGATE_SPOT --default-capacity-provider-strategy capacityProvider=FARGATE_SPOT,weight=100 --region eu-west-1
```
## Running on Kubernetes
To run on kubernetes in AWS, GCP, Azure and other simply run the following:
```
cd k8s
kubectl create namespace dev
kubectl apply -f foldingathome-deployment.yaml
```
## GPU Support on EKS
You'll need [eksctl](https://eksctl.io) installed for the following instructions
First of all build your EKS cluster with p2 instances
```
eksctl create cluster --node-type=p2.xlarge
```
Now enable the NVIDA drivers
```
kubectl apply -f https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/master/nvidia-device-plugin.yml
```
Now launch the deployment:
```
cd k8s
kubectl create namespace dev
kubectl apply -f foldingathome-GPU-deployment.yaml
```
没有合适的资源?快使用搜索试试~ 我知道了~
FoldingAtHome:#COVID19的容器化Folding @ home客户端-源码
共11个文件
json:3个
yaml:2个
ts:2个
需积分: 5 0 下载量 158 浏览量
2021-01-31
15:14:19
上传
评论
收藏 97KB ZIP 举报
温馨提示
码头工人折叠@家庭conatiner Debian舒展想象,在家中折叠可以作为容器团队的一部分来运行。 您可以通过在docker run命令的末尾添加标志来覆盖所有设置: "--user=YOUR_NAME", "--team=TEAM_NUMBER", "--gpu=false", "--smp=true" 目前,COVID19处于优先地位,因此这是我们大家现在都需要的重要原因。 手动运行 要运行,只需键入: docker run -d -p7396:7396 richarvey/foldingathome:latest 您可以在上访问webUI 使用CDK在ECS / Fargate上部署 我们已包含CDK字段以帮助您在Fargate中进行AWS部署,请访问进行设置。 cdk.json文件告诉CDK Toolkit如何执行您的应用程序。 安装完成后运行: cd cdk npm install npm run build cdk deploy 有用的命令 npm install -g aws-cdk安装aws cdk npm install安装所有必需的模块 npm r
资源详情
资源评论
资源推荐
收起资源包目录
FoldingAtHome-master.zip (11个子文件)
FoldingAtHome-master
img
ink.png 109KB
Dockerfile 1KB
Dockerfile-GPU 2KB
k8s
foldingathome-GPU-deployment.yaml 611B
foldingathome-deployment.yaml 565B
README.md 2KB
cdk
bin
cdkfolding.ts 229B
package.json 776B
tsconfig.json 596B
cdk.json 45B
lib
cdkfolding-stack.ts 4KB
共 11 条
- 1
温暖如故
- 粉丝: 22
- 资源: 4642
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0