Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve 0.48 migration doc #5731

Merged
merged 1 commit into from
Mar 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $ export HOSTNAME=$(hostname)
$ export CDS_DOCKER_IMAGE=ovhcom/cds-engine:{{< param "version" "latest" >}}

# Get the latest version
$ docker pull ovhcom/cds-engine:latest
$ docker pull ovhcom/cds-engine:{{< param "version" "latest" >}}

# Create PostgreSQL database, redis and elasticsearch
$ docker-compose up --no-recreate -d cds-db cds-cache elasticsearch dockerhost
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ curl https://raw.githubusercontent.com/ovh/cds/{{< param "version" "master" >}}/
export HOSTNAME=$(hostname)
export CDS_DOCKER_IMAGE=ovhcom/cds-engine:{{< param "version" "latest" >}}

docker pull ovhcom/cds-engine:latest
docker pull ovhcom/cds-engine:{{< param "version" "latest" >}}
docker-compose up --no-recreate -d cds-db cds-cache elasticsearch dockerhost
sleep 3
docker-compose logs| grep 'database system is ready to accept connections'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
---
title: "Migrate 0.48.0"
title: "Migrate 0.48"
weight: 1
---

The release 0.48.0 introduced a new CDS service called CDN. This service is dedicated to receive and store CDS’s job logs.
## CDN service

The release 0.48 introduced a new CDS service called CDN. This service is dedicated to receive and store CDS’s job logs.

We created this service to be able to move out job's logs from CDS database to an object storage provider (more information about this list of providers [here]({{< relref "/docs/components/cdn.md">}})).

Expand Down Expand Up @@ -84,3 +86,16 @@ $ cdsctl admin cdn status
```

![CDN_STATUS](/images/cdn_status.png)

## Other changes
- The CDS migrate service is now able to manage SQL migrations on both API and CDN databases. Its configuration file format changed to add CDN database config.
Please use the following command to generate a config example and update your existing one to this new format.
```sh
$ engine config new migrate
```
- Workflow Run will now contains a snapshot of required secrets when starting. This allows changing a secret on CDS entities without breaking existing runs. A migration script will generate this snapshot for recent Workflow Runs (< 3 Months), others will be set to read only mode.
- CDS UI service will now proxy both API and CDN calls, please add the following lines in your existing config.
```sh
# CDN µService URL
cdnURL = "http://localhost:8089" # change this URL if needed to match CDN address
```