You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Das Extraction-API konnte lokal mit folgenden Anpassungen eingebunden werden. Inzwischen gabe es noch Anpassungen, weshalb evt. nicht mehr alle Schritte notwendig sind:
Repo auschecken und folgende Anpassungen im Code machen (evt. inzwischen veraltet)
config.py
# TODO: check how this is used on the VM
aws_access_key_id: str = os.environ.get("AWS_ACCESS_KEY_ID")
aws_secret_key_access: str = os.environ.get("AWS_SECRET_ACCESS_KEY")
# aws_session_token = os.environ.get("AWS_SESSION_TOKEN")
aws_endpoint: str = os.environ.get("AWS_ENDPOINT")
aws.py
# Initialize the S3 client
# AWS S3 Configuration
s3_client = boto3.client(
"s3",
endpoint_url=config.aws_endpoint,
aws_access_key_id=config.aws_access_key_id,
aws_secret_access_key=config.aws_secret_key_access,
)
...
# -> filename war hier (und an diversen anderen Stellen) als path drin, wird aber als string erwartet
def load_data_from_aws(filename: str, prefix: str = "") -> bytes:
key = f"{prefix}/{filename}" if prefix else f"{filename}"
try:
png_object = s3_client.get_object(Bucket=config.bucket_name, Key=key)
except s3_client.exceptions.NoSuchKey:
raise HTTPException(
status_code=404,
detail=f"Document {key} not found in S3 bucket.", # -> {prefix + filename} ist nicht valid
) from None
Image mit docker build -t borehole-api . -f Dockerfile erstellen
labeling.cy.js
aktivieren (setzt voraus, dass Zeichnen bei bereits geöffnetem Panel funktioniert nicht #1545 behoben ist)--> Alle TODOs sind im Code mit
TODO: https://github.com/swisstopo/swissgeol-boreholes-suite/issues/1546
markiertThe text was updated successfully, but these errors were encountered: