forked from redhat-iot/iot-assettracking-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiot-sim-deploy.sh
More file actions
executable file
·23 lines (18 loc) · 857 Bytes
/
Copy pathiot-sim-deploy.sh
File metadata and controls
executable file
·23 lines (18 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
###############################################################################
# Copyright (c) 2017 Red Hat Inc
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
###############################################################################
. openshift-common.sh
: ${OPENSHIFT_PROJECT_NAME:=redhat-iot}
: ${DOCKER_ACCOUNT:=redhatiot}
# Set up new simulator instance
$OC delete dc/simulator
$OC delete configmap data-simulator-config
$OC create configmap data-simulator-config --from-file=ksim.simulator.configuration=simulator/generators.json -n "$OPENSHIFT_PROJECT_NAME"
$OC new-app -n "$OPENSHIFT_PROJECT_NAME" -f iot-simulator.yml