-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from asmorodskyi/eks_cleanup
Improve running clusters reporting
- Loading branch information
Showing
12 changed files
with
117 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM registry.suse.com/bci/python:3.10 | ||
|
||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 UWSGI_WSGI_FILE=/pcw/webui/wsgi.py UWSGI_MASTER=1 | ||
ENV UWSGI_HTTP_AUTO_CHUNKED=1 UWSGI_HTTP_KEEPALIVE=1 UWSGI_LAZY_APPS=1 UWSGI_WSGI_ENV_BEHAVIOR=holy | ||
|
||
## System preparation steps ################################################# ## | ||
|
||
# !!! Runtime changes won't affect requirements.txt | ||
COPY requirements.txt /tmp/ | ||
# * Install system requirements | ||
# * Install pip requirements | ||
# * Empty system cache to conserve some space | ||
RUN zypper -n in python310-devel python310-pip gcc libffi-devel && pip3.10 install -r /tmp/requirements.txt && rm -rf /var/cache | ||
|
||
WORKDIR /pcw | ||
|
||
## Finalize ################################################################# ## | ||
|
||
VOLUME /pcw/db | ||
|
||
EXPOSE 8000/tcp | ||
|
||
ENTRYPOINT ["sh", "-c", "/pcw/container-startup", "$@"] |
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
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
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 |
---|---|---|
|
@@ -51,4 +51,3 @@ case "$CMD" in | |
*) | ||
python3 manage.py $@ | ||
esac | ||
|
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
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
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
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
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
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 @@ | ||
from django.core.management.base import BaseCommand | ||
from webui.settings import PCWConfig | ||
from ocw.lib.EC2 import EC2 | ||
|
||
|
||
class Command(BaseCommand): | ||
help = 'Delete all leftovers in all providers (according to pcw.ini)' | ||
|
||
def handle(self, *args, **options): | ||
for namespace in PCWConfig.get_namespaces_for('clusters'): | ||
EC2(namespace).delete_all_clusters() |
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
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,18 +1,18 @@ | ||
boto3 | ||
azure-mgmt-compute==12.0.0 | ||
azure-mgmt-storage==10.0.0 | ||
azure-mgmt-resource==10.0.0 | ||
azure-storage-blob==12.4.0 | ||
azure-mgmt-compute==27.2.0 | ||
azure-mgmt-storage==20.0.0 | ||
azure-mgmt-resource==21.1.0 | ||
azure-storage-blob==12.13.0 | ||
msrestazure==0.6.4 | ||
uwsgi==2.0.20 | ||
requests==2.25.1 | ||
requests==2.28.1 | ||
django==4.0.6 | ||
django-tables2==2.4.1 | ||
django-filter==22.1 | ||
django-bootstrap4==22.1 | ||
texttable | ||
oauth2client==4.1.3 | ||
google-api-python-client==2.0.2 | ||
google-cloud-storage==1.37.0 | ||
python-dateutil==2.8.1 | ||
oauth2client | ||
google-api-python-client==2.55.0 | ||
google-cloud-storage==2.4.0 | ||
python-dateutil | ||
apscheduler |