You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/encode-videos-using-serverless-jobs/index.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ This tutorial demonstrates the process of encoding videos retrieved from Object
21
21
22
22
- A Scaleway account logged into the [console](https://console.scaleway.com)
23
23
-[Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization
24
-
- An [Object Storage bucket](/storage/object/how-to/create-a-bucket/)
24
+
- An [Object Storage bucket](/storage/object/how-to/create-a-bucket/)
25
25
- A valid [API key](/identity-and-access-management/iam/how-to/create-api-keys/)
@@ -72,7 +72,7 @@ The initial step involves defining a Docker image for interacting with the S3 Ob
72
72
This Dockerfile uses `linuxserver/ffmpeg` as a base image bundled with FFMPEG along with a variety of encoding codecs and installs [MinIO](https://min.io/) as a command-line S3 client to copy files over Object Storage.
73
73
74
74
3. Build and [push the image](/containers/container-registry/how-to/push-images/) to your Container Registry:
75
-
```
75
+
```bash
76
76
docker build . -t <registry and image name>
77
77
docker push <registry and image name>
78
78
```
@@ -125,7 +125,7 @@ Once the run status is **Succeeded**, the encoded video can be found in your S3
125
125
<Messagetype="note">
126
126
Your job can also be triggered through the [Scaleway API](https://www.scaleway.com/en/developers/api/serverless-jobs/#path-job-definitions-run-an-existing-job-definition-by-its-unique-identifier-this-will-create-a-new-job-run) using the same environment variables:
Copy file name to clipboardExpand all lines: tutorials/strapi-app-serverless-containers-sqldb/index.mdx
+34-34Lines changed: 34 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,11 +42,11 @@ You can either deploy your application:
42
42
2. Run the command below to make sure the environment variables are properly set:
43
43
44
44
```sh
45
-
scw info
45
+
scw info
46
46
```
47
47
48
48
This command displays your access key and secret key in the last two lines of the output. The `ORIGIN` column should display `env (SCW_ACCESS_KEY)` and `env (SCW_SECRET_KEY)`, and not `default profile`.
49
-
49
+
50
50
```bash
51
51
KEY VALUE ORIGIN
52
52
(...)
@@ -77,16 +77,16 @@ You can either deploy your application:
77
77
&& psql -h $DATABASE_HOST -p $DATABASE_PORT \
78
78
-d $DATABASE_NAME -U $DATABASE_USERNAME
79
79
```
80
-
An input field with the name of your database should display:
80
+
An input field with the name of your database should display:
81
81
```
82
82
psql (15.3, server 16.1 (Debian 16.1-1.pgdg120+1))
@@ -189,12 +189,12 @@ You can either deploy your application:
189
189
├── jsconfig.json
190
190
├── package.json
191
191
├── README.md
192
-
└── yarn.lock
192
+
└── yarn.lock
193
193
```
194
194
195
195
5. Build your application container:
196
196
```bash
197
-
docker build -t my-strapi-blog .
197
+
docker build -t my-strapi-blog .
198
198
```
199
199
<Messagetype="tip">
200
200
The docker build image process can take a few minutes, particularly during the `npm install` step, since Strapi requires around 1 GB of node modules to be built.
@@ -281,7 +281,7 @@ You can either deploy your application:
281
281
```
282
282
When the status appears as `ready`, you can access the Strapi Administration Panel via your browser.
283
283
</Message>
284
-
284
+
285
285
3. Copy the endpoint URL displayed next to the `DomainName` property, and paste it into your browser. The main Strapi page displays. Click "Open the administration" or add `/admin` to your browser URL to access the Strapi Administration Panel.
286
286
287
287
4. (Optional) You can check that Strapi APIs are working with the following command, or by accessing `https://{container_url}/api/articles` in your browser:
@@ -319,7 +319,7 @@ However, your Strapi container currently connects to your database with your [us
319
319
320
320
To secure your deployment, we will now add a dedicated [IAM application](/identity-and-access-management/iam/concepts/#application), give it the minimum required permissions, and provide its credentials to your Strapi container.
321
321
322
-
1. Run the following command to create an [IAM application](/identity-and-access-management/iam/concepts/#application) and export it as a variable:
322
+
1. Run the following command to create an [IAM application](/identity-and-access-management/iam/concepts/#application) and export it as a variable:
6. Refresh your browser page displaying the Strapi Administration Panel. An updated version displays.
367
+
6. Refresh your browser page displaying the Strapi Administration Panel. An updated version displays.
368
368
369
369
You have now deployed a full serverless Strapi blog example!
370
-
370
+
371
371
## Going further with containers
372
372
373
373
- Inspect your newly created resources in the Scaleway console:
@@ -399,11 +399,11 @@ To secure your deployment, we will now add a dedicated [IAM application](/identi
399
399
2. Run the command below to make sure the environment variables are properly set:
400
400
401
401
```sh
402
-
scw info
402
+
scw info
403
403
```
404
404
405
405
This command displays your access_key and secret_key in the two last lines of the output. The `ORIGIN` column should display `env (SCW_ACCESS_KEY)` and `env (SCW_SECRET_KEY)`, and not `default profile`.
406
-
406
+
407
407
```bash
408
408
KEY VALUE ORIGIN
409
409
(...)
@@ -512,12 +512,12 @@ To secure your deployment, we will now add a dedicated [IAM application](/identi
512
512
├── jsconfig.json
513
513
├── package.json
514
514
├── README.md
515
-
└── yarn.lock
515
+
└── yarn.lock
516
516
```
517
517
518
518
8. Build your application container:
519
519
```bash
520
-
docker build -t my-strapi-blog .
520
+
docker build -t my-strapi-blog .
521
521
```
522
522
<Messagetype="tip">
523
523
The docker build image process can take a few minutes, particularly during the `npm install` step since Strapi requires around 1 GB of node modules to be built.
@@ -545,15 +545,15 @@ To secure your deployment, we will now add a dedicated [IAM application](/identi
// Output as an example, you can give this string to your application
678
678
value = format("postgres://%s:%s@%s",
@@ -682,7 +682,7 @@ To secure your deployment, we will now add a dedicated [IAM application](/identi
682
682
)
683
683
sensitive = true
684
684
}
685
-
685
+
686
686
output "container_url" {
687
687
// Output as an example, you can give this string to your application
688
688
value = scaleway_container.main.domain_name
@@ -718,7 +718,7 @@ The Terraform file creates several resources:
718
718
```
719
719
Edit the `ADMIN_EMAIL` and `ADMIN_PASSWORD` values with your own email and password. Optionally, you can also edit `ADMIN_FIRSTNAME` and `ADMIN_LASTNAME` values to change the default admin first and last name.
720
720
<Messagetype="note">
721
-
Strapi admin password requires at least 8 characters including one uppercase, one lowercase, one number, and one special character.
721
+
Strapi admin password requires at least 8 characters including one uppercase, one lowercase, one number, and one special character.
722
722
If the admin password or email does not meet the requirements, the container will not start.
723
723
</Message>
724
724
@@ -813,7 +813,7 @@ Once you are done, run the following command to stop all your resources:
813
813
-**Fine-tune deployment options** such as autoscaling, targeted regions, and more. You can find more information by typing `scw container deploy --help` in your terminal, or by referring to the [dedicated documentation](/serverless/containers/how-to/manage-a-container/)
814
814
815
815
- Create a secondary production environment by duplicating your built container, building it in `NODE_ENV=production` environment, running `npm run start`, and plugging it onto another **Serverless SQL Database**. For instance, this will allow you to edit content-types which is not possible in production.
816
-
816
+
817
817
## Troubleshooting
818
818
819
819
If you happen to encounter any issues, first check that you meet all the requirements.
@@ -827,7 +827,7 @@ If you happen to encounter any issues, first check that you meet all the require
827
827
UpdatedAt 1 year ago
828
828
Description -
829
829
```
830
-
<Messagetype="tip">
830
+
<Messagetype="tip">
831
831
You can also find and compare your Project and Organization ID in the [Scaleway console settings](https://console.scaleway.com/project/settings).
832
832
</Message>
833
833
- You have **Docker Engine** installed. Running the `docker -v` command in a terminal should display your currently installed docker version:
0 commit comments