Skip to content

Commit

Permalink
Merge pull request #16 from lux4rd0/2.0.03
Browse files Browse the repository at this point in the history
2.0.03 - New Release
  • Loading branch information
lux4rd0 authored Jun 21, 2024
2 parents e6cc96f + bc44b3a commit 5f48fdd
Show file tree
Hide file tree
Showing 24 changed files with 3,330 additions and 5,265 deletions.
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Use an official Python runtime as a parent image
FROM python:3.10.8-slim

# Set the working directory in the container
WORKDIR /app

# Copy the current directory contents into the container at /usr/src/app
COPY sense-collector.py .
COPY storage.py .
COPY requirements.txt .

# Install any needed packages specified in requirements.txt

RUN apt-get update && \
apt-get install -y gcc python3-dev python3-pip && \
rm -rf /var/lib/apt/lists/*

RUN python3 -m pip install --no-cache-dir --upgrade pip \
&& python3 -m pip install --no-cache-dir -r /app/requirements.txt

# Run script.py when the container launches
CMD ["python3", "./sense-collector.py"]
281 changes: 119 additions & 162 deletions README.md

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: sense-collector
services:
sense-collector:
container_name: sense-collector
environment:
SENSE_COLLECTOR_API_PASSWORD: adkajsdlnaisdjasidamlisdmald
SENSE_COLLECTOR_API_USERNAME: [email protected]
SENSE_COLLECTOR_HOST_HOSTNAME: app20.tylephony.com
SENSE_COLLECTOR_INFLUXDB_BUCKET: sense
SENSE_COLLECTOR_INFLUXDB_ORG: Tylephony
SENSE_COLLECTOR_INFLUXDB_TOKEN: lkjijdalisdjoanisdnalisdjlamisdjm==
SENSE_COLLECTOR_INFLUXDB_URL: http://influxdb.lux4rd0.com:8086
SENSE_COLLECTOR_LOG_LEVEL_API: CRITICAL
SENSE_COLLECTOR_LOG_LEVEL_GENERAL: INFO
SENSE_COLLECTOR_LOG_LEVEL_STORAGE: CRITICAL
SENSE_COLLECTOR_SENSE_API_RECEIVE_DATA_OUTPUT: "False"
TZ: America/Chicago
image: lux4rd0/sense-collector:latest
restart: always
volumes:
- type: bind
source: /mnt/docker/sense-collector/export
target: /app/export
bind:
create_host_path: true
14 changes: 0 additions & 14 deletions docker-compose.yml

This file was deleted.

138 changes: 0 additions & 138 deletions generate_docker-compose.sh

This file was deleted.

Loading

0 comments on commit 5f48fdd

Please sign in to comment.