-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from openimis/release/24.04
Release/24.04
- Loading branch information
Showing
33 changed files
with
1,780 additions
and
50,725 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,35 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile | ||
{ | ||
"name": "BE Dev Container", | ||
"build": { | ||
// Sets the run context to one level up instead of the .devcontainer folder. | ||
"context": "..", | ||
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. | ||
"dockerfile": "../Dockerfile" | ||
}, | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Uncomment the next line to run commands after the container is created. | ||
"postCreateCommand": "cd openimis && python manage.py runserver", | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-python.python", | ||
"eamodio.gitlens", | ||
"esbenp.prettier-vscode", | ||
"formulahendry.code-runner" | ||
] | ||
} | ||
} | ||
|
||
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "devcontainer" | ||
} |
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 |
---|---|---|
@@ -1,26 +1,46 @@ | ||
# Database engine, should be changed for mssql | ||
DB_ENGINE=django.db.backends.postgresql | ||
# Database host | ||
DB_HOST=<host> | ||
# Database port | ||
DB_PORT=<port> | ||
# Database name | ||
DB_NAME=<db> | ||
# Database username | ||
DB_USER=<username> | ||
# Database user password | ||
DB_PASSWORD=<password> | ||
# Database PSQL | ||
PSQL_DB_USER=IMISuser | ||
PSQL_DB_PASSWORD=IMISuser@1234 | ||
PSQL_DB_PORT=5432 | ||
PSQL_DB_ENGINE=django.db.backends.postgresql | ||
PSQL_DB_HOST=127.0.0.1 | ||
PSQL_DB_NAME=test_imis | ||
# Database MSSQL | ||
MSSQL_DB_PORT=1433 | ||
MSSQL_DB_ENGINE=mssql | ||
MSSQL_DB_USER=SA | ||
MSSQL_DB_PASSWORD=IMISuser@1234 | ||
MSSQL_DB_NAME=test_imis | ||
MSSQL_DB_HOST=127.0.0.1 | ||
|
||
DB_NAME=test_imis | ||
DB_TEST_NAME=test_imis | ||
|
||
# Site root that will prefix all exposed endpoints. It's required when working with openIMIS frontend | ||
SITE_ROOT=api | ||
# Should the debug be on (i.e. debug information will be displayed) | ||
DEBUG=True | ||
# Log level to be used. Remove for default. | ||
DJANGO_LOG_LEVEL=WARNING | ||
# Log handler to be used, reffer to openIMIS/openIMIS/settings.py. Remove for default. | ||
DJANGO_LOG_HANDLER=debug-log | ||
MODE=DEV | ||
# this will also show the DB request in the console | ||
DJANGO_DB_LOG_HANDLER=console | ||
# Photo path root used in insuree module. Only used if InsureeConfig value not specified. Comment out for default. | ||
PHOTO_ROOT_PATH=<photo path> | ||
#PHOTO_ROOT_PATH=<photo path> | ||
# Should the database be migrated before start (entrypoint.sh - docker setup). Will be migrated anyway if $SITE_ROOT=api. Comment out for False | ||
DJANGO_MIGRATE=True | ||
# Should the modules be searched for scheduled tasks. Comment out for false | ||
# SCHEDULER_AUTOSTART=True | ||
PROJECT_NAME=dev | ||
NEW_OPENIMIS_HOST=dev-openimis.org | ||
HTTP_PORT=80 | ||
HTTPS_PORT=443 | ||
DB_DEFAULT=PSQL | ||
# Comment if you don't want to initialize with the demo dataset | ||
INIT_MODE=demo | ||
DB_BRANCH=develop | ||
GW_BRANCH=develop | ||
BE_BRANCH=develop | ||
FE_BRANCH=develop | ||
|
||
|
||
|
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
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,12 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for more information: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
# https://containers.dev/guide/dependabot | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "devcontainers" | ||
directory: "/" | ||
schedule: | ||
interval: weekly |
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,23 @@ | ||
name: Sonar CI pipeline | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'release/**' | ||
- develop | ||
- 'feature/**' | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
sonarcloud: | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
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
Oops, something went wrong.