Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circleci/docker #17

Merged
merged 1 commit into from
Nov 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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