Skip to content

Commit

Permalink
add basic Dockerfiles for plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjacobsson committed Nov 8, 2017
1 parent b6b7f0b commit 3dd5d19
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
22 changes: 22 additions & 0 deletions examples/python/Docker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Build the Docker image(s)
To run the example plugins in the way described here, you need to first install [Docker](https://www.docker.com/).

From the examples/python folder, execute one of the following lines according to which plugin you want to build:




- docker build -t qlik-oss/sse-scriptsupport -f Dockerfile.scriptsupport .
- docker build -t qlik-oss/sse-helloworld -f Dockerfile.helloworld .
- docker build -t qlik-oss/sse-columnoperations -f Dockerfile.columnoperations .



## Run the Docker container(s)
Execute one of the following commands to run the plugin of choice in a docker container:



- docker run --rm -p 50051:50051 qlik-oss/sse-scriptsupport
- docker run --rm -p 50052:50052 qlik-oss/sse-helloworld
- docker run --rm -p 50053:50053 qlik-oss/sse-columnoperations
10 changes: 10 additions & 0 deletions examples/python/Dockerfile.columnoperations
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM grpc/python

ADD . /app

WORKDIR /app
ENTRYPOINT ["python"]
CMD ["ColumnOperations/ExtensionService_column.py"]
EXPOSE 50053


10 changes: 10 additions & 0 deletions examples/python/Dockerfile.helloworld
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM grpc/python

ADD . /app

WORKDIR /app
ENTRYPOINT ["python"]
CMD ["HelloWorld/ExtensionService_helloworld.py"]
EXPOSE 50052


13 changes: 13 additions & 0 deletions examples/python/Dockerfile.scriptsupport
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM grpc/python

RUN pip install -U pip
RUN pip install numpy

ADD . /app

WORKDIR /app
ENTRYPOINT ["python"]
CMD ["FullScriptSupport/ExtensionService_Script.py"]
EXPOSE 50051


2 changes: 2 additions & 0 deletions examples/python/GetStarted.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Getting started with the Python examples

If you want to use [Docker](http://www.docker.com/) to build and run the examples, here's a [quickstart](Docker.md).

We provide several examples at different levels of complexity, each of which is documented separately. All examples support mutual authentication. Note that the examples do **not** necessarily support the same functionality; therefore a function call in one example might not work in another.

The following table includes a short description of each example and the functionality it demonstrates.
Expand Down

0 comments on commit 3dd5d19

Please sign in to comment.