-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add docker support for examples Signed-off-by: Teemu Piiroinen <teemu.piiroinen@wirepas.com> * Update backend apis for WNT 4.1 Signed-off-by: Teemu Piiroinen <teemu.piiroinen@wirepas.com>
- Loading branch information
1 parent
9cca0ed
commit e89a2c5
Showing
5 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
Submodule backend-apis
updated
2 files
+7 −1 | wnt/protocol_buffers_files/message.proto | |
+2 −0 | wnt/protocol_buffers_files/otap.proto |
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,3 +1,3 @@ | ||
__pycache__ | ||
assets/*.tmp.* | ||
settings.yml | ||
/settings.yml |
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,20 @@ | ||
FROM alpine:3.14 | ||
|
||
ARG base_folder=wnt_examples | ||
ARG packet_name=wirepas-networktool-messaging | ||
ARG project_name=wirepas-networktool-messaging-python | ||
ARG settings_file=settings.yml | ||
|
||
RUN apk add --no-cache bash python3 py3-pip git | ||
|
||
RUN mkdir ${base_folder} | ||
WORKDIR /${base_folder} | ||
|
||
RUN pip3 install ${packet_name} | ||
|
||
RUN git clone https://github.com/wirepas/${project_name}.git | ||
WORKDIR /${base_folder}/${project_name}/examples | ||
|
||
RUN pip3 install -r requirements.txt | ||
|
||
ENTRYPOINT bash |
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,14 @@ | ||
version: '3.7' | ||
services: | ||
haproxy: | ||
container_name: wnt_examples | ||
image: wnt_examples:1.0.0 | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
restart: always | ||
stdin_open: true | ||
tty: true | ||
|
||
volumes: | ||
- ./settings.yml:/wnt_examples/wirepas-networktool-messaging-python/examples/settings.yml |
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,3 @@ | ||
username: "myusername" | ||
password: "mypassword" | ||
hostname: "myhost.mydomain.com" |