Skip to content

Commit

Permalink
Merge pull request #763 from davidebriani/forward-port-release-0.9-in…
Browse files Browse the repository at this point in the history
…to-main
  • Loading branch information
noaccOS authored Dec 9, 2024
2 parents 331b3f7 + a1ef446 commit 472b713
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 22 deletions.
12 changes: 10 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,25 @@ IPBASE_API_KEY=
GOOGLE_GEOLOCATION_API_KEY=
GOOGLE_GEOCODING_API_KEY=

# The top level domain of your edgehog instance.
# In case you want to make Edgehog visible in your LAN, consider setting the variable
# to <HOST_IP>.nip.io
DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN=edgehog.localhost
# The top level domain of your astarte instance. It must be set according to your
# configuration for Astarte.
DOCKER_COMPOSE_ASTARTE_BASE_DOMAIN=astarte.localhost

S3_ACCESS_KEY_ID=minioadmin
S3_SECRET_ACCESS_KEY=minioadmin
S3_REGION=local
S3_SCHEME=http://
S3_HOST=minio
S3_PORT=9000
S3_BUCKET=edgehog
S3_ASSET_HOST=http://minio-storage.edgehog.localhost/edgehog
S3_ASSET_HOST=http://minio-storage.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}/edgehog
S3_GCP_CREDENTIALS=

SEEDS_REALM=test
SEEDS_REALM_PRIVATE_KEY_FILE=./backend/priv/repo/seeds/keys/realm_private.pem
SEEDS_TENANT_PRIVATE_KEY_FILE=./backend/priv/repo/seeds/keys/tenant_private.pem
SEEDS_ASTARTE_BASE_API_URL=http://api.astarte.localhost
SEEDS_ASTARTE_BASE_API_URL=http://api.${DOCKER_COMPOSE_ASTARTE_BASE_DOMAIN}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.9.2] - 2024-12-09
### Changed
- Update the docker-compose configuration to allow both physical and virtual devices
to connect to Edgehog, provided that the devices and the host are on the same LAN.

## [0.9.1] - 2024-10-28
### Fixed
- Allow receiving `trigger_name` key in trigger payload, which is sent by Astarte >= 1.2.0.
Expand Down
2 changes: 1 addition & 1 deletion backend/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule Edgehog.MixProject do
def project do
[
app: :edgehog,
version: "0.9.1",
version: "0.9.2",
elixir: "~> 1.17",
elixirc_paths: elixirc_paths(Mix.env()),
compilers: Mix.compilers(),
Expand Down
2 changes: 1 addition & 1 deletion doc/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule Doc.MixProject do
def project do
[
app: :doc,
version: "0.9.1",
version: "0.9.2",
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down
4 changes: 2 additions & 2 deletions doc/pages/admin/deploying_with_kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ spec:
value: <EDGEHOG-FORWARDER-PORT>
- name: EDGEHOG_FORWARDER_SECURE_SESSIONS
value: <EDGEHOG-FORWARDER-SECURE-SESSIONS>
image: edgehogdevicemanager/edgehog-backend:0.9.1
image: edgehogdevicemanager/edgehog-backend:0.9.2
imagePullPolicy: Always
name: edgehog-backend
ports:
Expand Down Expand Up @@ -414,7 +414,7 @@ spec:
- env:
- name: BACKEND_URL
value: <BACKEND-HOST>
image: edgehogdevicemanager/edgehog-frontend:0.9.1
image: edgehogdevicemanager/edgehog-frontend:0.9.2
imagePullPolicy: Always
name: edgehog-frontend
ports:
Expand Down
2 changes: 1 addition & 1 deletion doc/versions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var versionNodes = [
{
version: "v0.9.1",
version: "v0.9.2",
url: "https://docs.edgehog.io/0.9"
},
{
Expand Down
1 change: 0 additions & 1 deletion docker-compose.without-astarte.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# SPDX-License-Identifier: Apache-2.0
#

version: "3.8"
services:
traefik:
image: traefik:v2.10
Expand Down
21 changes: 10 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# SPDX-License-Identifier: Apache-2.0
#

version: "3.8"
services:
postgresql:
image: postgres:16.3
Expand All @@ -29,7 +28,7 @@ services:
- postgresql-data:/var/lib/postgresql/data

edgehog-backend:
image: edgehogdevicemanager/edgehog-backend:0.9.1
image: edgehogdevicemanager/edgehog-backend:0.9.2
build:
context: backend
env_file: .env
Expand All @@ -46,7 +45,7 @@ services:
URL_HOST: edgehog-backend
URL_PORT: 4000
URL_SCHEME: http
EDGEHOG_FORWARDER_HOSTNAME: device-forwarder.edgehog.localhost
EDGEHOG_FORWARDER_HOSTNAME: device-forwarder.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}
EDGEHOG_FORWARDER_PORT: 80
EDGEHOG_FORWARDER_SECURE_SESSIONS: "false"
restart: on-failure
Expand All @@ -63,21 +62,21 @@ services:
- minio-init
labels:
- "traefik.enable=true"
- "traefik.http.routers.edgehog-backend.rule=Host(`api.edgehog.localhost`)"
- "traefik.http.routers.edgehog-backend.rule=Host(`api.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}`)"
- "traefik.http.routers.edgehog-backend.entrypoints=web"
- "traefik.http.routers.edgehog-backend.service=edgehog-backend"
- "traefik.http.services.edgehog-backend.loadbalancer.server.port=4000"

edgehog-frontend:
image: edgehogdevicemanager/edgehog-frontend:0.9.1
image: edgehogdevicemanager/edgehog-frontend:0.9.2
build:
context: frontend
environment:
BACKEND_URL: http://api.edgehog.localhost/
BACKEND_URL: http://api.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}/
restart: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.routers.edgehog-frontend.rule=Host(`edgehog.localhost`)"
- "traefik.http.routers.edgehog-frontend.rule=Host(`${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}`)"
- "traefik.http.routers.edgehog-frontend.entrypoints=web"
- "traefik.http.routers.edgehog-frontend.service=edgehog-frontend"
- "traefik.http.services.edgehog-frontend.loadbalancer.server.port=80"
Expand All @@ -88,11 +87,11 @@ services:
RELEASE_NAME: edgehog-device-forwarder
SECRET_KEY_BASE: fXzwqLnU1V1bhfOwMRdm3tiGHRlfSpqmrw2aONac2QU4T9iwh3vjSIaweH1n0ZWg
PORT: 4001
PHX_HOST: device-forwarder.edgehog.localhost
PHX_HOST: device-forwarder.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}
restart: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.routers.edgehog-device-forwarder.rule=Host(`device-forwarder.edgehog.localhost`)"
- "traefik.http.routers.edgehog-device-forwarder.rule=Host(`device-forwarder.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}`)"
- "traefik.http.routers.edgehog-device-forwarder.entrypoints=web"
- "traefik.http.routers.edgehog-device-forwarder.service=edgehog-device-forwarder"
- "traefik.http.services.edgehog-device-forwarder.loadbalancer.server.port=4001"
Expand All @@ -107,11 +106,11 @@ services:
command: server --console-address ":9001" /data
labels:
- "traefik.enable=true"
- "traefik.http.routers.edgehog-minio-storage.rule=Host(`minio-storage.edgehog.localhost`)"
- "traefik.http.routers.edgehog-minio-storage.rule=Host(`minio-storage.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}`)"
- "traefik.http.routers.edgehog-minio-storage.entrypoints=web"
- "traefik.http.routers.edgehog-minio-storage.service=edgehog-minio-storage"
- "traefik.http.services.edgehog-minio-storage.loadbalancer.server.port=9000"
- "traefik.http.routers.edgehog-minio-console.rule=Host(`minio.edgehog.localhost`)"
- "traefik.http.routers.edgehog-minio-console.rule=Host(`minio.${DOCKER_COMPOSE_EDGEHOG_BASE_DOMAIN}`)"
- "traefik.http.routers.edgehog-minio-console.entrypoints=web"
- "traefik.http.routers.edgehog-minio-console.service=edgehog-minio-console"
- "traefik.http.services.edgehog-minio-console.loadbalancer.server.port=9001"
Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edgehog-device-manager-frontend",
"version": "0.9.1",
"version": "0.9.2",
"bugs": {
"url": "https://github.com/edgehog-device-manager/edgehog/issues"
},
Expand Down

0 comments on commit 472b713

Please sign in to comment.