Skip to content

Commit

Permalink
fix localdev and rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
tiptenbrink committed Dec 5, 2023
1 parent db73b7c commit 5d0f6de
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 12 deletions.
9 changes: 9 additions & 0 deletions build/deploy/dev/confspawn_dev.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# The docker compose project name
COMPOSE_PROJECT_NAME={{ main.project }}
NETWORK_NAME={{ main.docker_net_name }}
DEPLOY_NAME={{ confspawn_env.name }}

# This .env file contains environment variables used during deployment
# The host port will be the port that the host will open, i.e. what nginx will connect to. Hostname defined by HOST_HOST
Expand Down Expand Up @@ -34,4 +35,12 @@ SERVER_HOST_PORT={{ server.host_port }}
COMCOM_MAIL_PASS=""
KEY_PASSWORD="AT_av0v62Z3hQH50VYwKBks1-VSukK9xDN_Ur34mdZ4"

SERVER_DB_HOST="{{ db.container_name }}-{{ confspawn_env.name }}"
SERVER_DB_PORT="{{ db.container_port }}"
SERVER_KV_HOST="{{ kv.container_name }}-{{ confspawn_env.name }}"
SERVER_KV_PORT="{{ kv.container_port }}"
SERVER_MAIL_ENABLED ="{{ confspawn_env.mail_enabled }}"
SERVER_SMTP_SERVER ="{{ confspawn_env.smtp_server }}"
SERVER_SMTP_PORT ="{{ server.smtp_port }}"

RECREATE=no
8 changes: 8 additions & 0 deletions build/deploy/dev/confspawn_dev_port.env
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,12 @@ SERVER_HOST_PORT={{ server.host_port }}
COMCOM_MAIL_PASS=""
KEY_PASSWORD="AT_av0v62Z3hQH50VYwKBks1-VSukK9xDN_Ur34mdZ4"

SERVER_DB_HOST="{{ db.container_name }}-{{ confspawn_env.name }}"
SERVER_DB_PORT="{{ db.container_port }}"
SERVER_KV_HOST="{{ kv.container_name }}-{{ confspawn_env.name }}"
SERVER_KV_PORT="{{ kv.container_port }}"
SERVER_MAIL_ENABLED ="{{ confspawn_env.mail_enabled }}"
SERVER_SMTP_SERVER ="{{ confspawn_env.smtp_server }}"
SERVER_SMTP_PORT ="{{ server.smtp_port }}"

RECREATE=no
6 changes: 3 additions & 3 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ realm="dodeka"

[confspawn_env.production]
name = "production"
version = "v2.1.0"
git_ref = "v2.1.0"
version = "v2.1.1"
git_ref = "v2.1.1"
allowed_envs = "\"production\""
# Only the credentials url is with trailing slash, the rest should all be without
api_root = "https://api.dsavdodeka.nl"
Expand All @@ -65,7 +65,7 @@ mail_enabled = true

[confspawn_env.staging]
name = "staging"
version = "v2.1.0-rc.2"
version = "v2.1.1"
git_ref = "main"
allowed_envs = "\"staging\""
api_root = "https://apidemo.tipten.nl"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dodeka"
version = "2.1.0"
version = "2.1.1"
description = ""
authors = ["Tip ten Brink <[email protected]>"]

Expand Down
2 changes: 1 addition & 1 deletion use/data_sync/migrate_env.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
poetry run python -c "from use.data_sync.migrate import download_migration_env; download_migration_env('v2.1.0')" || exit 1
poetry run python -c "from use.data_sync.migrate import download_migration_env; download_migration_env('v2.1.1')" || exit 1
cp use/data_sync/connect.json migrate/connect.json
9 changes: 9 additions & 0 deletions use/dev/dev.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# The docker compose project name
COMPOSE_PROJECT_NAME=dodeka
NETWORK_NAME=dodeka
DEPLOY_NAME=localdev

# This .env file contains environment variables used during deployment
# The host port will be the port that the host will open, i.e. what nginx will connect to. Hostname defined by HOST_HOST
Expand Down Expand Up @@ -34,4 +35,12 @@ SERVER_HOST_PORT=4241
COMCOM_MAIL_PASS=""
KEY_PASSWORD="AT_av0v62Z3hQH50VYwKBks1-VSukK9xDN_Ur34mdZ4"

SERVER_DB_HOST="dodeka-db-localdev"
SERVER_DB_PORT="3141"
SERVER_KV_HOST="dodeka-kv-localdev"
SERVER_KV_PORT="6379"
SERVER_MAIL_ENABLED ="False"
SERVER_SMTP_SERVER ="mail.dsavdodeka.nl"
SERVER_SMTP_PORT ="587"

RECREATE=no
8 changes: 8 additions & 0 deletions use/dev/dev_port.env
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,12 @@ SERVER_HOST_PORT=4241
COMCOM_MAIL_PASS=""
KEY_PASSWORD="AT_av0v62Z3hQH50VYwKBks1-VSukK9xDN_Ur34mdZ4"

SERVER_DB_HOST="dodeka-db-localdev"
SERVER_DB_PORT="3141"
SERVER_KV_HOST="dodeka-kv-localdev"
SERVER_KV_PORT="6379"
SERVER_MAIL_ENABLED ="False"
SERVER_SMTP_SERVER ="mail.dsavdodeka.nl"
SERVER_SMTP_PORT ="587"

RECREATE=no
6 changes: 3 additions & 3 deletions use/production/production.env
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ SERVER_SMTP_SERVER ="host.docker.internal"
SERVER_SMTP_PORT ="587"

# Docker tag versions
KV_VERSION=v2.1.0
DB_VERSION=v2.1.0
SERVER_VERSION=v2.1.0
KV_VERSION=v2.1.1
DB_VERSION=v2.1.1
SERVER_VERSION=v2.1.1

# The following are not specified and should be specified in a script:
# - COMCOM_MAIL_PASS
Expand Down
2 changes: 1 addition & 1 deletion use/production/tidploy.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[info]
latest = "v2.1.0"
latest = "v2.1.1"

[secrets]
ids = [
Expand Down
6 changes: 3 additions & 3 deletions use/staging/staging.env
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ SERVER_SMTP_PORT ="587"

# Docker tag versions
# In practice for staging you will want to override these
KV_VERSION=v2.1.0-rc.2
DB_VERSION=v2.1.0-rc.2
SERVER_VERSION=v2.1.0-rc.2
KV_VERSION=v2.1.1
DB_VERSION=v2.1.1
SERVER_VERSION=v2.1.1

# The following are not specified and should be specified in a script:
# - COMCOM_MAIL_PASS
Expand Down

0 comments on commit 5d0f6de

Please sign in to comment.