JAWSUG HPC: AWS Batch x OpenFoam HandsOn
https://jawsug-hpc.connpass.com/event/61919/
프로토타입: http://qiita.com/porcaro33/items/0b6cf3e2c2a0f88fc305
OpenFoam x AWS Batch Harson 환경
1. Build Infrastructure
Prerequisites
Create KeyPair
AWS Console -> EC2 -> Key Pairs -> Create Key Pair -> Enter key name -> Create
Run CloudFormation
AWS에서 Docker Image 구축 환경으로 Ubuntu 서버를 설정합니다.이 손잡이는 클라우드 포메이션에 필요한 환경을 구축한다.
https://raw.githubusercontent.com/porcaro33/openfoam-docker/master/aws_batch_base.yml
2. Docker Build and Push
Bastion Server
ssh -i <path_to_keypair> ubuntu@<IP_from_CF_OUTPUT>
aws --version
docker --version
cd /home/ubuntu/openfoam-docker
ll
docker build/push
sudo vi openfoam_run.sh
sudo docker build -t openfoam-batch:latest .
aws --region us-west-2 ecr get-login --no-include-email
Login Succeeded 가 표시되면 OK 입니다.
sudo docker tag openfoam-batch:latest <account-id>.dkr.ecr.us-west-2.amazonaws.com/openfoam-batch:latest
sudo docker push <account-id>.dkr.ecr.us-west-2.amazonaws.com/openfoam-batch:latest
3. Create Batch Environment
job_definition.json
sudo vi job_definition.json
compute_environment.json
sudo vi computing_env.json
job_queue.json
sudo vi job_queue.json
aws --region us-west-2 batch register-job-definition --cli-input-json file://job_definition.json
aws --region us-west-2 batch create-compute-environment --cli-input-json file://computing_env.json
aws --region us-west-2 batch create-job-queue --cli-input-json file://job_queue.json
5.Submit Jobs
./submit_batch.sh
EC2
6.Close this environment
* delete s3 objects
Reference
이 문제에 관하여(JAWSUG HPC: AWS Batch x OpenFoam HandsOn), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/porcaro33/items/733613de3a4b6653dc75텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)