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

FIX upgrade to debian 12.6 #4593

Merged
merged 1 commit into from
Jul 4, 2024
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
3 changes: 2 additions & 1 deletion CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Fix: custom notification ngsi patching evaluation priority based in evalPriority builtin metadata (#4556)
- Fix: wrong date values should not allowed in subscription's expires field (#4541)
- Fix: do not raise DB alarm in case of wrong GeoJSON in client request
- Fix: do not raise DB alarm in case of wrong GeoJSON in client request
- Upgrade Debian version from 12.4 to 12.6 in Dockerfile
2 changes: 1 addition & 1 deletion ci/deb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:12.4-slim
FROM debian:12.6-slim

ADD build.sh /opt/bin/
ADD build-dep.sh /opt/bin/
Expand Down
2 changes: 1 addition & 1 deletion doc/manuals.jp/admin/build_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Orion Context Broker は、以下のライブラリをビルドの依存関係
* boost: 1.74
* libmicrohttpd: 0.9.76 (ソースから)
* libcurl: 7.88.1
* openssl: 3.0.9
* openssl: 3.0.13
* libuuid: 2.38.1
* libmosquitto: 2.0.15 (ソースから)
* Mongo C driver: 1.24.3 (ソースから)
Expand Down
2 changes: 1 addition & 1 deletion doc/manuals.jp/admin/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Docker hub で公式の Orion docker コンテナを使用してインストー

必要なソースから ビルドした Orion をインストールする場合:

* オペレーティングシステム: Debian。リファレンス・オペレーティングシステムは Debian 12.4 ですが、それ以降の
* オペレーティングシステム: Debian。リファレンス・オペレーティングシステムは Debian 12.6 ですが、それ以降の
Debian 12 バージョンでも動作するはずです
* データベース: MongoDB は、Orion Context Broker がインストールされるのと同じホストで実行するか、ネットワーク経由で
アクセスできる別のホストで実行する必要があります。推奨される MongoDB バージョンは 6.0 です (Orion は古いバージョンで
Expand Down
2 changes: 1 addition & 1 deletion doc/manuals/admin/build_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The Orion Context Broker uses the following libraries as build dependencies:
* boost: 1.74
* libmicrohttpd: 0.9.76 (from source)
* libcurl: 7.88.1
* openssl: 3.0.9
* openssl: 3.0.13
* libuuid: 2.38.1
* libmosquitto: 2.0.15 (from source)
* Mongo C driver: 1.24.3 (from source)
Expand Down
2 changes: 1 addition & 1 deletion doc/manuals/admin/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ In the case you install using the official Orion docker container at Dockerhub,

In the case you are installing Orion building from sources you need:

* Operating system: Debian. The reference operating system is Debian 12.4
* Operating system: Debian. The reference operating system is Debian 12.6
but it should work also in any later Debian 12 version.
* Database: MongoDB is required to run either in the same host where Orion Context Broker is to be installed or in a different host accessible through the network. The recommended MongoDB version
is 6.0 (Orion may work with older versions but we don't recommend it at all!).
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#

ARG IMAGE_NAME=debian
ARG IMAGE_TAG=12.4-slim
ARG IMAGE_TAG=12.6-slim
FROM ${IMAGE_NAME}:${IMAGE_TAG}

ARG GITHUB_ACCOUNT=telefonicaid
Expand Down
14 changes: 7 additions & 7 deletions docker/README.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Orion Context Broker を試してみたいし、データベースについて

services:
orion:
image: fiware/orion
image: telefonicaiot/fiware-orion
ports:
- "1026:1026"
depends_on:
Expand All @@ -49,7 +49,7 @@ Orion Context Broker を試してみたいし、データベースについて

curl localhost:1026/version

この方法で行ったことは、[Docker Hub](https://hub.docker.com/) というイメージの公開リポジトリから [Orion Context Broker](https://hub.docker.com/r/fiware/orion/) と [MongoDB](https://hub.docker.com/_/mongo/) 用のイメージをダウンロードすることです。次に、両方のイメージに基づいて2つのコンテナを作成しました。
この方法で行ったことは、[Docker Hub](https://hub.docker.com/) というイメージの公開リポジトリから [Orion Context Broker](https://hub.docker.com/r/telefonicaiot/fiware-orion/) と [MongoDB](https://hub.docker.com/_/mongo/) 用のイメージをダウンロードすることです。次に、両方のイメージに基づいて2つのコンテナを作成しました。

このシナリオを停止したい場合は、docker-compose が実行されているターミナルで Control+C を押す必要があります。このメソッドを使用して Orion で使用されていたデータはすべて失われます。

Expand All @@ -60,13 +60,13 @@ Orion Context Broker を試してみたいし、データベースについて

> ヒント : これらの方法を試しているか、複数回実行していて、コンテナがすでに存在しているというエラーが表示された場合は、`docker rm orion1` で削除できます。コンテナを停止しなければならない場合は、まず `docker stop orion1` を実行して、止めてください。

これらのコマンドを使用すると、Orion のタグと特定のバージョンにアクセスできます。たとえば、特定のバージョンが必要な場合は、次のコマンドで `fiware/orion` の代わりに `fiware/orion:0.22` を使用できます。バージョンを指定しない場合は、デフォルトで ` 最新 ` のものから取得します。
これらのコマンドを使用すると、Orion のタグと特定のバージョンにアクセスできます。たとえば、特定のバージョンが必要な場合は、次のコマンドで `telefonicaiot/fiware-orion` の代わりに `telefonicaiot/fiware-orion:4.0.0` を使用できます。バージョンを指定しない場合は、デフォルトで ` 最新 ` のものから取得します。

### 2A. MongoDB はローカルホスト上にある場合

これを実行するには、このコマンドを実行します。

sudo docker run -d --name orion1 -p 1026:1026 fiware/orion
sudo docker run -d --name orion1 -p 1026:1026 telefonicaiot/fiware-orion

すべてが動作することを確認します。

Expand All @@ -79,7 +79,7 @@ Orion Context Broker を試してみたいし、データベースについて

そして、このコマンドで Orion を実行します

sudo docker run -d --name orion1 --link mongodb:mongodb -p 1026:1026 fiware/orion -dbURI mongodb://mongodb
sudo docker run -d --name orion1 --link mongodb:mongodb -p 1026:1026 telefonicaiot/fiware-orion -dbURI mongodb://mongodb

すべてが動作することを確認します。

Expand All @@ -91,7 +91,7 @@ Orion Context Broker を試してみたいし、データベースについて

別の MongoDB インスタンスに接続する場合は、前のコマンドの**代わりに**、次のコマンドを実行します

sudo docker run -d --name orion1 -p 1026:1026 fiware/orion -dbURI mongodb://<MongoDB Host>
sudo docker run -d --name orion1 -p 1026:1026 telefonicaiot/fiware-orion -dbURI mongodb://<MongoDB Host>

すべてが動作することを確認します。

Expand Down Expand Up @@ -186,6 +186,6 @@ sudo を使用したくない場合は、[以下の手順](http://askubuntu.com/

### 4.4 Orion の追加パラメータ

コンテナイメージの名前 (ビルドしている場合は `orion`、リポジトリからプルしている場合は `fiware/orion`) の後ろは、Orion Context Broker のパラメータとして解釈されます。ここでは、MongoDB ホストがどこにあるかを broker に伝えています。これは、他の MongoDB コンテナの名前で表されます。他のコマンドライン・オプションの [ドキュメント](https://github.com/telefonicaid/fiware-orion)を見てください。
コンテナイメージの名前 (ビルドしている場合は `orion`、リポジトリからプルしている場合は `telefonicaiot/fiware-orion`) の後ろは、Orion Context Broker のパラメータとして解釈されます。ここでは、MongoDB ホストがどこにあるかを broker に伝えています。これは、他の MongoDB コンテナの名前で表されます。他のコマンドライン・オプションの [ドキュメント](https://github.com/telefonicaid/fiware-orion)を見てください。

Orion は [マルチテナントモード](https://fiware-orion.readthedocs.io/en/master/user/multitenancy/index.html)で動作します。
14 changes: 7 additions & 7 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Follow these steps:

services:
orion:
image: fiware/orion
image: telefonicaiot/fiware-orion
ports:
- "1026:1026"
depends_on:
Expand All @@ -51,7 +51,7 @@ Check that everything works with

curl localhost:1026/version

What you have done with this method is download images for [Orion Context Broker](https://hub.docker.com/r/fiware/orion/) and [MongoDB](https://hub.docker.com/_/mongo/) from the public repository of images called [Docker Hub](https://hub.docker.com/). Then you have created two containers based on both images.
What you have done with this method is download images for [Orion Context Broker](https://hub.docker.com/r/telefonicaiot/fiware-orion/) and [MongoDB](https://hub.docker.com/_/mongo/) from the public repository of images called [Docker Hub](https://hub.docker.com/). Then you have created two containers based on both images.

If you want to stop the scenario you have to press Control+C on the terminal where docker-compose is running. Note that you will lose any data that was being used in Orion using this method.

Expand All @@ -62,13 +62,13 @@ This method will launch a container running Orion Context Broker, but it is up t

> TIP: If you are trying these methods or run them more than once and come across an error saying that the container already exists you can delete it with `docker rm orion1`. If you have to stop it first do `docker stop orion1`.

Keep in mind that if you use these commands you get access to the tags and specific versions of Orion. For example, you may use `fiware/orion:0.22` instead of `fiware/orion` in the following commands if you need that particular version. If you do not specify a version you are pulling from `latest` by default.
Keep in mind that if you use these commands you get access to the tags and specific versions of Orion. For example, you may use `telefonicaiot/fiware-orion:4.0.0` instead of `telefonicaiot/fiware-orion` in the following commands if you need that particular version. If you do not specify a version you are pulling from `latest` by default.

### 2A. MongoDB is on localhost

To do this run this command

sudo docker run -d --name orion1 -p 1026:1026 fiware/orion
sudo docker run -d --name orion1 -p 1026:1026 telefonicaiot/fiware-orion

Check that everything works with

Expand All @@ -81,7 +81,7 @@ In case you want to run MongoDB on another container you can launch it like this

And then run Orion with this command

sudo docker run -d --name orion1 --link mongodb:mongodb -p 1026:1026 fiware/orion -dbURI mongodb://mongodb
sudo docker run -d --name orion1 --link mongodb:mongodb -p 1026:1026 telefonicaiot/fiware-orion -dbURI mongodb://mongodb

Check that everything works with

Expand All @@ -93,7 +93,7 @@ This method is functionally equivalent as the one described in section 1, but do

If you want to connect to a different MongoDB instance do the following command **instead of** the previous one

sudo docker run -d --name orion1 -p 1026:1026 fiware/orion -dbURI mongodb://<MongoDB Host>
sudo docker run -d --name orion1 -p 1026:1026 telefonicaiot/fiware-orion -dbURI mongodb://<MongoDB Host>

Check that everything works with

Expand Down Expand Up @@ -189,7 +189,7 @@ on your machine you should change this value to something else, for example `-p

### 4.4 Extra parameters for Orion

Anything after the name of the container image (`orion` if you are building, or `fiware/orion` if you are pulling from the repository) is interpreted as a parameter for the Orion Context Broker. In this case we are telling the broker where the MongoDB host is, represented by the name of our other MongoDB container. Take a look at the [documentation](https://github.com/telefonicaid/fiware-orion) for other command-line options.
Anything after the name of the container image (`orion` if you are building, or `telefonicaiot/fiware-orion` if you are pulling from the repository) is interpreted as a parameter for the Orion Context Broker. In this case we are telling the broker where the MongoDB host is, represented by the name of our other MongoDB container. Take a look at the [documentation](https://github.com/telefonicaid/fiware-orion) for other command-line options.

Orion will be running on [multi-tenant](https://fiware-orion.readthedocs.io/en/master/user/multitenancy/index.html) mode.

2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "3"

services:
orion:
image: fiware/orion
image: telefonicaiot/fiware-orion
ports:
- "1026:1026"
depends_on:
Expand Down
Loading