Skip to content

Conversation

@UDtorrey
Copy link
Collaborator

@UDtorrey UDtorrey commented May 6, 2025

tl;dr

config and instructions as needed to deploy alpha environment into a GCP project nomulus pre-alpha2.
1st attempt at clean doc for depeloyment
be aware of the testFilter=whatever in the gradle.properties. This is a work around if tests are failing on the build/deploy machine.

Copliot generate summary

This pull request introduces several updates to support the nomulus-pre-alpha2 environment, including configuration changes, deployment instructions, and database adjustments. It also includes updates to premium list files, TLD configurations, and scaling parameters for various services.

Configuration and Deployment Updates:

  • Added detailed deployment notes for the nomulus-pre-alpha2 environment in UD_README.md, including build and deployment commands, as well as instructions for running the Nomulus CLI tool locally.
  • Updated nomulus-config-alpha.yaml with environment-specific settings for nomulus-pre-alpha2, including GCP project details, OAuth configurations, and Cloud SQL connection settings.
  • Modified gradle.properties to include database connection details and Java home configuration for the new environment.
  • Updated projects.gradle to point the alpha environment to nomulus-pre-alpha2.

Database and Cloud SQL Adjustments:

  • Updated the jdbcUrl in default-config.yaml to include the port number for the local PostgreSQL instance.
  • Simplified the Docker image name logic in NomulusPostgreSql.java by removing architecture-specific prefixes.

Premium Lists and TLD Configuration:

  • Added example premium list files (demo1.txt and demo2.txt) for managing premium domains with the Nomulus tool. [1] [2]
  • Introduced TLD configuration files (demo1.yaml and demo2.yaml) to define settings for the demo1 and demo2 TLDs. [1] [2]

Scaling and Resource Optimization:

  • Reduced max-instances for various services in appengine-web.xml files to optimize resource usage in the alpha environment:
    • Backend and BSA services: Reduced from 100 to 2. [1] [2]
    • Default, PubAPI, and Tools services: Reduced to 1. [1] [2] [3]
  • Commented out the VPC access connector configuration for the BSA service to reflect the new environment setup.

nomulus_version=
dot_path=/usr/bin/dot
pipeline=
org.gradle.java.home=/opt/homebrew/opt/openjdk@21
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this line is required, as Gradle picks up the correct JDK automatically for me without it. WOuld be better to keep out env-specific paths (this path doesn't work on my laptop)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

Comment on lines 32 to 35
dbServer=127.0.0.1:15432
dbName=nomulus
dbUser=nomulus
dbPassword=changeMe123
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we replace these db* variables with the empty ones above so they aren't repeated?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@qrtp qrtp marked this pull request as draft May 21, 2025 13:47
@qrtp
Copy link
Collaborator

qrtp commented May 21, 2025

@UDtorrey I converted this to a draft so that we don't accidentally merge it. Leaving as a branch/PR should be sufficient for us to use in local builds for now until we have other options 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants