Skip to content

Repository files navigation

LIneA User Query (Development)

This application is meant to be used with the Django version of the Daiquiri Framework.

This project is currently in an early stage of development and by no means production ready.

Requirements

  • Docker version 25.0.1
  • git version 2.39.3
  • Vscode + devcontainer extension
  • Acesso ao banco de dados desdb4 - prod_gavo
  • Python 3.13 (dentro da imagem Docker do backend)

Docs

Setup Development Environment

https://github.com/linea-it/lsp_daiquiri/blob/master/compose/local/README.md

Setup Production Environment

https://github.com/linea-it/lsp_daiquiri/blob/master/compose/production/README.md

Build Manual da Imagem docker

Estando logado no dockerhub pelo terminal execute o build e o push da imagem do daiquiri.

Docker Hub: https://hub.docker.com/repository/docker/linea/lsp_daiquiri/

A identificação unica de cada imagem pode ser o numero de versão exemplo: linea/lsp_daiquiri:v0.1 ou o hash do commit para versões de desenvolvimento: linea/lsp_daiquiri:8816330.

Para obter o hash do commit usar o comando $(git describe --always)

docker build -f compose/local/daiquiri/Dockerfile -t linea/lsp_daiquiri:$(git describe --always) .
docker push linea/lsp_daiquiri:$(git describe --always)

Load Query Examples

Edit daiquiri/fixtures/query_samples.json, then run this command to import the queries:

docker compose exec backend python manage.py loaddata query_samples.json

Register Tables

First, go to the management menu → metadata management → create a new schema entry, and register the schema and table via the interface.

After registering, use this command to import table and column descriptions. The schema fixture is located at: daiquiri/fixtures/des_dr2.yml

docker compose exec backend python manage.py update_table_metadata des_dr2

Testes de regressão do upgrade

Após subir os serviços, rode:

docker compose exec backend python manage.py test tests.test_upgrade_regression -v 2

About

Based on Daiquiri@AIP, the User Query platform provides an intuitive interface for SQL and ADQL queries, together with personal workspaces through MyDB.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages