-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from lux4rd0/2.0.06
2.0.06
- Loading branch information
Showing
7 changed files
with
1,292 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.10.8-slim | ||
FROM python:3.12.3-slim | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy the current directory contents into the container at /usr/src/app | ||
# Copy the current directory contents into the container at /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/* | ||
|
||
# Install pip and the Python packages | ||
RUN python3 -m pip install --no-cache-dir --upgrade pip \ | ||
&& python3 -m pip install --no-cache-dir -r /app/requirements.txt | ||
&& python3 -m pip install --no-cache-dir -r requirements.txt | ||
|
||
# Run script.py when the container launches | ||
# Run sense-collector.py when the container launches | ||
CMD ["python3", "./sense-collector.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
name: sense-collector | ||
name: sense-collector-53997 | ||
services: | ||
sense-collector: | ||
container_name: sense-collector | ||
sense-collector-53997: | ||
container_name: sense-collector-53997 | ||
environment: | ||
SENSE_COLLECTOR_API_PASSWORD: adkajsdlnaisdjasidamlisdmald | ||
SENSE_COLLECTOR_API_USERNAME: [email protected] | ||
SENSE_COLLECTOR_HOST_HOSTNAME: app20.tylephony.com | ||
SENSE_COLLECTOR_API_PASSWORD: CHANGEME | ||
SENSE_COLLECTOR_API_USERNAME: [email protected] | ||
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" | ||
SENSE_COLLECTOR_INFLUXDB_ORG: Lux4rd0 | ||
SENSE_COLLECTOR_INFLUXDB_TOKEN: TOKEN | ||
SENSE_COLLECTOR_INFLUXDB_URL: http://sense.lux4rd0.com:8086 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
aiohttp==3.9.1 | ||
influxdb_client==1.39.0 | ||
psutil==5.9.5 | ||
python_dateutil==2.8.2 | ||
pytz==2024.1 | ||
Requests==2.32.3 | ||
|
Oops, something went wrong.