-
Notifications
You must be signed in to change notification settings - Fork 0
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
Merge project setup with appropriate local dev environment settings #1
Merged
+1,887
−705
Merged
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
f10d29c
Configured pytest for dev environment
katporks dc3fe33
updated wagtail
katporks 235752b
Separated dockerfile, dockercompose builds into different environments
katporks d824b93
Automated docker-compose migration for local development
katporks bf8315e
Added make command for refreshing the db
katporks b73fa89
Added COPYING and LICENSE
katporks 8a3f66b
Wrote README.md
katporks 322d42d
Configuring workflow - hot_osm.yml
katporks f2693a0
Removed example workflow
katporks 9be6ae2
Changed pytest to pytest-django for db reliant tests
katporks 00db28d
Trying hot_osm github workflow for image builds
katporks edbcb12
Fix: Added action file to correct directory
katporks 5ae2a8e
Configuring hotosm Image Build workflow
katporks 050de02
Fix: GH actions troubleshoot - removed static files from .dockerignore
katporks 6300058
Automated superuser creation for local environments based .env.dev
katporks 5a33eaf
Updated README to reflect .env.dev superuser creation
katporks 7149d28
Added hotosm's pytest GH workflow
katporks cd75256
Fix: Removed colon from img tag and replaced it with hyphen
katporks c489492
Fix: Drew out conditionals in attempt to fix formatting error
katporks dbf2048
Fix: found the source of tag in image_build.yml
katporks 592ee86
Fix: added build_context and build_dockerfile
katporks 60097f7
Fix: Debugging pytest action through Dockerfile
katporks 5668bd1
Fix: added ci declaration to fix pytest workflow
katporks 80bfa62
Synthesized example .envs into .env.example
katporks bcc1caa
Added image tag to docker-compose.dev.yml
katporks 11d2c42
Separated workflows for image build and pytest
katporks 0907b84
Switched workflow to test via docker compose
katporks f9c6610
Formatted branches + added dev env to workflow
katporks c2dcb86
Streamlined pytest.yml
katporks b62c193
Removed redundant Dockerfile for previous workflow
katporks dd37061
Removed pipenv in favour of poetry
katporks 44368df
Removed conditional environments for .env
katporks 83c7d35
Removed references to alternate .env
katporks e17fad0
Fix: Changed docker service name
katporks 86185e4
Fix: Added wait-for-it and pytest-timeout due to infinite test loop
katporks 36090d8
Fix: Changed script order in Dockerfile
katporks bbaf88e
Fix: Loading environment from .env in docker-compose
katporks 8d0c0ea
Fix: Corrected example DB_HOST to match docker service
katporks f8cbf41
Fix: Added time out to wait-for-it.sh
katporks f0327a7
Fix: Corrected example db port
katporks cee5e31
Fix: Updated default example values
katporks 769ffa7
Linked postgres variables to .env file
katporks c0f2c1f
Removed wait-for-it script
katporks ca50dbb
Added shell command for gh workflow
katporks 379bb4a
Fix: Updated .env.example for substitution
katporks 3fe991c
Updated .gitignore
katporks 7b7956c
Added wait for it command in docker compose
katporks 7a2bce7
Added sleep for 10 seconds before running the server
katporks 4862f85
Added health check to address db timeout
katporks 74639fa
Removed pytest timeout for testing purposes
katporks a29fb2e
Added missing default values to .env.example
katporks ec1ba1d
Switched from docker-compose to docker compose
katporks c00cb08
Added secrets: inherit to workflows
katporks 6607bdf
Separated builds into base and server
katporks 084d80e
Added test build to Dockerfile and test service in docker-compose.dev…
katporks bbd2205
Added build_target
katporks 53fa061
Added blank compose_command
katporks 5f4e14d
Added gunicorn package
katporks 96dc863
Removed pip install gunicorn
katporks 24f3514
Added permissions to wagtail user for pytest to run
katporks c630de3
Testing location of pytest as compose_command
katporks 3379af2
Testing pytest compose_command with path st in Dockerfile.dev
katporks 379e2d7
Revert "Testing pytest compose_command with path st in Dockerfile.dev"
katporks 392956c
Revert "Testing location of pytest as compose_command"
katporks a37ae16
Revert "Added permissions to wagtail user for pytest to run"
katporks a3be2d0
Removed pip install gunicorn
katporks f9ddd47
Testing with a failing test
katporks f97f16a
Revert "Testing with a failing test"
katporks 833067e
Updated poetry dependencies
katporks 5b7ffc2
build: combine dockerfiles into single multistage
spwoodcock f1e87cd
docs: update refs to Dockerfile.dev
spwoodcock 58f9bf9
build: update compose config to use targets + pinned postgres
spwoodcock 1c202fe
ci: update workflows to use single dockerfile
spwoodcock f8bde7e
ci(pytest): use web service instead, removed test svc
spwoodcock 615df59
build: fix typo in requirements.txt file
spwoodcock e1d0916
refactor: add to dockerignore
spwoodcock e411466
build: fix appuser --> wagtail for dep copy
spwoodcock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added make command for refreshing the db
commit bf8315ecaea1a3110c537d5c338c3dd089ae3a7f
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
recent versions of docker-compose use
docker compose
without the-
so this is breaking in my local tests.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docker compose V2 is much better (
docker compose
). It's Golang / much faster & has plugins inbuilt like buildkit.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dakotabenjamin @spwoodcock gotcha! I'll switch to
docker compose
. thanks!