Skip to content

Commit ccd65e3

Browse files
authored
Merge branch 'main' into setup_aws
2 parents d431057 + 0760200 commit ccd65e3

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ It also adds logging and alarms via CloudWatch, helping the user troubleshoot ru
3333
Edit the config.py file with all the relevant information for your job.
3434
Then, start creating the basic AWS resources by running the following script:
3535

36-
$ python3 run.py setup
36+
python3 run.py setup
3737

3838
This script initializes the resources in AWS.
3939
Notice that the docker registry is built separately and you can modify the worker code to build your own.
@@ -42,7 +42,7 @@ Any time you modify the worker code, you need to update the docker registry usin
4242
### Step 2
4343
After the first script runs successfully, the job can now be submitted to with the following command:
4444

45-
$ python3 run.py submitJob files/exampleJob.json
45+
python3 run.py submitJob files/exampleJob.json
4646

4747
Running the script uploads the tasks that are configured in the json file.
4848
You have to customize the exampleJob.json file with information that make sense for your project.
@@ -54,16 +54,16 @@ This code starts a fleet of spot EC2 instances which will run the worker code.
5454
The worker code is encapsulated in Docker containers, and the code uses ECS services to inject them in EC2.
5555
All this is automated with the following command:
5656

57-
$ python3 run.py startCluster files/exampleFleet.json
57+
python3 run.py startCluster files/exampleFleet.json
5858

5959
After the cluster is ready, the code informs you that everything is setup, and saves the spot fleet identifier in a file for further reference.
6060

6161
### Step 4
6262
When the cluster is up and running, you can monitor progress using the following command:
6363

64-
$ python3 run.py monitor files/APP_NAMESpotFleetRequestId.json
64+
python3 run.py monitor files/APP_NAMESpotFleetRequestId.json
6565

66-
The file APP_NAMESpotFleetRequestId.json is created after the cluster is setup in step 3.
66+
The file `APP_NAMESpotFleetRequestId.json` is created after the cluster is setup in [step 3](#step-3).
6767
It is important to keep this monitor running if you want to automatically shutdown computing resources when there are no more tasks in the queue (recommended).
6868

6969
See our [full documentation](https://distributedscience.github.io/Distributed-Something) for more information about each step of the process.

files/exampleFleet_us-east-1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"LaunchSpecifications": [
66
{
77
"ImageId": "ami-fad25980",
8-
"KeyName": "your_key_file_name",
8+
"KeyName": "your-key-file",
99
"IamInstanceProfile": {
1010
"Arn": "arn:aws:iam::XXXXXXXXXXXX:instance-profile/ecsInstanceRole"
1111
},

files/exampleFleet_us-west-2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"LaunchSpecifications": [
66
{
77
"ImageId": "ami-c9c87cb1",
8-
"KeyName": "your_key_file_name",
8+
"KeyName": "your-key-file",
99
"IamInstanceProfile": {
1010
"Arn": "arn:aws:iam::XXXXXXXXXXXX:instance-profile/ecsInstanceRole"
1111
},

worker/Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ FROM someuser/somedocker:sometag
1212
USER root
1313
RUN apt-get -y update && \
1414
apt-get -y upgrade && \
15-
apt-get -y install \
16-
automake \
17-
autotools-dev \
18-
g++ \
19-
git \
20-
libcurl4-gnutls-dev \
21-
libfuse-dev \
22-
libssl-dev \
23-
libxml2-dev \
24-
make pkg-config \
25-
sysstat \
26-
curl
15+
apt-get -y install \
16+
automake \
17+
autotools-dev \
18+
g++ \
19+
git \
20+
libcurl4-gnutls-dev \
21+
libfuse-dev \
22+
libssl-dev \
23+
libxml2-dev \
24+
make pkg-config \
25+
sysstat \
26+
curl
2727

2828
WORKDIR /usr/local/src
2929
RUN git clone https://github.com/s3fs-fuse/s3fs-fuse.git

0 commit comments

Comments
 (0)