Skip to content

Commit

Permalink
version 2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
loiclefevre committed Nov 18, 2020
1 parent 2242e98 commit 03cfad0
Show file tree
Hide file tree
Showing 12 changed files with 297 additions and 28 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# v2.0.6 - 2020.11.18
## Fixes
- creating stacks or loading JSON data is possible after the database has been provisioned

## New features
- stop and start the database
- using GraalVM 20.3.0 CE LTS (allowing for compression of Linux executable)

# v2.0.5 - 2020.11.13
## Fixes
- better error messaging for creation and termination of databases
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ __... in 5 minutes.__
[![DRAGON Stack - React Frontend / Autonomous Backend](https://img.youtube.com/vi/DzI9yyAiRjY/0.jpg)](https://www.youtube.com/watch?v=DzI9yyAiRjY)

## Download
The latest stable release is v2.0.5.
The latest stable release is v2.0.6.

### Linux and OCI Cloud Shell
```
rm -f ./dragon-linux-x86_64-2.0.5
wget https://github.com/loiclefevre/dragon/releases/download/v2.0.5/dragon-linux-x86_64-2.0.5
rm -f ./dragon-linux-x86_64-2.0.6
wget https://github.com/loiclefevre/dragon/releases/download/v2.0.6/dragon-linux-x86_64-2.0.6
chmod +x dragon-linux-*
```
Learn about [OCI Cloud shell](https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/cloudshellintro.htm).

### Windows
```
powershell wget https://github.com/loiclefevre/dragon/releases/download/v2.0.5/dragon-windows-x86_64-2.0.5.exe -OutFile dragon-windows-x86_64-2.0.5.exe
powershell wget https://github.com/loiclefevre/dragon/releases/download/v2.0.6/dragon-windows-x86_64-2.0.6.exe -OutFile dragon-windows-x86_64-2.0.6.exe
```
### MAC OS
```
curl -L -O https://github.com/loiclefevre/dragon/releases/download/v2.0.5/dragon-osx-x86_64-2.0.5
curl -L -O https://github.com/loiclefevre/dragon/releases/download/v2.0.6/dragon-osx-x86_64-2.0.6
chmod +x dragon-osx-*
```

Expand Down Expand Up @@ -136,17 +136,17 @@ Example from OCI Cloud Shell (Linux):

Linux and OCI Cloud Shell:
```
$ ./dragon-linux-x86_64-2.0.5
$ ./dragon-linux-x86_64-2.0.6
```

Windows:
```
> dragon-windows-x86_64-2.0.5.exe
> dragon-windows-x86_64-2.0.6.exe
```

MAC OS:
```
$ ./dragon-osx-x86_64-2.0.5
$ ./dragon-osx-x86_64-2.0.6
```

### Loading JSON data
Expand All @@ -155,19 +155,19 @@ If you need to create JSON collections during the provisioning process, you may

To load JSON data as well as provisioning (Linux and OCI Cloud Shell):
```
$ ./dragon-linux-x86_64-2.0.5 -loadjson
$ ./dragon-linux-x86_64-2.0.6 -loadjson
```

To load JSON data as well as provisioning and finally create a React application (Linux and OCI Cloud Shell):
```
$ ./dragon-linux-x86_64-2.0.5 -loadjson -create-react-app myfrontend
$ ./dragon-linux-x86_64-2.0.6 -loadjson -create-react-app myfrontend
```

### Destroying your database

To destroy your database (Linux and OCI Cloud Shell):
```
$ ./dragon-linux-x86_64-2.0.5 -destroy
$ ./dragon-linux-x86_64-2.0.6 -destroy
```

## Stacks
Expand Down Expand Up @@ -222,7 +222,7 @@ For [Spring-Boot](https://spring.io/projects/spring-boot) web application:

Simple to use, it works, it is optimized already, __no__ administrative burdens, develop right away!

Converged, it means, you get the consistency of a _relational_ database, the _flexibility_ of a JSON database, the simplicity of _Machine Learning_ in the database, the location capabilities of a _spatial_ database, the power of a property _graph_ database, the indexing capabilities of a _full-text_ database, the _automatic elasticity_ as well as the costing model (always free version, pay by the second...) of a cloud native database, the _performance_ of the underlying infrastructure Exadata, the strongest _security_ of the database market, and the vast developer friendly ecosystem brought by Oracle Cloud Infrastructure.
__[Converged](https://www.youtube.com/watch?v=yBWgb_oh39U)__, it means, you get the consistency of a _relational_ database, the _flexibility_ of a JSON database, the simplicity of _Machine Learning_ in the database, the location capabilities of a _spatial_ database, the power of a property _graph_ database, the indexing capabilities of a _full-text_ database, the _automatic elasticity_ as well as the costing model (always free version, pay by the second...) of a cloud native database, the _performance_ of the underlying infrastructure Exadata, the strongest _security_ of the database market, and the vast developer friendly ecosystem brought by Oracle Cloud Infrastructure.


Autonomous Database can be:
Expand Down
13 changes: 8 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>com.oracle</groupId>
<artifactId>dragon</artifactId>
<version>2.0.5</version>
<version>2.0.6</version>

<name>Dragon Stack</name>

Expand All @@ -18,7 +18,7 @@
<maven.compiler.target>${targetJavaVersion}</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven-jar-plugin.version>2.4</maven-jar-plugin.version>
<graalvm.version>20.2.0</graalvm.version>
<graalvm.version>20.3.0</graalvm.version>
<oci.sdk.version>1.25.4</oci.sdk.version>
</properties>

Expand Down Expand Up @@ -151,20 +151,23 @@
</executions>
<configuration>
<skip>false</skip>
<imageName>dragon-${os.detected.classifier}-${project.version}</imageName>
<imageName>dragon-${os.detected.classifier}-${project.version}</imageName> <!-- keep project.version so that upgrade can work. -->
<mainClass>com.oracle.dragon.DragonStack</mainClass>
<buildArgs>
--no-fallback
-H:+ReportExceptionStackTraces
-H:+TraceClassInitialization
--allow-incomplete-classpath
--report-unsupported-elements-at-runtime
--enable-all-security-services
-H:EnableURLProtocols=https
-H:ConfigurationFileDirectories=../src/main/resources/META-INF/native-image
--initialize-at-build-time=sun.instrument.InstrumentationImpl
--rerun-class-initialization-at-runtime=org.bouncycastle.jcajce.provider.drbg.DRBG$Default,org.bouncycastle.jcajce.provider.drbg.DRBG$NonceAndIV
</buildArgs>
<!--
-H:+TraceClassInitialization
- - rerun-class-initialization-at-runtime=org.bouncycastle.jcajce.provider.drbg.DRBG$Default,org.bouncycastle.jcajce.provider.drbg.DRBG$NonceAndIV
-->

</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/oracle/dragon/stacks/CodeGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
import java.util.Map;
import java.util.stream.Collectors;

import static com.oracle.dragon.util.DSSession.EXECUTABLE_NAME;

public class CodeGenerator {
private final StackType type;
private final String name;
Expand Down Expand Up @@ -90,6 +92,7 @@ public void work() throws DSException {
st.add("name", name);
st.add("path", dest.getAbsolutePath());
st.add("override", override);
st.add("executable", EXECUTABLE_NAME);

System.out.println(st.render());

Expand Down Expand Up @@ -143,6 +146,7 @@ public void work() throws DSException {
.collect(Collectors.joining("\n")), '<', '>');
st.add("name", name);
st.add("path", dest.getAbsolutePath());
st.add("executable", EXECUTABLE_NAME);

for (String key : patchParameters.keySet()) {
st.add(key, patchParameters.get(key));
Expand Down
Loading

0 comments on commit 03cfad0

Please sign in to comment.