Skip to content

Commit

Permalink
fix: revise run scripts guide (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
guiafonso-ol committed Sep 9, 2024
1 parent 2cb286b commit d42f89a
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,21 @@ You can find the download links to the respective architectures on [Azion CLI's
<Fragment slot="tab.api">API</Fragment>

<Fragment slot="panel.console">
1. Access [Azion Console](/en/documentation/products/guides/how-to-access-azion-console/) > **Edge Services**.
2. Click on the **+ Service** button.
3. Name this service `Azion CLI Installation`.
4. Enter the variables and values for the resource, if necessary.
5. Set the status as **Active**.
6. Click the **Save** button.
1. Access [Azion Console](/en/documentation/products/guides/how-to-access-azion-console/).
2. On the upper-left corner of the page, open the **Products menu**, represented by three horizontal lines, and then select **Edge Services**.
3. Click on the **+ Service** button.
4. Name this service `Azion CLI Installation`.
5. Enter the variables and values for the resource, if necessary.
6. Set the status as **Active**.
7. Click the **Save** button.
</Fragment>

<Fragment slot="panel.rtm">
1. Access [Real-Time Manager (RTM)](https://manager.azion.com/) > **Edge Libraries** > **Edge Services**.
2. Click on the **Add Service** button.
3. Name this service `Azion CLI Installation`.
4. Go back and, on the list of services, set the status as **active**.
1. Access [Real-Time Manager (RTM)](https://manager.azion.com/).
2. On the upper-left corner of the page, open the **Products menu**, represented by three horizontal lines, and then select **Edge Services**.
3. Click on the **Add Service** button.
4. Name this service `Azion CLI Installation`.
5. Go back and, on the list of services, set the new service's status as **active**.
</Fragment>

<Fragment slot="panel.api">
Expand Down Expand Up @@ -132,14 +134,12 @@ If an edge service isn't set as active, it isn't available for binding to an edg
<Fragment slot="tab.api">API</Fragment>

<Fragment slot="panel.console">
1. On the upper-left corner of the page, open the **Products menu**, represented by three horizontal lines, and then select **Edge Services**.
2. Select the edge service you've just created, called `Azion CLI Installation`.
3. Go to the **Resources** tab.
4. Click on **+ Resource**.
5. Enter `/scripts/install-cli/` in the **Path** field.
6. Choose the type **Shell Script**.
7. Choose the trigger **Install**.
8. Add the following content to the **Content** block:
1. Inside the service you've just created, called `Azion CLI Installation`, go to the **Resources** tab.
2. Click on **+ Resource**.
3. Enter `/scripts/install-cli` in the **Path** field.
4. Choose the type **Shell Script**.
5. Choose the trigger **Install**.
6. Add the following content to the **Content** block:

```bash
#!/bin/bash
Expand All @@ -160,20 +160,18 @@ rm /tmp/azion.deb
echo "Installation completed successfully"
```

9. Click the **Save** button.
7. Click the **Save** button.

This script will install the Azion binary in the following path: `/usr/local/bin`
</Fragment>

<Fragment slot="panel.rtm">
1. On the upper-left corner of the page, open the **Products menu**, represented by three horizontal lines, and then select **Edge Libraries** > **Edge Services**.
2. Select the edge service you've just created, called `Azion CLI Installation`.
3. Go to the **Resources** tab.
4. Click on **Add Resource**.
5. Enter `/scripts/install-cli/` in the filepath field.
6. Choose the type **Shell Script**.
7. Choose the trigger **Install**.
8. Add the following content to the content block:
1. On the services list, select the edge service you've just created, called `Azion CLI Installation`.
2. Go to the **Resources** tab and click on **Add Resource**.
3. Enter `/scripts/install-cli` in the **Filepath** field.
4. Choose the type **Shell Script**.
5. Choose the trigger **Install**.
6. Add the following content to the content block:

```bash
#!/bin/bash
Expand All @@ -194,7 +192,7 @@ rm /tmp/azion.deb
echo "Installation completed successfully"
```

9. Click the **Save** button.
7. Click the **Save** button.

This script will install the Azion binary in the following path: `/usr/local/bin`
</Fragment>
Expand Down Expand Up @@ -236,17 +234,17 @@ Replace `[TOKEN VALUE]` with your [personal token](/en/documentation/products/gu

<Fragment slot="panel.console">
1. On the upper-left corner of the page, open the **Products menu**, represented by three horizontal lines, and then select **Edge Nodes**.
2. Select the edge node you want to bind to a service.
3. Go to the **Services** tab.
4. Choose the service.
2. Select the edge node to which you want to bind a service.
3. Go to the **Services** tab and click the **+ Service** button.
4. Choose the service `Azion CLI Installation` you've created.
5. Click the **Save** button.
</Fragment>

<Fragment slot="panel.rtm">
1. On the upper-left corner of the page, open the **Products menu**, represented by three horizontal lines, and then select **Edge Nodes**.
2. Select the edge node you want to bind to a service.
3. Go to the **Services** tab.
4. Choose the service.
2. Select the edge node to which you want to bind a service.
3. Go to the **Services** tab and click the **Add Service** button.
4. Choose the service `Azion CLI Installation` you've created.
5. Click the **Save** button.
</Fragment>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,21 @@ Você pode encontrar os links para download das respectivas arquiteturas na [pá
<Fragment slot="tab.api">API</Fragment>

<Fragment slot="panel.console">
1. Acesse o [Azion Console](/pt-br/documentacao/produtos/guias/como-acessar-o-azion-console/) > **Edge Services**.
2. Clique no botão **+ Service**.
3. Nomeie este serviço como `Instalação Azion CLI`.
4. Insira as varáveis e valores para o recurso, se necessário.
5. Defina o status como **Active**.
6. Clique no botão **Save**.
1. Acesse o [Azion Console](/pt-br/documentacao/produtos/guias/como-acessar-o-azion-console/).
2. No canto superior esquerdo da página, abra o **Products menu**, representado por três linhas horizontais, e em seguida selecione **Edge Services**.
3. Clique no botão **+ Service**.
4. Nomeie este serviço como `Instalação Azion CLI`.
5. Insira as varáveis e valores para o recurso, se necessário.
6. Defina o status como **Active**.
7. Clique no botão **Save**.
</Fragment>

<Fragment slot="panel.rtm">
1. Acesse o [Real-Time Manager (RTM)](https://manager.azion.com/) > **Edge Libraries** > **Edge Services**.
2. Clique no botão **Add Service**.
3. Nomeie este serviço como `Instalação Azion CLI`.
4. Volte e, na lista de serviços, defina o status como **Active**.
1. Acesse o [Real-Time Manager (RTM)](https://manager.azion.com/).
2. No canto superior esquerdo da página, abra o **Products menu**, representado por três linhas horizontais, e em seguida selecione **Edge Services**.
3. Clique no botão **Add Service**.
4. Nomeie este serviço como `Instalação Azion CLI`.
5. Volte e, na lista de serviços, defina o status do serviço recém-criado como **Active**.
</Fragment>

<Fragment slot="panel.api">
Expand Down Expand Up @@ -132,14 +134,12 @@ Se um edge service não estiver definido como ativo, ele não estará disponíve
<Fragment slot="tab.api">API</Fragment>

<Fragment slot="panel.console">
1. No canto superior esquerdo da página, abra o **Products menu**, representado por três linhas horizontais, e em seguida selecione **Edge Services**.
2. Selecione o edge service que você acabou de criar, chamado `Instalação Azion CLI`.
3. Vá para a aba **Resources**.
4. Clique em **+ Resource**.
5. Insira `/scripts/install-cli/` no campo do caminho do arquivo.
6. Escolha o tipo **Shell Script**.
7. Escolha o *trigger* **Install**.
8. Adicione o seguinte conteúdo ao bloco **Content**:
1. Dentro do serviço que você acabou de criar, chamado `Instalação Azion CLI` vá para a aba **Resources**.
2. Clique em **+ Resource**.
3. Insira `/scripts/install-cli` no campo **Filepath**.
4. Escolha o tipo **Shell Script**.
5. Escolha o *trigger* **Install**.
6. Adicione o seguinte conteúdo ao bloco **Content**:

```bash
#!/bin/bash
Expand All @@ -160,20 +160,18 @@ rm /tmp/azion.deb
echo "Instalação concluída com sucesso"
```

9. Clique no botão **Save**.
7. Clique no botão **Save**.

Este script instalará o binário `azion` no seguinte caminho: `/usr/local/bin`
</Fragment>

<Fragment slot="panel.rtm">
1. No canto superior esquerdo da página, abra o **Products menu**, representado por três linhas horizontais, e em seguida selecione **Edge Services**.
2. Selecione o edge service que você acabou de criar, chamado `Instalação Azion CLI`.
3. Vá para a aba **Resources**.
4. Clique em **Add Resource**.
5. Insira `/scripts/install-cli/` no campo do caminho do arquivo.
6. Escolha o tipo **Shell Script**.
7. Escolha o *trigger* **Install**.
8. Adicione o seguinte conteúdo ao bloco **Content**:
1. Na lista de serviços, selecione o edge service que você acabou de criar, chamado `Instalação Azion CLI`.
2. Vá para a aba **Resources** e clique em **Add Resource**.
3. Insira `/scripts/install-cli` no campo do caminho do arquivo.
4. Escolha o tipo **Shell Script**.
5. Escolha o *trigger* **Install**.
6. Adicione o seguinte conteúdo ao bloco **Content**:

```bash
#!/bin/bash
Expand All @@ -194,7 +192,7 @@ rm /tmp/azion.deb
echo "Instalação concluída com sucesso"
```

9. Clique no botão **Save**.
7. Clique no botão **Save**.

Este script instalará o binário `azion` no seguinte caminho: `/usr/local/bin`
</Fragment>
Expand Down Expand Up @@ -237,16 +235,16 @@ Substitua [TOKEN VALUE] pelo seu [personal token](/pt-br/documentacao/produtos/g
<Fragment slot="panel.console">
1. No canto superior esquerdo da página, abra o **Products menu**, representado por três linhas horizontais, e em seguida selecione **Edge Services**.
2. Selecione o edge node ao qual você deseja vincular um serviço.
3. Vá para a guia **Services**.
4. Escolha o serviço.
3. Vá para a guia **Services** e clique no botão **+ Service**.
4. Escolha o serviço `Instalação Azion CLI` que você criou.
5. Clique no botão **Save**.
</Fragment>

<Fragment slot="panel.rtm">
1. No canto superior esquerdo da página, abra o **Products menu**, representado por três linhas horizontais, e em seguida selecione **Edge Services**.
2. Selecione o edge node ao qual você deseja vincular um serviço.
3. Vá para a guia **Services**.
4. Escolha o serviço.
3. Vá para a guia **Services** e clique no botão **Add Service**.
4. Escolha o serviço `Instalação Azion CLI` que você criou.
5. Clique no botão **Save**.
</Fragment>

Expand Down

0 comments on commit d42f89a

Please sign in to comment.