Skip to content

Commit 5f48fdd

Browse files
authored
Merge pull request #16 from lux4rd0/2.0.03
2.0.03 - New Release
2 parents e6cc96f + bc44b3a commit 5f48fdd

24 files changed

+3330
-5265
lines changed

Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Use an official Python runtime as a parent image
2+
FROM python:3.10.8-slim
3+
4+
# Set the working directory in the container
5+
WORKDIR /app
6+
7+
# Copy the current directory contents into the container at /usr/src/app
8+
COPY sense-collector.py .
9+
COPY storage.py .
10+
COPY requirements.txt .
11+
12+
# Install any needed packages specified in requirements.txt
13+
14+
RUN apt-get update && \
15+
apt-get install -y gcc python3-dev python3-pip && \
16+
rm -rf /var/lib/apt/lists/*
17+
18+
RUN python3 -m pip install --no-cache-dir --upgrade pip \
19+
&& python3 -m pip install --no-cache-dir -r /app/requirements.txt
20+
21+
# Run script.py when the container launches
22+
CMD ["python3", "./sense-collector.py"]

README.md

Lines changed: 119 additions & 162 deletions
Large diffs are not rendered by default.

compose.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: sense-collector
2+
services:
3+
sense-collector:
4+
container_name: sense-collector
5+
environment:
6+
SENSE_COLLECTOR_API_PASSWORD: adkajsdlnaisdjasidamlisdmald
7+
SENSE_COLLECTOR_API_USERNAME: [email protected]
8+
SENSE_COLLECTOR_HOST_HOSTNAME: app20.tylephony.com
9+
SENSE_COLLECTOR_INFLUXDB_BUCKET: sense
10+
SENSE_COLLECTOR_INFLUXDB_ORG: Tylephony
11+
SENSE_COLLECTOR_INFLUXDB_TOKEN: lkjijdalisdjoanisdnalisdjlamisdjm==
12+
SENSE_COLLECTOR_INFLUXDB_URL: http://influxdb.lux4rd0.com:8086
13+
SENSE_COLLECTOR_LOG_LEVEL_API: CRITICAL
14+
SENSE_COLLECTOR_LOG_LEVEL_GENERAL: INFO
15+
SENSE_COLLECTOR_LOG_LEVEL_STORAGE: CRITICAL
16+
SENSE_COLLECTOR_SENSE_API_RECEIVE_DATA_OUTPUT: "False"
17+
TZ: America/Chicago
18+
image: lux4rd0/sense-collector:latest
19+
restart: always
20+
volumes:
21+
- type: bind
22+
source: /mnt/docker/sense-collector/export
23+
target: /app/export
24+
bind:
25+
create_host_path: true

docker-compose.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

generate_docker-compose.sh

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)