-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start of work for aws prices and region filtering (#6)
* start of work for aws prices and region filtering * automation docker build * addition of "Regions" attribute to AWS instance data, allowing for --region to be a filter string (Google already had it) * addition of sorting based on field, and ascending order of results * a parameter in settings to ask to use the cache only (set now to false, will be true when we can provide remote cache) * filtering by regions for both instances AWS/Google * moved original design notes into separate doc in docs (preparing for prettier docs at some point) Signed-off-by: vsoch <[email protected]>
- Loading branch information
Showing
17 changed files
with
385 additions
and
108 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 @@ | ||
.gitignore |
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,48 @@ | ||
name: build cloud-select | ||
|
||
on: | ||
|
||
# Publish packages on release | ||
release: | ||
types: [published] | ||
|
||
pull_request: [] | ||
|
||
# On push to main we build and deploy images | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
packages: write | ||
|
||
runs-on: ubuntu-latest | ||
name: Build | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build Container | ||
run: docker build -t ghcr.io/converged-computing/cloud-select:latest . | ||
|
||
- name: GHCR Login | ||
if: (github.event_name != 'pull_request') | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Tag and Push Release Image | ||
if: (github.event_name == 'release') | ||
run: | | ||
tag=${GITHUB_REF#refs/tags/} | ||
echo "Tagging and releasing ghcr.io/converged-computing/cloud-select:${tag}" | ||
docker tag ghcr.io/converged-computing/cloud-select:latest converged-computing/cloud-select:${tag} | ||
docker push converged-computing/cloud-select:${tag} | ||
- name: Deploy | ||
if: (github.event_name != 'pull_request') | ||
run: docker push ghcr.io/converged-computing/cloud-select:latest |
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 |
---|---|---|
|
@@ -7,13 +7,7 @@ env | |
build | ||
docs/_build | ||
release | ||
_site | ||
dist/ | ||
OLD | ||
__pycache__ | ||
*.simg | ||
*.sif | ||
*.img | ||
/.eggs | ||
/modules | ||
/views |
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,16 @@ | ||
FROM ubuntu | ||
|
||
# docker build -t cloud-select . | ||
|
||
LABEL MAINTAINER @vsoch | ||
ENV PATH /opt/conda/bin:${PATH} | ||
ENV LANG C.UTF-8 | ||
RUN apt-get update && \ | ||
apt-get install -y wget && \ | ||
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ | ||
bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda && \ | ||
rm Miniconda3-latest-Linux-x86_64.sh | ||
|
||
WORKDIR /code | ||
COPY . /code | ||
RUN pip install -e .[all] && pip install ipython |
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
Oops, something went wrong.