Skip to content

Commit 7957626

Browse files
committed
Add languages to code blocks
1 parent c68c3d0 commit 7957626

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ assignees: ''
3939

4040
[If applicable, the stack trace which shows the error. Find it with `cortex logs <resource name>`, or use `kubectl get pods -n cortex` and use the name of the failed pod in `kubectl logs <pod name> -n cortex`]
4141

42-
```
42+
```text
4343
<paste stack trace here>
4444
```
4545

docs/deployments/request-handlers.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def post_inference(prediction, metadata):
6767
"class_index": predicted_class_id,
6868
"probabilities": probabilites,
6969
}
70-
7170
```
7271

7372
## Pre-installed packages
@@ -89,7 +88,7 @@ You can install additional PyPI packages and import your own Python packages. Se
8988

9089
A Cortex logger can be imported and used in request handlers.
9190

92-
```
91+
```python
9392
from cortex.lib.log import get_logger
9493

9594
logger = get_logger()

docs/deployments/system-packages.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ The example below demonstrates how to create a custom Docker image and configure
1010

1111
Create a Dockerfile to build your custom image:
1212

13-
```
13+
```bash
1414
mkdir my-api && cd my-api && touch Dockerfile
1515
```
1616

1717
Specify the base image you want to override followed by your customizations. The sample Dockerfile below inherits from Cortex's ONNX Serving image and installs the `tree` system package.
1818

19-
```
19+
```dockerfile
2020
# Dockerfile
2121

2222
FROM cortexlabs/onnx-serve
@@ -30,7 +30,7 @@ RUN apt-get update \
3030

3131
Create a repository to store your image:
3232

33-
```
33+
```bash
3434
# We create a repository in AWS ECR
3535

3636
export AWS_ACCESS_KEY_ID="***"
@@ -44,7 +44,7 @@ aws ecr create-repository --repository-name=org/my-api --region=us-west-2
4444

4545
Build the image based on your Dockerfile and push to its repository in AWS ECR:
4646

47-
```
47+
```bash
4848
docker build . -t org/my-api:latest -t <repository_url>:latest
4949

5050
docker push <repository_url>:latest
@@ -54,7 +54,7 @@ docker push <repository_url>:latest
5454

5555
Set the environment variable of the image to your `my-api` image repository url:
5656

57-
```
57+
```bash
5858
export CORTEX_IMAGE_ONNX_SERVE="<repository_url>:latest"
5959

6060
./cortex.sh update
@@ -64,7 +64,7 @@ export CORTEX_IMAGE_ONNX_SERVE="<repository_url>:latest"
6464

6565
Cortex will use your image to launch ONNX serving workloads. You will have access to any customizations you made:
6666

67-
```
67+
```python
6868
# request_handler.py
6969

7070
import subprocess

0 commit comments

Comments
 (0)