Skip to content

Commit

Permalink
add default.json and link (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerLamTd authored Oct 25, 2024
1 parent df371a4 commit 6d5b7bf
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/README_Docker_and_RA.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ rm csr.pem
3. Curl the config file

```
curl -s https://raw.githubusercontent.com/intel/SGXDataCenterAttestationPrimitives/refs/tags/dcap_1.21_reproducible/QuoteGeneration/pccs/config/default.json > ~/.config/sgx-pccs/default.json
curl -s https://raw.githubusercontent.com/taikoxyz/raiko/refs/heads/main/docs/default.json > ~/.config/sgx-pccs/default.json
```

Make sure you've copied the `default.json` into the .config/sgx-pccs directory you created earlier. The `raiko` container will mount this as a volume. After copying the file, open it for editing and fill in the below listed parameters as recommended by [Intel's manual][pccs-cert-gen-config]:
Expand Down Expand Up @@ -282,11 +282,11 @@ docker compose build raiko
If you do not wish to build the image locally, you can optionally pull them from our registry.

```
docker pull us-docker.pkg.dev/evmchain/images/raiko:1.2.0
docker pull us-docker.pkg.dev/evmchain/images/raiko:1.3.0
docker pull us-docker.pkg.dev/evmchain/images/pccs:latest
```

If you do this step, you need to change your raiko docker-compose.yml to use this image. Navigate to `raiko/docker` and search for `raiko:latest` and change all instances to `raiko:1.2.0`.
If you do this step, you need to change your raiko docker-compose.yml to use this image. Navigate to `raiko/docker` and search for `raiko:latest` and change all instances to `raiko:1.3.0`.

You can continue on with the following steps as usual after this.

Expand Down Expand Up @@ -326,7 +326,7 @@ You've now prepared your machine for running Raiko through Docker. Now, you need
## On-Chain RA

1. Clone [taiko-mono](https://github.com/taikoxyz/taiko-mono/tree/main), checkout the appropriate tag (protocol-v1.9.0 for hekla) and navigate to the protocol directory.
1. Clone [taiko-mono](https://github.com/taikoxyz/taiko-mono/tree/main), checkout the appropriate tag and navigate to the protocol directory.

```
git clone https://github.com/taikoxyz/taiko-mono.git
Expand Down
58 changes: 58 additions & 0 deletions docs/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"HTTPS_PORT" : 8081,
"hosts" : "127.0.0.1",
"uri": "https://api.trustedservices.intel.com/sgx/certification/v4/",
"ApiKey": "",
"proxy" : "",
"RefreshSchedule": "0 0 1 * * *",
"UserTokenHash" : "",
"AdminTokenHash" : "",
"CachingFillMode" : "LAZY",
"OPENSSL_FIPS_MODE" : false,
"LogLevel" : "info",
"DB_CONFIG" : "sqlite",
"sqlite" : {
"database" : "database",
"username" : "username",
"password" : "password",
"options" : {
"host": "localhost",
"dialect": "sqlite",
"pool": {
"max": 5,
"min": 0,
"acquire": 30000,
"idle": 10000
},
"define": {
"freezeTableName": true
},
"logging" : false,
"storage": "pckcache.db"
}
},
"mysql" : {
"database" : "pckcache",
"username" : "root",
"password" : "mypass",
"options" : {
"host": "localhost",
"port": "3306",
"dialect": "mysql",
"pool": {
"max": 5,
"min": 0,
"acquire": 30000,
"idle": 10000
},
"define": {
"freezeTableName": true
},
"logging" : false
},
"ssl":{
"required": false,
"ca":"/if_required/path/to/your_ssl_ca"
}
}
}

0 comments on commit 6d5b7bf

Please sign in to comment.