summaryrefslogtreecommitdiffstats
path: root/samples/services/nginx/docker/process
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/process
parent56f50acd66d6f041b0347babb131150db3ca2023 (diff)
parent1575a9b3f7e7f475d4d5d8d1541f783948c0d398 (diff)
Merge "Added initial nginx services"
Diffstat (limited to 'samples/services/nginx/docker/process')
-rwxr-xr-xsamples/services/nginx/docker/process/grpc_process.sh12
-rwxr-xr-xsamples/services/nginx/docker/process/nginx_process.sh12
-rwxr-xr-xsamples/services/nginx/docker/process/start_process.sh15
3 files changed, 39 insertions, 0 deletions
diff --git a/samples/services/nginx/docker/process/grpc_process.sh b/samples/services/nginx/docker/process/grpc_process.sh
new file mode 100755
index 0000000..cc8aa60
--- /dev/null
+++ b/samples/services/nginx/docker/process/grpc_process.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# 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
+#
+
+python grpc/nginx_grpc_server.py $1
+
diff --git a/samples/services/nginx/docker/process/nginx_process.sh b/samples/services/nginx/docker/process/nginx_process.sh
new file mode 100755
index 0000000..00edc66
--- /dev/null
+++ b/samples/services/nginx/docker/process/nginx_process.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# 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
+#
+
+service nginx restart
+
diff --git a/samples/services/nginx/docker/process/start_process.sh b/samples/services/nginx/docker/process/start_process.sh
new file mode 100755
index 0000000..b84d2d6
--- /dev/null
+++ b/samples/services/nginx/docker/process/start_process.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+#
+# 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
+#
+
+# Start the nginx process
+./process/nginx_process.sh
+
+# Start the grpc server
+./process/grpc_process.sh $1 -D