-
Notifications
You must be signed in to change notification settings - Fork 15
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 #32 from stmandl/master
Updated flavors and small fixes
- Loading branch information
Showing
13 changed files
with
79 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,26 +29,26 @@ For running the tests you also need | |
* Docker with privileged mode | ||
|
||
## Quickstart | ||
1. Choose a flavor. Currently we have several pre-defined flavors available, e.g., `mini`, `standard` and `conda`. | ||
1. Choose a flavor. Currently we have several pre-defined flavors available, e.g., `mini-EXASOL-6.0.0`, and `standard-EXASOL-6.1.0`. | ||
This project supports different versions of script language environments with different libraries and languages. | ||
We call these versions _flavors_. The pre-defined flavors can be modified and extended to create customized flavors. | ||
Each pre-defined flavor has its own set of Docker build-files in a corresponding subfolder of [flavors](flavors). | ||
2. Create the language container. We choose to use the `mini` flavor which is the smallest of the currently available flavors and which only support the Python language. | ||
```bash | ||
$ ./build --flavor=mini | ||
$ ./build --flavor=mini-EXASOL-6.0.0 | ||
``` | ||
(on Mac OS X, use `./build -f mini`) | ||
(on Mac OS X, use `./build -f mini-EXASOL-6.0.0`) | ||
|
||
3. Export it into a standalone archive | ||
```bash | ||
$ ./export --flavor=mini | ||
$ ./export --flavor=mini-EXASOL-6.0.0 | ||
``` | ||
(on Mac OS X, use `./export -f mini`) | ||
This creates the file `mini.tar.gz`. | ||
(on Mac OS X, use `./export -f mini-EXASOL-6.0.0`) | ||
This creates the file `mini-EXASOL-6.0.0.tar.gz`. | ||
|
||
Optionally, you can run some automated tests for your flavor by using | ||
```bash | ||
$ ./test_complete --flavor=mini | ||
$ ./test_complete --flavor=mini-EXASOL-6.0.0 | ||
``` | ||
(on Mac OS X you need to have pip installed for this to work) | ||
If the test fails with the message | ||
|
@@ -59,11 +59,11 @@ then run `stop_dockerdb` and restart the test. | |
|
||
4. Upload the file into bucketfs. For the following example we assume the password `pwd` and the bucketname `funwithudfs` in a bucketfs that is running on port `2580` on machine `192.168.122.158` | ||
```bash | ||
curl -v -X PUT -T mini.tar.gz w:[email protected]:2580/funwithudfs/mini.tar.gz | ||
curl -v -X PUT -T mini-EXASOL-6.0.0.tar.gz w:[email protected]:2580/funwithudfs/mini-EXASOL-6.0.0.tar.gz | ||
``` | ||
5. In SQL you activate the Python implementation of the flavor `mini` by using a statement like this | ||
5. In SQL you activate the Python implementation of the flavor `mini-EXASOL-6.0.0` by using a statement like this | ||
```sql | ||
ALTER SESSION SET SCRIPT_LANGUAGES='MYPYTHON=localzmq+protobuf:///bucketfsname/funwithudfs/mini?lang=python#buckets/bucketfsname/funwithudfs/mini/exaudf/exaudfclient'; | ||
ALTER SESSION SET SCRIPT_LANGUAGES='MYPYTHON=localzmq+protobuf:///bucketfsname/funwithudfs/mini-EXASOL-6.0.0?lang=python#buckets/bucketfsname/funwithudfs/mini-EXASOL-6.0.0/exaudf/exaudfclient'; | ||
``` | ||
Now the script language `MYPYTHON` can be used to define a script, e.g., | ||
``` | ||
|
@@ -79,7 +79,7 @@ select small_test(); | |
``` | ||
6. Afterwards you may choose to remove the Docker images for this flavor. This can be done as follows: | ||
```bash | ||
./clean --flavor=mini | ||
./clean --flavor=mini-EXASOL-6.0.0 | ||
``` | ||
Please note that this script does not delete the Linux image that is used as basis for the images that were build in the previous steps. | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
language_definition=R=localzmq+protobuf:///bfsdefault/myudfs/fancyr-EXASOL-6.1.0?lang=r#buckets/bfsdefault/myudfs/fancyr-EXASOL-6.1.0/exaudf/exaudfclient PYTHON=builtin_python JAVA=builtin_java | ||
generic_language_tests=r | ||
test_folders=r | ||
# ending new line required! |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
flavors/mini/Dockerfile.build_mini → ...-6.0.0/Dockerfile.build_mini-EXASOL-6.0.0
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
2 changes: 1 addition & 1 deletion
2
flavors/mini/Dockerfile.release_mini → ....0.0/Dockerfile.release_mini-EXASOL-6.0.0
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 @@ | ||
FROM exaudf/baseimage_mini | ||
FROM exaudf/baseimage_mini-exasol-6.0.0 | ||
ARG extract_dir | ||
COPY $extract_dir/exaudf /exaudf | ||
|
2 changes: 1 addition & 1 deletion
2
flavors/mini/Dockerfile.test_mini → ...L-6.0.0/Dockerfile.test_mini-EXASOL-6.0.0
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 @@ | ||
FROM exaudf/release_mini | ||
FROM exaudf/release_mini-exasol-6.0.0 | ||
|
||
RUN mkdir /exasol_emulator | ||
|
||
|
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 @@ | ||
language_definition=PYTHON=localzmq+protobuf:///bfsdefault/myudfs/mini?lang=python#buckets/bfsdefault/myudfs/mini/exaudf/exaudfclient JAVA=builtin_java R=builtin_r | ||
language_definition=PYTHON=localzmq+protobuf:///bfsdefault/myudfs/mini-EXASOL-6.0.0?lang=python#buckets/bfsdefault/myudfs/mini-EXASOL-6.0.0/exaudf/exaudfclient JAVA=builtin_java R=builtin_r | ||
generic_language_tests=python | ||
test_folders=python | ||
# ending new line required! |
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