Skip to content

Commit 85111c0

Browse files
committed
docs(SRV): add note on external container registries MTA-5165
1 parent fdc5ad8 commit 85111c0

File tree

7 files changed

+84
-9
lines changed

7 files changed

+84
-9
lines changed

faq/containerregistry.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ Scaleway Container Registry is a fully managed mutualized Container Registry, de
1616
You can store any docker container image on the Namespace and it is possible to set the visibility of each image towards your needs. It can either be private or public.
1717
The Service is currently available in our `nl-ams` (Amsterdam, The Netherlands), `fr-par` (Paris, France), and `pl-waw` (Poland, Warsaw) Availability Zones.
1818

19+
## How am I billed for Scaleway Container Registry?
20+
21+
Scaleway Container Registry is billed based on stored images size, and outgoing data transfer.
22+
23+
| | Stored Images | Outgoing data transfer | Incoming data transfert |
24+
|----------------|-----------------|--------------------------------------------------|-------------------------|
25+
| Private images | €0.027/GB/month | Inter-regional: €0.033/GB - Intra-regional: free | Free |
26+
| Public images | Free up to 75GB | Inter-regional: free - Intra-regional: free | Free |
27+
28+
<Message type="note">
29+
- Inter-regional traffic: AMS ↔ PAR
30+
- Intra-regional traffic: PAR ↔ PAR, or AMS ↔ AMS
31+
</Message>
32+
1933
## Why do I get a message that the namespace is not available?
2034

2135
Each namespace has a unique name in each Availability Zone. If the namespace's name is already taken, it will no longer be available.

faq/serverless-containers.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,28 @@ Ensure that your code avoids heavy computations or long-running initialization a
9797

9898
Refer to our dedicated page about [Serverless Containers limitations and configuration restrictions](/serverless/containers/reference-content/containers-limitations/) for more information.
9999

100+
# Where should I host my container images for deployment ?
101+
102+
[Scaleway's Container Registry](/containers/container-registry/) allows for a seamless integration with Serverless Containers and Jobs at a [competitive price](/faq/containerregistry/#how-am-i-billed-for-scaleway-container-registry).
103+
Serverless products support External public registries, but we do not recommend using it due to uncontrolled rate limiting which can lead to failures when starting resources, unexpected conditions, and pricing changes.
104+
105+
# How can I copy an image from an external registry to Scaleway Container Registry?
106+
107+
You can copy an image from an external registry by [logging in to the Scaleway Container Registry](/containers/container-registry/how-to/connect-docker-cli/) using the Docker CLI, and by copying the image as shown below:
108+
109+
```sh
110+
docker pull alpine:latest
111+
docker tag alpine:latest rg.fr-par.scw.cloud/example/alpine:latest
112+
docker push rg.fr-par.scw.cloud/example/alpine:latest
113+
```
114+
115+
Alternatively, you can use tools such as Skopeo to copy the image:
116+
117+
```sh
118+
skopeo login rg.fr-par.scw.cloud -u nologin -p $SCW_SECRET_KEY
119+
skopeo copy --override-os linux docker://docker.io/alpine:latest docker://rg.fr-par.scw.cloud/example/alpine:latest
120+
```
121+
100122
## Can I whitelist the IPs of my containers?
101123

102124
Serverless Containers does not yet support Private Networks. However, you can use the Scaleway IP ranges defined at [https://www.scaleway.com/en/peering/](https://www.scaleway.com/en/peering/) on Managed Databases and other products that allow IP filtering.

faq/serverless-jobs.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,28 @@ Scaleway Serverless Jobs is part of the Scaleway ecosystem, it can therefore be
9494

9595
When starting a job, you can use contextual options to define the number of jobs to execute at the same time. Refer to the [dedicated documentation](/serverless/jobs/how-to/run-job/#how-to-run-a-job-with-contextual-options) for more information.
9696

97+
# Where should I host my jobs images for deployment ?
98+
99+
[Scaleway's Container Registry](/containers/container-registry/) allows for a seamless integration with Serverless Containers and Jobs at a [competitive price](/faq/containerregistry/#how-am-i-billed-for-scaleway-container-registry).
100+
Serverless products support External public registries, but we do not recommend using it due to uncontrolled rate limiting which can lead to failures when starting resources, unexpected conditions, and pricing changes.
101+
102+
# How can I copy an image from an external registry to Scaleway Container Registry?
103+
104+
You can copy an image from an external registry by [logging in to the Scaleway Container Registry](/containers/container-registry/how-to/connect-docker-cli/) using the Docker CLI, and by copying the image as shown below:
105+
106+
```sh
107+
docker pull alpine:latest
108+
docker tag alpine:latest rg.fr-par.scw.cloud/example/alpine:latest
109+
docker push rg.fr-par.scw.cloud/example/alpine:latest
110+
```
111+
112+
Alternatively, you can use tools such as Skopeo to copy the image:
113+
114+
```sh
115+
skopeo login rg.fr-par.scw.cloud -u nologin -p $SCW_SECRET_KEY
116+
skopeo copy --override-os linux docker://docker.io/alpine:latest docker://rg.fr-par.scw.cloud/example/alpine:latest
117+
```
118+
97119
## How can I configure access to a Private Network?
98120

99121
Scaleway Serverless Jobs does not currently support Scaleway VPC or Private Networks, though this feature is under development.

serverless/containers/how-to/deploy-a-container-from-external-container-registry.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ A container is a package of software that includes all dependencies: code, runti
2020

2121
For now, Serverless Containers only supports public images.
2222

23+
<Message type="important">
24+
[Scaleway's Container Registry](/containers/container-registry/) allows for a seamless integration with Serverless Containers and Jobs at a [competitive price](/faq/containerregistry/#how-am-i-billed-for-scaleway-container-registry).
25+
Serverless products support external public registries (such as [Docker Hub](https://hub.docker.com/search?q=)), but we do not recommend using them due to uncontrolled rate limiting, which can lead to failures when starting resources, unexpected conditions, and pricing changes.
26+
</Message>
27+
2328
<Macro id="requirements" />
2429

2530
- A Scaleway account logged into the [console](https://console.scaleway.com)
@@ -33,7 +38,7 @@ For now, Serverless Containers only supports public images.
3338
4. Complete the following steps in the wizard:
3439
- Select the **External** container registry.
3540
- Enter the public container **image URL** provided by the external registry. For example:
36-
- `nginx:latest` to deploy the latest nginx image from [Docker Hub](https://hub.docker.com/search?q=)
41+
- `nginx:latest` to deploy the latest nginx image from [Docker Hub](https://hub.docker.com/)
3742
- `ghcr.io/namespace/image` to deploy an image from [GitHub Container Registry](https://github.com/features/packages)
3843
- Choose the [port](/serverless/containers/concepts/#port) your container is listening on. We recommend configuring your container to listen on the `$PORT` environment variable.
3944
- Choose a **name** for your container and, optionally, a **description**. The name must only contain alphanumeric characters and dashes.

serverless/containers/quickstart.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You can deploy a container from the Scaleway Container Registry or any other pub
3434
If you have no existing Serverless Containers resources in your current Project, the creation process will guide you through the creation of a namespace, and then a container.
3535

3636
<Message type="note">
37-
Make sure that you have [created a Container Registry namespace](/containers/container-registry/how-to/create-namespace/) and [pushed the latest NGINX Docker image](/containers/container-registry/how-to/push-images/) to it.
37+
Make sure that you have [created a Container Registry namespace](/containers/container-registry/how-to/create-namespace/) and [pushed the latest NGINX Docker image](/containers/container-registry/how-to/push-images/) (or any other image) to it.
3838
</Message>
3939

4040
1. Click **Containers** in the **Serverless** section of the side menu. The containers page displays.
@@ -70,6 +70,11 @@ If you have no existing Serverless Containers resources in your current Project,
7070

7171
If you have no existing Serverless Containers resources in your current Project, the creation process will guide you through the creation of a namespace, and then a container.
7272

73+
<Message type="important">
74+
[Scaleway's Container Registry](/containers/container-registry/) allows for a seamless integration with Serverless Containers and Jobs at a [competitive price](/faq/containerregistry/#how-am-i-billed-for-scaleway-container-registry).
75+
Serverless products support External public registries, but we do not recommend using it due to uncontrolled rate limiting which can lead to failures when starting resources, unexpected conditions, and pricing changes.
76+
</Message>
77+
7378
1. Click **Containers** in the **Serverless** section of the side menu. The containers page displays.
7479
2. Click **Deploy container**. The containers namespace creation wizard displays.
7580
3. Complete the following steps in the wizard:

serverless/jobs/how-to/create-job-from-external-registry.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ categories:
1414
- jobs
1515
---
1616

17-
Scaleway allows you to create jobs from external public [container registries](/containers/container-registry/concepts/#registry), such as Docker Hub, AWS container registries, GitLab container registry, etc.
17+
Scaleway Serverless Jobs allows you to create jobs from external public [container registries](/containers/container-registry/concepts/#registry), such as Docker Hub, AWS container registries, GitLab container registry, etc.
1818

19-
<Message type="note">
20-
Private container registries are currently not supported.
19+
Private container registries are currently not supported.
20+
21+
<Message type="important">
22+
[Scaleway's Container Registry](/containers/container-registry/) allows for a seamless integration with Serverless Containers and Jobs at a [competitive price](/faq/containerregistry/#how-am-i-billed-for-scaleway-container-registry).
23+
Serverless products support external public registries (such as [Docker Hub](https://hub.docker.com/search?q=)), but we do not recommend using them due to uncontrolled rate limiting, which can lead to failures when starting resources, unexpected conditions, and pricing changes.
2124
</Message>
2225

2326
<Macro id="requirements" />

serverless/jobs/quickstart.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,17 @@ This page explains how to create a job definition with the latest Alpine Linux i
2626

2727
- A Scaleway account logged into the [console](https://console.scaleway.com)
2828
- [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
29+
- [Created a Container Registry namespace](/containers/container-registry/how-to/create-namespace/) and [pushed a container image](/containers/container-registry/how-to/push-images/) to it
2930

3031
## How to create a job definition
3132

32-
To keep this quickstart simple, we will create a job from a public external registry. To create a job from the Scaleway Container Registry, refer to [this documentation](/serverless/jobs/how-to/create-job-from-scaleway-registry/).
33-
3433
1. Click **Jobs** in the **Serverless** section of the side menu. The Jobs page displays.
3534

3635
2. Click **+ Create job**.
3736

3837
3. Complete the following steps in the wizard:
39-
- Select the **External** container registry.
40-
- Enter `docker.io/library/alpine:latest` in the image URL field.
38+
- Select the **Scaleway** Container Registry.
39+
- Select the appropriate **Registry namespace** from the drop-down list, then select the desired **container** and **tag**.
4140
- Enter a **name** or use the automatically generated one. The name can only contain lowercase alphanumeric characters and dashes.
4241
- Enter a **description** (optional).
4342
- Select the region in which your job will be created.
@@ -51,6 +50,11 @@ To keep this quickstart simple, we will create a job from a public external regi
5150
</Message>
5251
6. Click **Create a job definition** to finish.
5352

53+
<Message type="important">
54+
[Scaleway's Container Registry](/containers/container-registry/) allows for a seamless integration with Serverless Containers and Jobs at a [competitive price](/faq/containerregistry/#how-am-i-billed-for-scaleway-container-registry).
55+
Serverless products support external public registries (such as [Docker Hub](https://hub.docker.com/search?q=)), but we do not recommend using them due to uncontrolled rate limiting, which can lead to failures when starting resources, unexpected conditions, and pricing changes.
56+
</Message>
57+
5458
## How to run a job
5559

5660
1. Click **Jobs** in the **Serverless** section of the side menu. The jobs page displays.

0 commit comments

Comments
 (0)