GithubHelp home page GithubHelp logo

loiclefevre / dragon Goto Github PK

View Code? Open in Web Editor NEW
22.0 4.0 5.0 76.59 MB

DRAGON Stack manager

License: Other

Java 41.80% Smalltalk 2.03% JavaScript 53.58% HTML 0.80% CSS 0.97% StringTemplate 0.82%
stack autonomous database cloud react graalvm node ords oci-cloud autonomous-transaction-processing

dragon's People

Contributors

bnasslahsen avatar loiclefevre avatar paolobellardone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dragon's Issues

Minor glitch in pom.xml

There is a duplicate definition of maven-compiler-plugin, the project compiles with warnings but it works.

ER: Use an OS default location for config file

I suggest to use a standard location for each OS to store the config.txt file because not all OSs allow to write the directory where the executable is stored.
For example in Linux or ain any Un*x-based system, if I put the dragon executable in /usr/bin I will not be able to write in it unless I change the default permissions for directory.
Moreover it is better to keep config separated from binaries and use the default user directory to store the configuration file (i.e. in /home/<username/.config or similar)

ER: First run interview to create a config file

To create the config.txt file it would be useful to have an interview to gather all the details needed to connect to the OCI tenancy.
For example, when a user runs dragon for the first time and it does not find the config.txt file, the program could start asking questions to get all the details of user's OCI tenancy.

Dragon x Linux version dragon-linux-x86_64-1.0.2 error with "Object storage configuration"

./dragon-linux-x86_64-1.0.2
DRAGON Stack manager v1.0.2

Command line parameters ................................................... ok
Oracle Cloud Infrastructure configuration ................................. ok
Database creation ................................................. ok [4m 0s]
Database wallet download ..................................... ok [dragon.zip]
Database configuration .................................................... ok
Object storage configuration .......................... creating dragon bucket
================================================================================
Unhandled exception:
javax.ws.rs.ProcessingException: Error reading entity from input stream.
at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:889)
at org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:808)

ER: pre-check for java version

java -jar dragon-1.0.0-jar-with-dependencies.jar
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/oracle/dragon/DragonStack has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

ER: multiple cloud tenancy support

It would be useful to let the developer choose the OCI tenant where to instantiate an Autonomous Database by choosing a specific profile other than DEFAULT inside the config.txt

./dragon-linux-x86_64-2.0.0 java.lang.RuntimeException: REST SODA Service could not create collection dragon

./dragon-linux-x86_64-2.0.0
DRAGON Stack manager v2.0.0

Command line parameters ................................................... ok
Oracle Cloud Infrastructure configuration ................................. ok
Database creation ................................................. ok [1m 4s]
Database wallet download ..................................... ok [dragon.zip]
Database configuration ........................... creating dragon collections
================================================================================
Unhandled exception:
java.lang.RuntimeException: REST SODA Service could not create collection dragon
at com.oracle.dragon.util.ADBRESTService.createSODACollection(ADBRESTService.java:123)

Manuela Mustatea has the same error.

I'm running on Frankfurt region while Manuela is running on London.

Thanks

ER: Syntax checking for dragon.config

It would be more than useful to have a syntax checking pass of the dragon.config before start provisioning the database in order to verify that all the parameters in the file are valid.
Even if only one is not recognized it should stop and emit and error message.

BUG: the parameter pass_phrase in dragon.config is not honored anymore

Starting from version 2.0.2 I get this error:

DRAGON Stack manager v2.0.2

Command line parameters ................................................... ok
Oracle Cloud Infrastructure configuration ................................. ko
The parameter "pass_phrase" found in profile "DEFAULT" is not supported!
duration: 0.001s

Until version 2.0.1 the "pass_phrase" parameter, used to specify the password for the key store, was read and honored by dragon. Now it is not.
A regression maybe?

ER: rename config.txt to be less generic

As the DRAGON config file, config.txt, will be stored in the project directory of the application wouldn’t it be better to give it a less generic name, such as config.dragon or dragon.config so that it is easily identified among others (config) files.
This would also enable to integrate the DRAGON config management with the IDE, for example developing an extension to visually manage the configuration.

ER: Update pom.xml to new format

When compiling with Maven, it prints a Warning message:
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.oracle:dragon:jar:1.0.2
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
I suggest to modify the pom.xml with new format of variable for version.

ER: Change format of command line parameters

I suggest to use a more standard approach in command.line parameters, such as the one used by oci-cli and other tools.
For example, instead of using:
./dragon -load -db
I would use:
./dragon load -db
where "load" is the command and "-db " is the option of the command.
It would be clearer to understand and easier to maintain.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.