summaryrefslogtreecommitdiffstats
path: root/samples/services/nginx/docker/subservices
diff options
context:
space:
mode:
authorStephen Wong <stephen.kf.wong@gmail.com>2018-03-31 02:16:14 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-31 02:16:14 +0000
commit7cd5f08c223957c0f4e98246261d539216dfcb6f (patch)
treed6a26702db2bafe71da88a9e59ffec60cb795dac /samples/services/nginx/docker/subservices
parent56f50acd66d6f041b0347babb131150db3ca2023 (diff)
parent1575a9b3f7e7f475d4d5d8d1541f783948c0d398 (diff)
Merge "Added initial nginx services"
Diffstat (limited to 'samples/services/nginx/docker/subservices')
-rw-r--r--samples/services/nginx/docker/subservices/lb/Dockerfile28
-rw-r--r--samples/services/nginx/docker/subservices/proxy/Dockerfile27
-rw-r--r--samples/services/nginx/docker/subservices/server/Dockerfile28
3 files changed, 83 insertions, 0 deletions
diff --git a/samples/services/nginx/docker/subservices/lb/Dockerfile b/samples/services/nginx/docker/subservices/lb/Dockerfile
new file mode 100644
index 0000000..125da0b
--- /dev/null
+++ b/samples/services/nginx/docker/subservices/lb/Dockerfile
@@ -0,0 +1,28 @@
+# Copyright (c) Authors of Clover
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+
+FROM ubuntu:16.04
+LABEL maintainer="Eddie Arrage" maintainer_email="eddie.arrage@huawei.com"
+LABEL version="0.1" description="Clover - Nginx HTTP LB"
+
+RUN \
+ apt-get update && apt-get install -y \
+# Some debug tool in container
+ wget \
+ libdnet \
+ net-tools \
+# Nginx as proxy
+ nginx \
+ python-pip \
+&& \
+# Install required python packages
+ python -m pip install grpcio redis jinja2
+
+COPY /process /process
+COPY /grpc /grpc
+CMD ./process/start_process.sh lb
+
diff --git a/samples/services/nginx/docker/subservices/proxy/Dockerfile b/samples/services/nginx/docker/subservices/proxy/Dockerfile
new file mode 100644
index 0000000..0f061a5
--- /dev/null
+++ b/samples/services/nginx/docker/subservices/proxy/Dockerfile
@@ -0,0 +1,27 @@
+# Copyright (c) Authors of Clover
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+
+FROM ubuntu:16.04
+LABEL maintainer="Eddie Arrage" maintainer_email="eddie.arrage@huawei.com"
+LABEL version="0.1" description="Clover - Nginx HTTP Proxy"
+
+RUN \
+ apt-get update && apt-get install -y \
+# Some debug tools in container
+ wget \
+ libdnet \
+ net-tools \
+# Nginx as proxy
+ nginx \
+ python-pip \
+&& \
+# Install required python packages
+ python -m pip install grpcio redis jinja2
+
+COPY /process /process
+COPY /grpc /grpc
+CMD ./process/start_process.sh proxy
diff --git a/samples/services/nginx/docker/subservices/server/Dockerfile b/samples/services/nginx/docker/subservices/server/Dockerfile
new file mode 100644
index 0000000..8bf9449
--- /dev/null
+++ b/samples/services/nginx/docker/subservices/server/Dockerfile
@@ -0,0 +1,28 @@
+# Copyright (c) Authors of Clover
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+
+FROM ubuntu:16.04
+LABEL maintainer="Eddie Arrage" maintainer_email="eddie.arrage@huawei.com"
+LABEL version="0.1" description="Clover - Nginx HTTP Server"
+
+RUN \
+ apt-get update && apt-get install -y \
+# Some debug tools in container
+ wget \
+ libdnet \
+ net-tools \
+# Nginx as proxy
+ nginx \
+ python-pip \
+&& \
+# Install required python packages
+ python -m pip install grpcio redis jinja2
+
+COPY /process /process
+COPY /grpc /grpc
+CMD ./process/start_process.sh server
+