-
Notifications
You must be signed in to change notification settings - Fork 309
Use of new taxonomy tools and introduction of postinstall django app commands management #11136
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
Open
nastasi-oq
wants to merge
19
commits into
engine-3.23
Choose a base branch
from
b3.23-pre5
base: engine-3.23
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
6e332fa
update URL_STANDALONE for b3.23-pre5 branch
nastasi-oq f97eeca
set STANDALONE_APP_NAME_MAP in settings.py directly
nastasi-oq 6dc82aa
add 'django-gem-taxonomy' as new standalone app
nastasi-oq 764d14a
manage properly 'openquake' namespace: remove 'openquake/__init__.py'…
nastasi-oq 98df5f5
introduce post installation command management for standalone applica…
nastasi-oq 7d6f24a
some cleanup
nastasi-oq 5c26159
differentiate 'django-admin' command for different OS
nastasi-oq 1740d83
modify environment to be able to run django-admin with the proper set…
nastasi-oq 93a2a0f
wheelhouse link to engine-3.23 folder
nastasi-oq 0c9140b
more clear if condition
nastasi-oq e681d0b
actualize template before run oq-engine install script to avoid error…
nastasi-oq d94714d
add '--keepvenv' argument to 'install.py' to preserve previous virtua…
nastasi-oq a0795da
from keepvenv to no_env argument
nastasi-oq 925a0e8
manage VENV path for no_venv case
nastasi-oq 313847f
rename install argument
nastasi-oq 153e6e1
add '--noupgrade' argument to install.py command
nastasi-oq d7808fd
wrong default argparse default values fixed
nastasi-oq 947e2d4
fix operators precedence order
nastasi-oq 9b0bd35
add a docker_latest workflow to be able to run it in the current gith…
nastasi-oq 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| --- | ||
| name: Build Image Latest for Docker | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| tags: | ||
| description: Comma-separated list of tags | ||
| default: latest | ||
| required: true | ||
| git-ref: | ||
| description: Git Ref | ||
| default: master | ||
| required: true | ||
|
|
||
| jobs: | ||
| docker: | ||
| name: Build image and push after successfull calculation | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| # This Checkout is necessary when using a context in docker/build-push-action | ||
| - name: Clone Repository (Latest) | ||
| uses: actions/checkout@v4 | ||
| if: github.event.inputs.git-ref == '' | ||
| - name: Clone Repository (Custom Ref) | ||
| uses: actions/checkout@v4 | ||
| if: github.event.inputs.git-ref != '' | ||
| with: | ||
| ref: ${{ github.event.inputs.git-ref }} | ||
| - name: Extract tag names | ||
| shell: bash | ||
| run: echo "##[set-output name=tags;]" | tr -d '\n'; for tag in $(echo ${{ github.event.inputs.tags }} | tr , '\n'); do echo "-t openquake/engine:$tag " | tr -d '\n'; done | ||
| id: extract_tags | ||
| - name: Build image engine with tag ${{ github.event.inputs.version }} | ||
| env: | ||
| DOCKER_USERNAME: ${{ secrets.docker_username }} | ||
| DOCKER_PASSWORD: ${{ secrets.docker_password }} | ||
| REPO_REF: ${{ github.event.inputs.git-ref }} | ||
| id: docker_engine | ||
| run: docker build --build-arg oq_branch=$REPO_REF ${{ steps.extract_tags.outputs.tags }} -f docker/Dockerfile.engine docker | ||
| - name: List Image | ||
| run: | | ||
| docker image ls | ||
| - name: Run calcs on single docker | ||
| run: | | ||
| time docker run openquake/engine:latest "oq engine --run "https://github.com/gem/oq-engine/blob/master/openquake/server/tests/data/classical.zip?raw=true"" | ||
| - name: push image engine with tags ${{ github.event.inputs.tags }} on dockerhub | ||
| env: | ||
| DOCKER_USERNAME: ${{ secrets.docker_username }} | ||
| DOCKER_PASSWORD: ${{ secrets.docker_password }} | ||
| DOCKER_TAG: ${{ github.event.inputs.version }} | ||
| run: | | ||
| docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" | ||
| docker push openquake/engine --all-tags |
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 was deleted.
Oops, something went wrong.
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.
Please rename
is_installasinstalled