From 8d9951ceaf9c00c64884262d8e0e66bcbe336189 Mon Sep 17 00:00:00 2001 From: mapedraza <40356341+mapedraza@users.noreply.github.com> Date: Thu, 10 Aug 2023 12:07:45 +0200 Subject: [PATCH 1/2] Switch to telefonicaiot/fiware-orion:ci --- .github/workflows/ciimage.yml | 40 -------------------------- .github/workflows/functional.yml | 2 +- .github/workflows/unit.yml | 2 +- .github/workflows/valgrind-nocache.yml | 2 +- .github/workflows/valgrind.yml | 2 +- ci/README.jp.md | 12 ++++---- ci/README.md | 12 ++++---- 7 files changed, 16 insertions(+), 56 deletions(-) delete mode 100644 .github/workflows/ciimage.yml diff --git a/.github/workflows/ciimage.yml b/.github/workflows/ciimage.yml deleted file mode 100644 index 40cd808534..0000000000 --- a/.github/workflows/ciimage.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Build CI Image - -## Will only run on pushes to the CI folder -on: - push: - paths: - - ci/deb/** - -env: - IMAGE_NAME: fiware/orion-ci:deb - -jobs: - deploy: - - runs-on: ubuntu-22.04 - if: github.event_name == 'push' - - steps: - - uses: actions/checkout@v2 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 - - - name: Login to DockerHub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push - id: docker_build - uses: docker/build-push-action@v2 - with: - context: ci/deb/ - load: true - tags: ${{ env.IMAGE_NAME }} - file: ci/deb/Dockerfile - - - name: Push - run: docker push ${{ env.IMAGE_NAME }} diff --git a/.github/workflows/functional.yml b/.github/workflows/functional.yml index 47ef6b7aa5..2ec1f9e42c 100644 --- a/.github/workflows/functional.yml +++ b/.github/workflows/functional.yml @@ -14,7 +14,7 @@ concurrency: cancel-in-progress: true env: - TEST_IMAGE_NAME: fiware/orion-ci:deb + TEST_IMAGE_NAME: telefonicaiot/fiware-orion:ci jobs: functional: diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 89f0f9a6eb..5354359713 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -14,7 +14,7 @@ concurrency: cancel-in-progress: true env: - TEST_IMAGE_NAME: fiware/orion-ci:deb + TEST_IMAGE_NAME: telefonicaiot/fiware-orion:ci jobs: unit: diff --git a/.github/workflows/valgrind-nocache.yml b/.github/workflows/valgrind-nocache.yml index 4acdc6c9e3..43a1f2effc 100644 --- a/.github/workflows/valgrind-nocache.yml +++ b/.github/workflows/valgrind-nocache.yml @@ -17,7 +17,7 @@ concurrency: cancel-in-progress: true env: - TEST_IMAGE_NAME: fiware/orion-ci:deb + TEST_IMAGE_NAME: telefonicaiot/fiware-orion:ci jobs: valgrind: diff --git a/.github/workflows/valgrind.yml b/.github/workflows/valgrind.yml index 55fc6c5861..0ea9538f00 100644 --- a/.github/workflows/valgrind.yml +++ b/.github/workflows/valgrind.yml @@ -14,7 +14,7 @@ concurrency: cancel-in-progress: true env: - TEST_IMAGE_NAME: fiware/orion-ci:deb + TEST_IMAGE_NAME: telefonicaiot/fiware-orion:ci jobs: valgrind: diff --git a/ci/README.jp.md b/ci/README.jp.md index d203e05297..20b94bb6b8 100644 --- a/ci/README.jp.md +++ b/ci/README.jp.md @@ -1,13 +1,13 @@ ## 概要 このリポジトリでは GitHub Actions が有効になっているため、マージを許可する前に各プルリクエストがチェックされます。 -このシステムは、新しい PR がマスターに到達するたびにマスターブランチから構築される `fiware/orion-ci:deb` に基づいており、 +このシステムは、新しい PR がマスターに到達するたびにマスターブランチから構築される `telefonicaiot/fiware-orion:ci` に基づいており、 すべてのビルド依存関係がオンボードにあるクリーンな環境を提供します。この Docker のビルドに使用される Dockerfile は、 `ci/deb` ディレクトリにあります。 -テスト対象の PR ブランチが変更されたため、`fiware/orion-ci:deb` は再構築されないことに注意してください。したがって、 +テスト対象の PR ブランチが変更されたため、`telefonicaiot/fiware-orion:ci` は再構築されないことに注意してください。したがって、 新しいライブラリまたはベースシステムを必要とする機能を開発している場合は、そのようなライブラリまたはベースシステムを `ci/deb/build-dep.sh` および/または `Dockerfile` に追加する PR を*最初に*実行する必要があります。その PR がマスターに -マージされ、`fiware/orion-ci:deb` が再構築されると (Docker Hub の https://hub.docker.com/r/fiware/orion-ci/builds +マージされ、`telefonicaiot/fiware-orion:ci` が再構築されると (Docker Hub の https://hub.docker.com/r/fiware/orion-ci/builds で進行状況を確認)、新しい機能は、GitHub アクションでテストする準備ができています。 GitHub Actions チェックは段階に分かれており、 "サポートされているテスト" セクションで説明されています。 @@ -31,7 +31,7 @@ CI の現在のバージョンは以下をサポートします: イメージをダウンロードするには: ``` -docker pull fiware/orion-ci:deb +docker pull telefonicaiot/fiware-orion:ci ``` たとえば、GitHub Actions と同じ方法でイメージを実行するには、次のようにします: @@ -39,7 +39,7 @@ docker pull fiware/orion-ci:deb ``` # Check that MongoDB server is running in your localhost:27017 cd /path/to/fiware-orion -docker run --network host --rm -e CB_NO_CACHE=ON -e FT_FROM_IX=1201 -v $(pwd):/opt/fiware-orion fiware/orion-ci:deb build -miqts functional +docker run --network host --rm -e CB_NO_CACHE=ON -e FT_FROM_IX=1201 -v $(pwd):/opt/fiware-orion telefonicaiot/fiware-orion:ci build -miqts functional ``` インタラクティブな bash を使用してイメージを実行するには: @@ -47,7 +47,7 @@ docker run --network host --rm -e CB_NO_CACHE=ON -e FT_FROM_IX=1201 -v $(pwd):/o ``` # Check that MongoDB server is running in your localhost:27017 cd /path/to/fiware-orion -docker run --network host -ti -v $(pwd):/opt/fiware-orion fiware/orion-ci:deb bash +docker run --network host -ti -v $(pwd):/opt/fiware-orion telefonicaiot/fiware-orion:ci bash ``` bash シェルを起動したら、同様の実行を行うことができます: diff --git a/ci/README.md b/ci/README.md index d6eb527d88..b5faa7bc00 100644 --- a/ci/README.md +++ b/ci/README.md @@ -1,12 +1,12 @@ ## Overview GitHub Actions is enabled in this repository so each pull request is checked before being allowed to merge. -The system is based on `fiware/orion-ci:deb` which is built from master branch each time a new PR lands in master, +The system is based on `telefonicaiot/fiware-orion:ci` which is built from master branch each time a new PR lands in master, providing a clean environment with all build dependencies onboard. The Dockerfile used to build this docker is available in the `ci/deb` directory. -Note that `fiware/orion-ci:deb` is *not* rebuilt due to changes in the PR branch under test. Thus, if you are developing +Note that `telefonicaiot/fiware-orion:ci` is *not* rebuilt due to changes in the PR branch under test. Thus, if you are developing a functionality that requires a new library or base system you need to do *first* a PR adding such library or base system -to `ci/deb/build-dep.sh` and/or `Dockerfile`. Once that PR gets merged into master and `fiware/orion-ci:deb` gets rebuild +to `ci/deb/build-dep.sh` and/or `Dockerfile`. Once that PR gets merged into master and `telefonicaiot/fiware-orion:ci` gets rebuild (checking progress in Dockerhub at: https://hub.docker.com/r/fiware/orion-ci/builds) your PR branch with the new functionality is ready to be tested with GitHub Actions. @@ -30,7 +30,7 @@ the following cheatsheet can be useful: To download the image: ``` -docker pull fiware/orion-ci:deb +docker pull telefonicaiot/fiware-orion:ci ``` To run the image in the same way that GitHub Actions does, for instance: @@ -38,7 +38,7 @@ To run the image in the same way that GitHub Actions does, for instance: ``` # Check that MongoDB server is running in your localhost:27017 cd /path/to/fiware-orion -docker run --network host --rm -e CB_NO_CACHE=ON -e FT_FROM_IX=1201 -v $(pwd):/opt/fiware-orion fiware/orion-ci:deb build -miqts functional +docker run --network host --rm -e CB_NO_CACHE=ON -e FT_FROM_IX=1201 -v $(pwd):/opt/fiware-orion telefonicaiot/fiware-orion:ci build -miqts functional ``` To run the image using an interactive bash on it @@ -46,7 +46,7 @@ To run the image using an interactive bash on it ``` # Check that MongoDB server is running in your localhost:27017 cd /path/to/fiware-orion -docker run --network host -ti -v $(pwd):/opt/fiware-orion fiware/orion-ci:deb bash +docker run --network host -ti -v $(pwd):/opt/fiware-orion telefonicaiot/fiware-orion:ci bash ``` Once have a bash shell, you can do the same execution: From 7b8dd0f82d9e26628b262298c07d718e9af3f5c9 Mon Sep 17 00:00:00 2001 From: mapedraza <40356341+mapedraza@users.noreply.github.com> Date: Thu, 10 Aug 2023 12:33:01 +0200 Subject: [PATCH 2/2] Fix readme dockerhub links --- ci/README.jp.md | 2 +- ci/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/README.jp.md b/ci/README.jp.md index 20b94bb6b8..645730f11e 100644 --- a/ci/README.jp.md +++ b/ci/README.jp.md @@ -7,7 +7,7 @@ テスト対象の PR ブランチが変更されたため、`telefonicaiot/fiware-orion:ci` は再構築されないことに注意してください。したがって、 新しいライブラリまたはベースシステムを必要とする機能を開発している場合は、そのようなライブラリまたはベースシステムを `ci/deb/build-dep.sh` および/または `Dockerfile` に追加する PR を*最初に*実行する必要があります。その PR がマスターに -マージされ、`telefonicaiot/fiware-orion:ci` が再構築されると (Docker Hub の https://hub.docker.com/r/fiware/orion-ci/builds +マージされ、`telefonicaiot/fiware-orion:ci` が再構築されると (Docker Hub の https://hub.docker.com/r/telefonicaiot/fiware-orion/builds で進行状況を確認)、新しい機能は、GitHub アクションでテストする準備ができています。 GitHub Actions チェックは段階に分かれており、 "サポートされているテスト" セクションで説明されています。 diff --git a/ci/README.md b/ci/README.md index b5faa7bc00..5871fa62ce 100644 --- a/ci/README.md +++ b/ci/README.md @@ -7,7 +7,7 @@ in the `ci/deb` directory. Note that `telefonicaiot/fiware-orion:ci` is *not* rebuilt due to changes in the PR branch under test. Thus, if you are developing a functionality that requires a new library or base system you need to do *first* a PR adding such library or base system to `ci/deb/build-dep.sh` and/or `Dockerfile`. Once that PR gets merged into master and `telefonicaiot/fiware-orion:ci` gets rebuild -(checking progress in Dockerhub at: https://hub.docker.com/r/fiware/orion-ci/builds) your PR branch with the new +(checking progress in Dockerhub at: https://hub.docker.com/r/telefonicaiot/fiware-orion/builds) your PR branch with the new functionality is ready to be tested with GitHub Actions. The GitHub Actions checks are divided into stages, which are described in "Supported tests" section.