Skip to content

Commit 2769c18

Browse files
committed
compute: add a template conf directory
1 parent 5d9a838 commit 2769c18

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/compute/compute/dev/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ The scripts here are helpful for developing the compute\-server manager, which i
22

33
1. Create the directory /tmp/user and make sure you can read it. Maybe even mount it from the target project.
44

5-
2. Make the conf/ directory here, with the same files as on /cocalc/conf in an actual compute\-server, except:
6-
- replace api_server by something like `http://localhost:5000/6659c2e3-ff5e-4bb4-9a43-8830aa951282/port/5000`, where the port is what you're using for your dev server and the project id is of your dev server. The point is that we're going to connect directly without going through some external server.
7-
- api_key: the one from an actual server will get deleted when you turn that server off, so make a different project level api key.
5+
2. The conf/ directory here has the same files as on /cocalc/conf in an actual compute\-server, except:
6+
- replace api_server by something like `http://localhost:5000/6659c2e3-ff5e-4bb4-9a43-8830aa951282/port/5000`, where the port is what you're using for your dev server and the project id is of your dev server. The point is that we're going to connect directly without going through some external server.
7+
- api_key: the one from an actual server will get deleted when you turn that server off, so make a different project level api key.
88

9-
This is obviously very confusing, and when developing this it was 10x worse... Maybe you'll be confused for 2 hours instead of 2 days.
9+
Type `tar xvf conf.tar` to get a template for the conf directory. You will need to change the contents
10+
of all the files you get, as mentioned above!
11+
12+
This is potentially confusing, and when developing this it was 10x worse... Maybe you'll be confused for 2 hours instead of 2 days.
1013

1114
3. Run each of the following four shell scripts in different terminals, in order.
1215

src/compute/compute/dev/conf.tar

10 KB
Binary file not shown.

0 commit comments

Comments
 (0)