-
Notifications
You must be signed in to change notification settings - Fork 2
add support for reading .j2 config files with jinja #246
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
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
f474076
feat(config): support for reading .j2 config files with jinja
aelanman dcd60f5
fix: update requirements
aelanman 510940b
style: blacken and fix docstring for linter
aelanman 8c1b978
Update test_state.py and bump up version of redis gh action
aelanman 98d01d3
fix: fixing unit tests
6c4c449
lint: blacken
6f16cbe
fix: run apt-get update in actions
51ad05b
fix: raise version in actions because requires python>3.8
32ef123
fix: set_start_method causes RuntimeError if run twice
a9a4aae
fix: need a longer buffer time in test_wait
fc15d64
ci: avoid running black on files generated by gh actions
7c6c51d
fix: enforce subprocess method
0ef65fa
feat: add get-coco-config endpoint
047b014
fix: update dockerfile
06a91cc
feat option in coco client script to pull config from backend
41e2359
fix: support python 3.8 to 3.11
b8423b2
feat: save part of returned json to state
c37247c
fix: handle timeout errors in StateReplyCheck
54588c4
fix: Clear space in docker image
1f02a71
fix dockerfile
2f0a8b3
fix:syntax in gh actions
1c58ef1
fix(test): extra internal endpoint means this value must be raised by…
660e74f
restore commented line
d4358ef
fix: use ThreadingWSGIServer in metric.py instead of deprecated _Thre…
7f1648e
feat: option to report request latencies for external forwards
7322d90
test: check that latencies are returned properly for different report…
a0542c8
docs: include report_latency in docstring
751bc28
Revert "fix: use ThreadingWSGIServer in metric.py instead of deprecat…
50d0f86
fix: remove failing line from Dockerfile
0d28ea8
feat: also report queueing time
d5de0f1
ci(main): slight fixes to main workflows
ljgray 6735359
feat(state): re-impement simple yaml/jinja loader and remove kotekan …
ljgray b3e2861
style: blackify
ljgray 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
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,22 @@ | ||
| # Use an official Python runtime as a base image | ||
| FROM python:3.7-slim | ||
| FROM python:3.10-slim | ||
|
|
||
| ## The maintainer name and email | ||
| LABEL maintainer="CHIME/FRB Collaboration" | ||
|
|
||
| ADD . /coco | ||
|
|
||
| RUN apt-get update && \ | ||
| apt-get install -y apt-utils && \ | ||
| apt-get install -y software-properties-common && \ | ||
| apt-get install -y git && \ | ||
| apt-get install -y build-essential && \ | ||
| apt-get install -y libmariadb-dev && \ | ||
| apt-get install -y libevent-dev && \ | ||
| apt-get install -y libhdf5-dev && \ | ||
| pip install flask && \ | ||
| pip install -r /coco/requirements.txt && \ | ||
| pip install /coco && \ | ||
| apt-get install -y apt-utils git build-essential curl \ | ||
| libmariadb-dev libevent-dev && \ | ||
| pip install --use-deprecated=legacy-resolver flask && \ | ||
| pip install --use-deprecated=legacy-resolver -r /coco/requirements.txt && \ | ||
| pip install --use-deprecated=legacy-resolver /coco | ||
|
|
||
| #----------------------- | ||
| # Minimize container size | ||
| #----------------------- | ||
| apt-get remove -y curl git && \ | ||
| #----------------------- | ||
| # Minimize container size | ||
| #----------------------- | ||
| RUN apt-get remove -y git && \ | ||
| apt-get autoremove -y && \ | ||
| apt-get clean -y && \ | ||
| rm -rf /tmp/build | ||
| rm -rf /tmp/build /coco |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
We might as well update this to the latest.