Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docker-compose file with better local debugging support #1

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

paulirwin
Copy link
Member

This adds a docker-compose.yml file and updates the README to simplify running the app to just docker-compose up -d. This should greatly simplify the experience for new users running the emulator. The compose file also uses named volumes for easy persistence and access from the host for the keypair and database files.

In order to better support local debugging without having to have access to system folders, this uses an environment variable when running in Docker for the database and cert/key files, but defaults to a "data" folder within the repo so that the IDE/CLI does not need special permissions to /var (on macOS/Linux).

Additionally, the openssl command has been moved into keygen.sh which can be run locally for local development, but is also run by the container and is aware of those Docker Compose environment variables, falling back to the local data folder.

This adds a docker-compose.yml file and updates the README to simplify
running the app to just `docker-compose up -d`. This should greatly
simplify the experience for new users running the emulator. The compose
file also uses named volumes for easy persistence and access from the
host for the keypair and database files.

In order to better support local debugging without having to have access
to system folders, this uses an environment variable when running in
Docker for the database and cert/key files, but defaults to a "data"
folder within the repo so that the IDE/CLI does not need special
permissions to /var (on macOS/Linux).

Additionally, the openssl command has been moved into `keygen.sh` which
can be run locally for local development, but is also run by the
container and is aware of those Docker Compose environment variables,
falling back to the local data folder.
… add Rider file and gitignore Rider user settings
@paulirwin paulirwin merged commit af05fc6 into feature23:main Jan 11, 2024
1 check passed
@paulirwin paulirwin deleted the feature/docker-compose branch January 11, 2024 22:18
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