-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit be5e45b
Showing
562 changed files
with
127,883 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# https://editorconfig.org/ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.py] | ||
indent_size = 4 | ||
max_line_length = 88 | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Pipfile.lock] | ||
indent_size = 2 | ||
|
||
[{Pipfile,*.toml}] | ||
indent_size = 4 | ||
|
||
[*.{js,jsx,ts,tsx,vue}] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
EURYDICE_VERSION="latest" | ||
|
||
LIDI_VERSION="latest" | ||
LIDIR_HOST="127.0.0.1" | ||
|
||
DJANGO_SECRET_KEY="fgjd" | ||
|
||
TRANSFERABLE_HISTORY_DURATION="15min" | ||
TRANSFERABLE_HISTORY_SEND_EVERY="1min" | ||
TRANSFERABLE_RANGE_SIZE="150MB" | ||
|
||
UI_BADGE_CONTENT="Local -> Local" | ||
UI_BADGE_COLOR="brown" | ||
|
||
MINIO_ENABLED="true" | ||
MINIO_DATA_DIR="/tmp/eurydice/minio-data" | ||
MINIO_CONF_DIR="/tmp/eurydice/minio-conf" | ||
MINIO_ACCESS_KEY="minio" | ||
MINIO_SECRET_KEY="gjhfdfdsh" | ||
TRANSFERABLE_STORAGE_DIR="/tmp/eurydice/storage-data" | ||
|
||
DB_PASSWORD="dbpass" | ||
DB_DATA_DIR="/tmp/eurydice/db-data" | ||
DB_LOGS_DIR="/tmp/eurydice/db-logs" | ||
|
||
FILEBEAT_LOGS_DIR="/tmp/eurydice/filebeat-logs" | ||
FILEBEAT_DATA_DIR="/tmp/eurydice/filebeat-data" | ||
FILEBEAT_CONFIG_PATH="./filebeat/filebeat.null.yml" | ||
|
||
LOG_TO_FILE=true | ||
PYTHON_LOGS_DIR="/tmp/eurydice/python-logs/" | ||
ELASTICSEARCH_CERT_PATH="/etc/ssl/certs/ca-certificates.crt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: Checks then build and push | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
backend-checks: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' # Specify the Python version you need | ||
|
||
- name: Install pipenv | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pipenv | ||
- name: Install dependencies | ||
run: | | ||
cd backend | ||
pipenv install --dev | ||
- name: Run checks | ||
run: | | ||
cd backend | ||
pipenv run make checks | ||
frontend-checks: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install dependencies | ||
run: | | ||
cd frontend | ||
npm install | ||
- name: Run checks | ||
run: | | ||
cd frontend | ||
make lint | ||
build_and_push: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: DockerHub Login | ||
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Docker build the backend docker image | ||
run: | | ||
docker build --target prod --build-arg EURYDICE_VERSION=${GITHUB_REF#refs/tags/} --file ./backend/docker/Dockerfile --tag anssi/eurydice-backend:${GITHUB_REF#refs/tags/} backend | ||
- name: Docker build the frontend docker image | ||
run: | | ||
docker build --target prod --build-arg EURYDICE_VERSION=${GITHUB_REF#refs/tags/} --file ./frontend/docker/Dockerfile --tag anssi/eurydice-frontend:${GITHUB_REF#refs/tags/} frontend | ||
- name: Docker push backend docker image | ||
run: | | ||
docker push anssi/eurydice-backend:${GITHUB_REF#refs/tags/} | ||
- name: Docker push frontend docker image | ||
run: | | ||
docker push anssi/eurydice-frontend:${GITHUB_REF#refs/tags/} |
Oops, something went wrong.