Polishing...
This commit is contained in:
parent
7dbc8dcdc6
commit
78f7d960d6
6 changed files with 6 additions and 40 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -3,7 +3,7 @@
|
|||
*.pyc
|
||||
venv
|
||||
.env
|
||||
.env-hobby
|
||||
.env_hobby
|
||||
.vscode
|
||||
dump.rdb
|
||||
.idea
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ services:
|
|||
condition: service_healthy
|
||||
|
||||
grafana:
|
||||
image: "grafana/grafana:8.5.5"
|
||||
image: "grafana/grafana:9.0.0-beta3"
|
||||
restart: always
|
||||
mem_limit: 500m
|
||||
cpus: 0.5
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ services:
|
|||
- with_grafana
|
||||
|
||||
grafana:
|
||||
image: "grafana/grafana:8.3.2"
|
||||
image: "grafana/grafana:9.0.0-beta3"
|
||||
mem_limit: 500m
|
||||
ports:
|
||||
- 3000:3000
|
||||
|
|
|
|||
|
|
@ -1,34 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
export DJANGO_SETTINGS_MODULE=settings.all_in_one
|
||||
|
||||
generate_value_if_not_exist ()
|
||||
{
|
||||
if [ ! -f /etc/app/secret_data/$1 ]; then
|
||||
touch /etc/app/secret_data/$1
|
||||
base64 /dev/urandom | head -c $2 > /etc/app/secret_data/$1
|
||||
fi
|
||||
export $1=$(cat /etc/app/secret_data/$1)
|
||||
}
|
||||
|
||||
generate_value_if_not_exist SECRET_KEY 75
|
||||
|
||||
generate_value_if_not_exist MIRAGE_SECRET_KEY 75
|
||||
generate_value_if_not_exist MIRAGE_CIPHER_IV 16
|
||||
|
||||
export BASE_URL=http://localhost:8000
|
||||
|
||||
echo "Starting redis in the background"
|
||||
# Redis will dump the changes to the volume every 60 seconds if at least 1 key changed
|
||||
redis-server --daemonize yes --save 60 1 --dir /etc/app/redis_data/
|
||||
echo "Running migrations"
|
||||
python manage.py migrate
|
||||
|
||||
echo "Start celery"
|
||||
python manage.py start_celery &
|
||||
|
||||
# Postponing token issuing to make sure it's the last record in the console.
|
||||
bash -c 'sleep 10; python manage.py issue_invite_for_the_frontend --override' &
|
||||
|
||||
echo "Starting server"
|
||||
python manage.py runserver 0.0.0.0:8000 --noreload
|
||||
|
|
@ -299,7 +299,7 @@ http://localhost:8000
|
|||
>
|
||||
<Input id="onCallApiUrl" onChange={handleApiUrlChange} defaultValue={onCallApiUrl} />
|
||||
</Field>
|
||||
<Field label="Grafana Url" description="URL of the current Grafana instance. ">
|
||||
<Field label="Grafana URL" description="URL of the current Grafana instance. ">
|
||||
<Input id="grafanaUrl" onChange={handleGrafanaUrlChange} defaultValue={grafanaUrl} />
|
||||
</Field>
|
||||
{/* <WithConfirm title="Admin API key for OnCall will be created in Grafana. Continue?" confirmText="Continue"> */}
|
||||
|
|
|
|||
|
|
@ -289,7 +289,7 @@ const CloudPage = observer((props: CloudPageProps) => {
|
|||
</Button>
|
||||
) : (
|
||||
<Button variant="primary" onClick={syncUsers} icon="sync">
|
||||
Sync users
|
||||
Sync users (Editors and Admins)
|
||||
</Button>
|
||||
)}
|
||||
</HorizontalGroup>
|
||||
|
|
@ -351,7 +351,7 @@ const CloudPage = observer((props: CloudPageProps) => {
|
|||
<Icon name="bell" className={cx('block-icon')} size="lg" /> SMS and phone call notifications
|
||||
</Text.Title>
|
||||
|
||||
<Text type="secondary">Users matched between OSS and Cloud OnCall currently unavialable.</Text>
|
||||
<Text type="secondary">Users matched between OSS and Cloud OnCall currently unavailable.</Text>
|
||||
</VerticalGroup>
|
||||
</Block>
|
||||
</VerticalGroup>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue