Commit 34d45360 authored by echel0n's avatar echel0n

Added docker-compose file.

Corrected logger to properly get locale and pass to Sentry.
parent 44977d45
......@@ -6,6 +6,11 @@ ENV SOURCE_COMMIT $SOURCE_COMMIT
ENV TZ 'Canada/Pacific'
#RUN locale-gen en_US.UTF-8
#ENV LANG en_US.UTF-8
#ENV LANGUAGE en_US:en
#ENV LC_ALL en_US.UTF-8
COPY . /opt/sickrage/
RUN apk add --update --no-cache libffi-dev openssl-dev libxml2-dev libxslt-dev linux-headers build-base git tzdata unrar
......
version: '2'
services:
sickrage:
container_name: sickrage
build: .
ports:
- 8081:8081
volumes:
- D:\docker\sickrage\config:/root/.sickrage
- D:\Downloads:/downloads
- D:\Videos\TV:/tv
environment:
- TZ=Canada/Pacific
# - LANG=en_US.UTF-8
# - LANGUAGE=en_US:en
# - LC_ALL=en_US.UTF-8
\ No newline at end of file
......@@ -18,7 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with SiCKRAGE. If not, see <http://www.gnu.org/licenses/>.
# ##############################################################################
import locale
import logging
import os
import pkgutil
......@@ -109,7 +109,7 @@ class Logger(logging.getLoggerClass()):
sentry_tags = {
'platform': platform.platform(),
'locale': sys.getdefaultencoding(),
'locale': locale.getdefaultlocale(),
'python': platform.python_version()
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment