-
Notifications
You must be signed in to change notification settings - Fork 5
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 #16 from lux4rd0/2.0.03
2.0.03 - New Release
- Loading branch information
Showing
24 changed files
with
3,330 additions
and
5,265 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 |
---|---|---|
@@ -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"] |
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 |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.