-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CH-87 Add detection of gunicorn in Dockerfile or requirements.txt
- Loading branch information
Showing
17 changed files
with
114 additions
and
9 deletions.
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
4 changes: 3 additions & 1 deletion
4
tools/deployment-cli-tools/tests/resources_buggy/applications/myapp/Dockerfile
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
ARG CLOUDHARNESS_FLASK | ||
FROM $CLOUDHARNESS_FLASK | ||
FROM $CLOUDHARNESS_FLASK | ||
|
||
RUN pip install gunicorn |
1 change: 1 addition & 0 deletions
1
tools/deployment-cli-tools/tests/resources_buggy/applications/myapp2/.dockerignore
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.ignored |
4 changes: 4 additions & 0 deletions
4
tools/deployment-cli-tools/tests/resources_buggy/applications/myapp2/Dockerfile
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ARG CLOUDHARNESS_FLASK | ||
FROM $CLOUDHARNESS_FLASK | ||
|
||
RUN pip install -r requirements.txt |
Empty file.
Empty file.
11 changes: 11 additions & 0 deletions
11
tools/deployment-cli-tools/tests/resources_buggy/applications/myapp2/deploy/values-dev.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
harness: | ||
name: "I'm useless" | ||
subdomain: mysubdomain | ||
dependencies: | ||
soft: | ||
- legacy | ||
build: | ||
- cloudharness-flask | ||
- my-common | ||
a: b | ||
dev: true |
2 changes: 2 additions & 0 deletions
2
tools/deployment-cli-tools/tests/resources_buggy/applications/myapp2/deploy/values-test.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
a: test | ||
test: true |
4 changes: 4 additions & 0 deletions
4
...ployment-cli-tools/tests/resources_buggy/applications/myapp2/deploy/values-withmongo.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
harness: | ||
database: | ||
auto: true | ||
type: mongo |
Empty file.
2 changes: 2 additions & 0 deletions
2
...yment-cli-tools/tests/resources_buggy/applications/myapp2/deploy/values-withpostgres.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
harness: | ||
database: {auto: true, type: postgres} |
14 changes: 14 additions & 0 deletions
14
tools/deployment-cli-tools/tests/resources_buggy/applications/myapp2/deploy/values.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
harness: | ||
name: "I'm useless" | ||
subdomain: mysubdomain | ||
dependencies: | ||
soft: | ||
- legacy | ||
build: | ||
- cloudharness-flask | ||
test: | ||
unit: | ||
commands: | ||
- tox | ||
- echo "hello" | ||
a: b |
9 changes: 9 additions & 0 deletions
9
tools/deployment-cli-tools/tests/resources_buggy/applications/myapp2/myapp_code/__main__.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from cloudharness.utils.server import init_flask, main | ||
|
||
|
||
app = init_flask(title="Cloudharness sample application", webapp=True) | ||
|
||
if __name__ == '__main__': | ||
main() |
1 change: 1 addition & 0 deletions
1
tools/deployment-cli-tools/tests/resources_buggy/applications/myapp2/requirements.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gunicorn |
Empty file.
7 changes: 7 additions & 0 deletions
7
...eployment-cli-tools/tests/resources_buggy/applications/myapp2/venv/matplotlib/__main__.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from something import something_else | ||
|
||
|
||
def fake_content(): | ||
... |
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