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

[TAXHUB V2] remove TaxHub service #39

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
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
7 changes: 0 additions & 7 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ USERSHUB_HOST="${HOST}"
USERSHUB_HOSTPORT="${HOSTPORT}"
USERSHUB_PREFIX="/usershub"

TAXHUB_IMAGE="ghcr.io/pnx-si/taxhub:latest"
TAXHUB_PROTOCOL="${BASE_PROTOCOL}"
TAXHUB_HOST="${HOST}"
TAXHUB_HOSTPORT="${HOSTPORT}"
TAXHUB_PREFIX="/taxhub"
TAXHUB_API_PREFIX="${TAXHUB_PREFIX}/api"

GEONATURE_BACKEND_EXTRA_IMAGE="ghcr.io/pnx-si/geonature-backend-extra:latest"
GEONATURE_BACKEND_PROTOCOL="${BASE_PROTOCOL}"
GEONATURE_BACKEND_HOST="${HOST}"
Expand Down
17 changes: 6 additions & 11 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
[submodule "GeoNature"]
path = sources/GeoNature
url = https://github.com/PnX-SI/GeoNature.git
branch = feat/docker-action
[submodule "TaxHub"]
path = sources/TaxHub
url = https://github.com/PnX-SI/TaxHub.git
branch = develop
url = ../GeoNature.git
[submodule "UsersHub"]
path = sources/UsersHub
url = https://github.com/PnX-SI/UsersHub.git
url = ../UsersHub.git
branch = develop
[submodule "gn_module_export"]
path = sources/gn_module_export
url = https://github.com/PnX-SI/gn_module_export.git
url = ../gn_module_export.git
[submodule "gn_module_import"]
path = sources/gn_module_import
url = https://github.com/PnX-SI/gn_module_import.git
url = ../gn_module_import.git
[submodule "gn_module_dashboard"]
path = sources/gn_module_dashboard
url = https://github.com/PnX-SI/gn_module_dashboard.git
url = ../gn_module_dashboard.git
[submodule "gn_module_monitoring"]
path = sources/gn_module_monitoring
url = https://github.com/PnX-SI/gn_module_monitoring
url = ../gn_module_monitoring
27 changes: 0 additions & 27 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ x-geonature-backend-env: &geonature-backend-env
GEONATURE_SQLALCHEMY_DATABASE_URI: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT:-5432}/${POSTGRES_DB}
GEONATURE_URL_APPLICATION: ${GEONATURE_FRONTEND_PROTOCOL}://${GEONATURE_FRONTEND_HOSTPORT}${GEONATURE_FRONTEND_PREFIX}
GEONATURE_API_ENDPOINT: ${GEONATURE_BACKEND_PROTOCOL}://${GEONATURE_BACKEND_HOSTPORT}${GEONATURE_BACKEND_PREFIX}
GEONATURE_API_TAXHUB: ${TAXHUB_PROTOCOL}://${TAXHUB_HOSTPORT}${TAXHUB_API_PREFIX}
GEONATURE_CONFIG_FILE: ${GEONATURE_CONFIG_FILE:-/dist/config/geonature_config.toml}
GEONATURE_CELERY__broker_url: ${GEONATURE_CELERY__broker_url:-redis://redis}
GEONATURE_CELERY__result_backend: ${GEONATURE_CELERY__result_backend:-redis://redis}
Expand Down Expand Up @@ -114,32 +113,6 @@ services:
- "traefik.http.routers.usershub.entrypoints=websecure"
- "traefik.http.routers.usershub.tls.certResolver=acme-resolver"

taxhub:
<<: [*restart-policy,*defaults]
image: ${TAXHUB_IMAGE}
depends_on:
postgres:
condition: service_healthy
geonature-install-db:
condition: service_completed_successfully
volumes:
- ./config/taxhub:/dist/config
- ./data/taxhub/medias:${TAXHUB_STATIC_FOLDER:-/dist/static}/medias
environment:
<<: *env-defaults
TAXHUB_APPLICATION_ROOT: "${TAXHUB_PREFIX}"
TAXHUB_SQLALCHEMY_DATABASE_URI: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT:-5432}/${POSTGRES_DB}
TAXHUB_SETTINGS: ${TAXHUB_SETTINGS:-/dist/config/config.py}
TAXHUB_UPLOAD_FOLDER: "medias"
TAXHUB_SQLALCHEMY_TRACK_MODIFICATIONS: False
TAXHUB_COOKIE_EXPIRATION: 3600
TAXHUB_PASS_METHOD: "hash"
labels:
- "traefik.enable=true"
- "traefik.http.routers.taxhub.rule=Host(`${TAXHUB_HOST}`) && PathPrefix(`${TAXHUB_PREFIX}`)"
- "traefik.http.routers.taxhub.entrypoints=websecure"
- "traefik.http.routers.taxhub.tls.certResolver=acme-resolver"

geonature-install-db:
<<: *geonature-backend-defaults
command: "geonature permissions supergrant --yes ${GEONATURE_SUPERGRANT_ARGS:---help}"
Expand Down
5 changes: 1 addition & 4 deletions init-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ if [ ! -f config/geonature/geonature_config.toml ]; then
fi
if [ ! -f config/usershub/config.py ]; then
echo SECRET_KEY = \"$(openssl rand -hex 16)\" > config/usershub/config.py
fi
if [ ! -f config/taxhub/config.py ]; then
echo SECRET_KEY = \"$(openssl rand -hex 16)\" > config/taxhub/config.py
fi
fi
1 change: 0 additions & 1 deletion sources/TaxHub
Submodule TaxHub deleted from 14614a