Skip to content

Commit

Permalink
SDKTECHNO-271: add app for apps storages backup-restore
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilienLeroux committed Oct 3, 2024
1 parent 71ed690 commit 6aaa1af
Show file tree
Hide file tree
Showing 207 changed files with 3,944 additions and 0 deletions.
28 changes: 28 additions & 0 deletions technologies/app/saagie-app-storages-backup-restore/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Saagie backup_restore_apps

## Description

TODO

## How to launch it

TODO

## Description

### Variables d'environnement
- `BACKUP_LIST_APP_ID`: Liste des ID d'applications à sauvegarder
- `BACKUP_URL`: URL de Saagie
- `BACKUP_USER`: Utilisateur de Saagie
- `BACKUP_PASSWORD`: Mot de passe de Saagie
- `BACKUP_PF_ID`: ID de la plateforme de Saagie
- `BACKUP_S3_ENDPOINT`: Endpoint de l'objet de stockage
- `BACKUP_REGION_NAME`: Nom de la région de l'objet de stockage
- `BACKUP_S3_ACCESS_KEY_ID`: Clé d'accès de l'objet de stockage
- `BACKUP_S3_SECRET_ACCESS_KEY`: Clé secrète de l'objet de stockage
- `BACKUP_STORAGE_FOLDER`: Dossier de stockage, Path directory on image
- `BACKUP_S3_BUCKET_NAME`: Nom du bucket de l'objet de stockage où sauvegarder les apps
- `BACKUP_S3_PREFIX`: Préfixe du bucket de l'objet de stockage où sauvegarder les apps
- `BACKUP_APP_PROJECT_ID`: ID du projet de l'app
- `BACKUP_TMP_APP_PREFIX`: Préfixe nom de l'app temporaire
- `REACT_VERSION`: Version of React. In order to use dash-mantine-components>=0.14, you have to set up this variable to `18.2.0`
32 changes: 32 additions & 0 deletions technologies/app/saagie-app-storages-backup-restore/metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
version: v1
type: APP
id: saagie-app-storages-backup-restore
label: Saagie App Storages Backup Restore
baseline: "Saagie App Storages Backup Restore is a Saagie application that allows you to backup and restore your Saagie platform storages."
description: "Saagie App Storages Backup Restore is a Saagie application that allows you to backup and restore your Saagie platform storages."
available: true
icon: project-activity
defaultResources:
cpu:
limit: 1
memory:
limit: 2 GiB
backgroundColor: "#253c5b"
customFlags: []
readme: /technologies/app/saagie-app-storages-backup-restore/README.md

contexts:
- id: saagie-app-storages-backup-restore-2024.04
label: For Saagie 2024.04
releaseNotes: ""
available: true
trustLevel: stable
ports:
- port: 8050
name: saagie-app-storages-backup-restore
rewriteUrl: false
basePath: SAAGIE_BASE_PATH
dockerInfo:
image: "saagie/saagie-app-storages-backup-restore"
baseTag: "2024.04-0.1"
version: "2024.04-0.1-1.191.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea
*.ignore.*
.envrc
*.zip
__pycache__
*.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.9-slim

USER root

COPY . /
RUN pip install -r app/requirements.txt
RUN apt-get update && apt-get install -y --no-install-recommends curl

EXPOSE 8050
WORKDIR /app
CMD ["python", "./app.py"]
Loading

0 comments on commit 6aaa1af

Please sign in to comment.