-
Notifications
You must be signed in to change notification settings - Fork 129
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 #91 from oracle/sprint-9
Sprint 9
- Loading branch information
Showing
15 changed files
with
233 additions
and
40 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
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 |
---|---|---|
|
@@ -22,22 +22,22 @@ python modules are installed and in addition provide a simple flask server that | |
## Clone Repository | ||
Before the building either the Docker or Vagrant Images the project will nee to be cloned from the Git Repository (or downloaded) | ||
and it is recommended that the latest Stable Release be cloned. The latest stable version number if shown in the README | ||
and the associated Release tag is in the format vX.Y.Z hence for the version 0.10.1 the Release tag will be | ||
**v0.10.1**. The command shows how this can be cloned to the local machine. | ||
and the associated Release tag is in the format vX.Y.Z hence for the version 0.10.2 the Release tag will be | ||
**v0.10.2**. The command shows how this can be cloned to the local machine. | ||
|
||
```bash | ||
git clone -b v0.10.1 --depth 1 [email protected]:oracle/oci-designer-toolkit.git | ||
git clone -b v0.10.2 --depth 1 [email protected]:oracle/oci-designer-toolkit.git | ||
``` | ||
|
||
or | ||
|
||
```bash | ||
git clone -b v0.10.1 --depth 1 https://github.com/oracle/oci-designer-toolkit.git | ||
git clone -b v0.10.2 --depth 1 https://github.com/oracle/oci-designer-toolkit.git | ||
``` | ||
|
||
### Download | ||
If you do not have git installed locally the current release of OKIT can be retrieved by downloading it as a zip file from | ||
https://github.com/oracle/oci-designer-toolkit/archive/v0.10.1.zip | ||
https://github.com/oracle/oci-designer-toolkit/archive/v0.10.2.zip | ||
|
||
|
||
## OCI Config File | ||
|
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,38 @@ | ||
#!/usr/bin/python | ||
|
||
"""Provide Module Description | ||
""" | ||
|
||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# | ||
__author__ = ["Andrew Hopkinson (Oracle Cloud Solutions A-Team)"] | ||
__version__ = "1.0.0.0" | ||
__module__ = "okitImport" | ||
|
||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~# | ||
|
||
import os | ||
from flask import Blueprint | ||
from flask import request | ||
|
||
import json | ||
from common.okitCommon import logJson | ||
from common.okitLogging import getLogger | ||
from parsers.okitHclJsonParser import OkitHclJsonParser | ||
|
||
# Configure logging | ||
logger = getLogger() | ||
|
||
bp = Blueprint('parsers', __name__, url_prefix='/okit/import', static_folder='static/okit') | ||
|
||
debug_mode = bool(str(os.getenv('DEBUG_MODE', 'False')).title()) | ||
|
||
@bp.route('hcljson', methods=(['POST'])) | ||
def importHclJson(): | ||
logger.debug('JSON : {0:s}'.format(str(request.json))) | ||
if request.method == 'POST': | ||
logJson(request.json) | ||
# Import HCL | ||
parser = OkitHclJsonParser(request.json) | ||
return json.dumps(parser.parse(), sort_keys=False, indent=2, separators=(',', ': ')) | ||
else: | ||
return '404' |
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,4 +1,4 @@ | ||
{ | ||
"release": "0.10.1", | ||
"tag": "v0.10.1" | ||
"release": "0.10.2", | ||
"tag": "v0.10.2" | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.