Skip to content

Commit

Permalink
Northflank Docker
Browse files Browse the repository at this point in the history
Propagating to upgrade, downgrade and dev
  • Loading branch information
psonnera committed Jun 9, 2024
1 parent 8488a7d commit 55e234a
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 36 deletions.
71 changes: 41 additions & 30 deletions docs/update/dev_branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,43 @@ If you need to return to the previous Nightscout version, or in rare occasions,

Do not deploy `dev` or a branch other than `master` unless directed to do so (except if you know why you are doing so).

AAPS users: mind the [compatibility matrix](../nightscout/close_loop.md#aaps)!

## Step 1: Update your repository in GitHub

- Skip this step if you're using Azure.
- Click here to log in at GitHub: [https://github.com/login](https://github.com/login).
- Enter your username or email and your password. Click `Sign in`

<img src="/vendors/github/img/UpdateNS00.png" width="400px" >

</br>

- Select your own `cgm-remote-monitor` project (**not `nightscout/cgm-remote-monitor`**)

<img src="/vendors/github/img/UpdateNS01.png" width="400px" >

</br>

- Your repository will open.

<img src="/vendors/github/img/Dev00.png" width="400px" >

- In the branch drop down menu (normally showing `master`) select `dev`
Select your platform below:

<img src="/vendors/github/img/Dev01.png" width="300px" >
````{tab-set}
:::{tab-item} Select your platform ->
</br>
:::
- Click`Fetch upstream` to update it, then `Fetch and merge`

<img src="/vendors/github/img/Dev03.png" width="800px" >
:::{tab-item} Heroku, Railway, Northflank (GitHub)
</br>- Click here to log in at GitHub: [https://github.com/login](https://github.com/login).</br></br>
- Enter your username or email and your password. Click `Sign in`</br></br>
<img src="/vendors/github/img/UpdateNS00.png" width="400px" ></br></br>
- Select your own `cgm-remote-monitor` project (**not `nightscout/cgm-remote-monitor`**)</br></br>
<img src="/vendors/github/img/UpdateNS01.png" width="400px" ></br></br>
- Your repository will open. </br></br>
<img src="/vendors/github/img/Dev00.png" width="400px" ></br></br>
- In the branch drop down menu (normally showing `master`) select `dev`</br></br>
<img src="/vendors/github/img/Dev01.png" width="300px" ></br></br>
- Click`Fetch upstream` to update it, then `Fetch and merge`</br></br>
<img src="/vendors/github/img/Dev03.png" width="800px" ></br></br>
- After a moment, your repository should display `This branch is up to date with nightscout:dev`</br></br>
<img src="/vendors/github/img/Dev04.png" width="500px" ></br></br>
- If you ran into trouble, try to [Redeploy](/update/redeploy.md) (and this is **mandatory** if you don't see `dev` in GitHub.)</br></br>
:::
</br>
:::{tab-item} Google Cloud, Azure, Northflank (Docker)
</br>You don't need to update your GitHub repository.</br></br>
:::
- After a moment, your repository should display `This branch is up to date with nightscout:dev`
:::{tab-item} Fly.io
</br>You don't need to update your GitHub repository if you deployed from [https://github.com/nightscout/cgm-remote-monitor](https://github.com/nightscout/cgm-remote-monitor).</br></br>
:::
<img src="/vendors/github/img/Dev04.png" width="500px" >
- If you ran into trouble, try to [Redeploy](/update/redeploy.md) (and this is **mandatory** if you don't see `dev` in GitHub.)
````

</br>

Expand Down Expand Up @@ -97,7 +95,20 @@ Select your platform below:
- Once `dev` selected Railway will deploy automatically.</br>
:::
:::{tab-item} Northflank
:::{tab-item} Northflank (Docker)
- Log into Northflank: [https://app.northflank.com/login](https://app.northflank.com/login)</br>
- Select your Nightscout project</br></br>
<img src="/vendors/northflank/img/Dev14.png" width="600px" /></br></br>
- Select your Nightscout service</br></br>
<img src="/vendors/northflank/img/Dev15.png" width="500px" /></br></br>
- In Overview, Edit deployment</br></br>
<img src="/vendors/northflank/img/Dev18.png" width="800px" /></br></br>
- In the image path, replace `nightscout/cgm-remote-monitor:latest` with the [version](https://hub.docker.com/r/nightscout/cgm-remote-monitor/tags) you want to deploy (for example `nightscout/cgm-remote-monitor:latest_dev`), then click `Update & rollout restart`</br></br>
<img src="/vendors/northflank/img/Dev19.png" width="600px" /></br></br>
- Your site will redeploy with the selected branch</br>
:::
:::{tab-item} Northflank (GitHub)
- Log into Northflank: [https://app.northflank.com/login](https://app.northflank.com/login)</br>
- Select your Nightscout project</br></br>
<img src="/vendors/northflank/img/Dev14.png" width="600px" /></br></br>
Expand Down
8 changes: 7 additions & 1 deletion docs/update/downgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ If you use Heroku and you want to return to the previous version, see [Roll back

</br>

**Azure with Docker** (not using GitHub) use [this method](/update/dev_branch).
### **Docker**

You deployed a Docker container: you're not using GitHub) Azure, Northflank use [this method](/update/dev_branch).

</br>

### GitHub

You forked Nightscout in your own GitHub account and used it to deploy.

**Experienced users only - not recommended**

Deploying an archived release of Nightscout is complex and involves using Git on your computer (You need to [install git](https://git-scm.com/downloads) if you're using a Windows computer).
Expand Down
53 changes: 48 additions & 5 deletions docs/update/update.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,41 @@ You don't need to follow these instructions if you use a hosted service.</br>Con

## Step 1: Update your repository in GitHub

```{tip}
Skip this step if you're using Azure, Google Cloud xDrip+ scripted deployment or Fly.io from the orignal `cgm-remote-monitor` repository.
```
Select your current platform below:

Follow [these instructions](/vendors/github/update/) and come back.
````{tab-set}
:::{tab-item} Select your platform ->
</br>
:::
:::{tab-item} Heroku, Railway, Northflank (GitHub)
</br>- Click here to log in at GitHub: [https://github.com/login](https://github.com/login).</br></br>
- Enter your username or email and your password. Click `Sign in`</br></br>
<img src="/vendors/github/img/UpdateNS00.png" width="400px" ></br></br>
- Select your own `cgm-remote-monitor` project (**not `nightscout/cgm-remote-monitor`**)</br></br>
<img src="/vendors/github/img/UpdateNS01.png" width="400px" ></br></br>
- Your repository will open. </br></br>
<img src="/vendors/github/img/Dev00.png" width="400px" ></br></br>
- In the branch drop down menu (normally showing `master`) select `dev`</br></br>
<img src="/vendors/github/img/Dev01.png" width="300px" ></br></br>
- Click`Fetch upstream` to update it, then `Fetch and merge`</br></br>
<img src="/vendors/github/img/Dev03.png" width="800px" ></br></br>
- After a moment, your repository should display `This branch is up to date with nightscout:latest`</br></br>
<img src="/vendors/github/img/Dev04.png" width="500px" ></br></br>
- If you ran into trouble, try to [Redeploy](/update/redeploy.md)</br></br>
:::
:::{tab-item} Google Cloud, Azure, Northflank (Docker)
</br>You don't need to update your GitHub repository.</br></br>
:::
:::{tab-item} Fly.io
</br>You don't need to update your GitHub repository if you deployed from [https://github.com/nightscout/cgm-remote-monitor](https://github.com/nightscout/cgm-remote-monitor).</br></br>
:::
````

</br>

Expand Down Expand Up @@ -119,10 +149,23 @@ Visit your newly deployed app at https://example-ns.fly.dev/
</br>
:::
:::{tab-item} Railway Northflank Render
:::{tab-item} Railway Northflank Render (GitHub)
</br>Once GitHub updated, your Nightscout should automatically deploy with the latest version.</br></br>
:::
:::{tab-item} Northflank (Docker)
</br>- Log into Northflank: [https://app.northflank.com/login](https://app.northflank.com/login)</br>
- Select your Nightscout project</br></br>
<img src="/vendors/northflank/img/Dev14.png" width="600px" /></br></br>
- Select your Nightscout service</br></br>
<img src="/vendors/northflank/img/Dev15.png" width="500px" /></br></br>
- In Overview, Edit deployment</br></br>
<img src="/vendors/northflank/img/Dev18.png" width="800px" /></br></br>
- In the image path, check the image is `nightscout/cgm-remote-monitor:latest` (modify if necessary), then click `Update & rollout restart`</br></br>
<img src="/vendors/northflank/img/Dev19.png" width="600px" /></br></br>
- Your site will redeploy with the latest version.</br></br></br>
:::
:::{tab-item} Google Cloud
</br>Continue [here](https://navid200.github.io/xDrip/docs/Nightscout/update_nightscout.html)</br></br>
:::
Expand Down
Binary file added docs/vendors/northflank/img/Dev18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/vendors/northflank/img/Dev19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 55e234a

Please sign in to comment.