User Tools

Site Tools


rdm-dev:samdat_project_test-environment

This is an overview how I replicated the ICGEM website locally

The motivation is to test changes without the necessity to push them to the test-server. Here I can test updates for the website. And implement a relational metadatabase as a prototype.

Infrastructure. consists of 3 Docker containers:

  • WSGI container with the Cherypy code
  • nginx container with static files
  • mongodb container that replicates a test db. see tip#2 about configuration

Networking:

  • dbs connects wsgi and mongodb containers
  • www connects wsgi and nginx containers

Branching: the configuration files for infrastructure are not tracked by git (added to the .git/exclude). commits to other files can be merged, cherry-picked, rebased to feature branches.

Content of git exclude:

information specific to my device configuration: VScode on MacOS

  • Unordered List Item.code-workspace
  • Unordered List Item.DS_Store

configuration files

  • Unordered List Itemdb_dev.env #uri, password, username for test database
  • Unordered List Itemdev.yaml #DOCKER COMPOSE
  • Unordered List Iteminit-mongo.js #creating users for the mongodb
rdm-dev/samdat_project_test-environment.txt · Last modified: 2024/12/17 14:46 by torkhov