diff --git a/noise/build_and_copy.sh b/noise/build_and_copy.sh deleted file mode 100755 index ec13d9b..0000000 --- a/noise/build_and_copy.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# Build Docker-Container -# -# Call: buildit.sh name [target] -# -# The Dockerfile must be named like Dockerfile_name -# -# 2018-09-20 rxf -# - before sending docker image to remote, tag actual remote image -# -# 2018-09-14 rxf -# - first Version -# - -set -x -port="" -orgName=noise -name=noise - -usage() -{ - echo "Usage build_and_copy.sh [-p port] [-n name] target" - echo " Build docker container $name and copy to target" - echo "Params:" - echo " target: Where to copy the container to " - echo " -p port: ssh port (default 22)" - echo " -n name: new name for container (default: $orgName)" -} - -while getopts n:p:h? o -do - case "$o" in - n) name="$OPTARG";; - p) port="-p $OPTARG";; - h) usage; exit 0;; - *) usage; exit 1;; - esac -done -shift $((OPTIND-1)) - -while [ $# -gt 0 ]; do - if [[ -z "$target" ]]; then - target=$1 - shift - else - echo "bad option $1" - # exit 1 - shift - fi -done - -docker build -f Dockerfile_$orgName --no-cache -t $name . - -dat=`date +%Y%m%d%H%M` - -if [ "$target" == "localhost" ] -then - docker tag $name $name:V_$dat - exit -fi - -ssh $port $target "docker tag $name $name:V_$dat" -docker save $name | bzip2 | pv | ssh $port $target 'bunzip2 | docker load' diff --git a/readin/build_and_copy.sh b/readin/build_and_copy.sh deleted file mode 100755 index 8d4a210..0000000 --- a/readin/build_and_copy.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# Build Docker-Container -# -# Call: buildit.sh name [target] -# -# The Dockerfile must be named like Dockerfile_name -# -# 2018-09-20 rxf -# - before sending docker image to remote, tag actual remote image -# -# 2018-09-14 rxf -# - first Version -# - -set -x -port="" -orgName=readin -name=readin - -usage() -{ - echo "Usage build_and_copy.sh [-p port] [-n name] target" - echo " Build docker container $name and copy to target" - echo "Params:" - echo " target: Where to copy the container to " - echo " -p port: ssh port (default 22)" - echo " -n name: new name for container (default: $orgName)" -} - -while getopts n:p:h? o -do - case "$o" in - n) name="$OPTARG";; - p) port="-p $OPTARG";; - h) usage; exit 0;; - *) usage; exit 1;; - esac -done -shift $((OPTIND-1)) - -while [ $# -gt 0 ]; do - if [[ -z "$target" ]]; then - target=$1 - shift - else - echo "bad option $1" - # exit 1 - shift - fi -done - -docker build -f Dockerfile_$orgName -t $name . - -dat=`date +%Y%m%d%H%M` - -if [ "$target" == "localhost" ] -then - docker tag $name $name:V_$dat - exit -fi - -ssh $port $target "docker tag $name $name:V_$dat" -docker save $name | bzip2 | pv | ssh $port $target 'bunzip2 | docker load' diff --git a/readin/docker-compose.yml b/readin/docker-compose.yml deleted file mode 100644 index 0c23be2..0000000 --- a/readin/docker-compose.yml +++ /dev/null @@ -1,55 +0,0 @@ -version: '3.9' - -volumes: - mongo_vol: - influx_vol: - -services: - timeseries: - image: timeseries - environment: - DEVELOP: "true" - MONGOHOST: mongodb - MONGOUSRP: "rexfue:noise4mongo" - MONGOAUTH: "true" - INFLUXHOST: influxdb - INFLUXTOKEN: "q35XUBaElzcy8dDd9HF2_mpeHvYCampZg_9mJNP5jeBQRopq3EWIzNTZ555QLSIXhZC05RXCoFgjiaT7VzyNkQ==" - TYP: "[\"noise\", \"thp\"]" - STORE: "mongo" - volumes: - - ${PWD}/log:/var/log - container_name: timeseries - restart: unless-stopped - - mongodb: - image: mongo:6 - volumes: - - ${PWD}/entries:/docker-entrypoint-initdb.d - - mongo_vol:/data/db - ports: - - "27017:27017" - container_name: mongodb - environment: - - MONGO_INITDB_DATABASE=sensor_data - - MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USERNAME} - - MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD} - restart: unless-stopped - - influxdb: - image: influxdb:2.0 - ports: - - '8086:8086' - volumes: - - influx_vol:/var/lib/influxdb2 - environment: - DOCKER_INFLUXDB_INIT_MODE: setup - DOCKER_INFLUXDB_INIT_USERNAME: ${DOCKER_INFLUXDB_INIT_USERNAME} - DOCKER_INFLUXDB_INIT_PASSWORD: ${DOCKER_INFLUXDB_INIT_PASSWORD} - DOCKER_INFLUXDB_INIT_ORG: citysensor - DOCKER_INFLUXDB_INIT_BUCKET: sensor_data - DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: ${DOCKER_INFLUXTOKEN} - restart: - unless-stopped - container_name: influxdb - - diff --git a/sensorapi/build_and_copy.sh b/sensorapi/build_and_copy.sh deleted file mode 100755 index 1f07fb5..0000000 --- a/sensorapi/build_and_copy.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# Build Docker-Container -# -# Call: buildit.sh name [target] -# -# The Dockerfile must be named like Dockerfile_name -# -# 2018-09-20 rxf -# - before sending docker image to remote, tag actual remote image -# -# 2018-09-14 rxf -# - first Version -# - -set -x -port="" -orgName=sensorapi -name=sensorapi - -usage() -{ - echo "Usage build_and_copy.sh [-p port] [-n name] target" - echo " Build docker container $name and copy to target" - echo "Params:" - echo " target: Where to copy the container to " - echo " -p port: ssh port (default 22)" - echo " -n name: new name for container (default: $orgName)" -} - -while getopts n:p:h? o -do - case "$o" in - n) name="$OPTARG";; - p) port="-p $OPTARG";; - h) usage; exit 0;; - *) usage; exit 1;; - esac -done -shift $((OPTIND-1)) - -while [ $# -gt 0 ]; do - if [[ -z "$target" ]]; then - target=$1 - shift - else - echo "bad option $1" - # exit 1 - shift - fi -done - -docker build -f Dockerfile_$orgName -t $name . - -dat=`date +%Y%m%d%H%M` - -if [ "$target" == "localhost" ] -then - docker tag $name $name:V_$dat - exit -fi - -ssh $port $target "docker tag $name $name:V_$dat" -docker save $name | bzip2 | pv | ssh $port $target 'bunzip2 | docker load' diff --git a/sensorapi/docker-compose.yml b/sensorapi/docker-compose.yml deleted file mode 100644 index 3d39bda..0000000 --- a/sensorapi/docker-compose.yml +++ /dev/null @@ -1,19 +0,0 @@ -version: '3.9' - -services: - node: - image: sensorapi - environment: - DEVELOP: "true" - MONGOHOST: ${MONGOHOST} - MONGOPORT: ${MONGOPORT} - INFLUXHOST: ${INFLUXHOST} - INFLUXTOKEN: ${INFLUXTOKEN} - LIVE: "true" - PORT: 3004 - ports: - - "3004:3004" - volumes: - - ${PWD}/log/sensorapi:/var/log - container_name: node_sensorapi - restart: unless-stopped