Skip to content

Commit 7451af5

Browse files
committed
address PR reviews
1 parent 922b68c commit 7451af5

File tree

4 files changed

+23
-13
lines changed

4 files changed

+23
-13
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ docker-compose*
66
README.md
77
LICENSE
88
.vscode
9+
*.sock
910

docker/DockerFile.dev

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
# check docker/Readme.md
2+
FROM debian:stable
23

3-
FROM ubuntu:impish
4-
RUN apt update
5-
RUN apt upgrade -y
4+
RUN apt-get update
5+
RUN apt-get upgrade -y
66

7-
RUN apt-get install -y locales && locale-gen en_US.UTF-8
8-
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
7+
# we need this to make https://deb.oxen.io fetches work
8+
RUN apt-get install -y ca-certificates
99

10-
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt -y install curl build-essential libssl-dev pkg-config lsb-release
11-
RUN curl -so /etc/apt/trusted.gpg.d/oxen.gpg https://deb.oxen.io/pub.gpg
12-
RUN echo "deb https://deb.oxen.io $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/oxen.list
13-
RUN apt update
14-
RUN apt -y install python3-oxenmq python3-oxenc python3-pyonionreq python3-coloredlogs python3-uwsgidecorators python3-flask python3-cryptography python3-nacl python3-pil python3-protobuf python3-openssl python3-qrencode python3-better-profanity python3-sqlalchemy python3-sqlalchemy-utils uwsgi-plugin-python3
10+
COPY contrib/deb.oxen.io.gpg /etc/apt/trusted.gpg.d/oxen.gpg
11+
12+
13+
# there is no lsb-release package on the base debian build
14+
RUN echo "deb https://deb.oxen.io $(cat /etc/os-release | grep VERSION_CODENAME | cut -d "=" -f2) main" > /etc/apt/sources.list.d/oxen.list
15+
RUN cat /etc/apt/sources.list.d/oxen.list
16+
RUN apt-get update
17+
RUN apt -y install python3-oxenmq python3-oxenc python3-pyonionreq python3-coloredlogs python3-uwsgidecorators python3-flask \
18+
python3-cryptography python3-nacl python3-pil python3-protobuf python3-openssl python3-qrencode python3-better-profanity \
19+
python3-sqlalchemy python3-sqlalchemy-utils uwsgi-plugin-python3
1520

1621

1722
# just add an alias to the pysogs-start command
18-
RUN echo -e '#!/bin/bash\nuwsgi docker/uwsgi-sogs-docker.ini' > /usr/bin/pysogs && \
23+
RUN echo '#!/bin/bash\nuwsgi docker/uwsgi-sogs-docker.ini' > /usr/bin/pysogs && \
1924
chmod +x /usr/bin/pysogs
2025

2126

docker/Readme.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
The file DockerFile.dev is specifically made for development if you are not running linux.
44
It lets you create a docker running linux and the pysogs in it even if you are running Macos or Windows.
5-
It creates a docker container with the content of this git reposotiry mounted.
5+
It creates a docker container with the content of this git repository mounted.
66
Basically, whatever you edit in this repository will be represented on the docker container. So when you run the container, it will run your code.
77

8+
# Not for production use
9+
10+
This docker image is strictly for development use and not supported for production use.
11+
812
## Build the container image
913

1014
You need to have docker installed on your computer. Follow the docker documentation for your system first.

sogs/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def load_config():
6464

6565
logger.info(f"Loading config from {conf_ini}")
6666
cp = configparser.ConfigParser()
67-
cp.read(conf_ini)
67+
cp.read(conf_ini, encoding='utf-8')
6868

6969
# Set log level up first (we'll set it again below, mainly to log it if we have debug logging
7070
# enabled).

0 commit comments

Comments
 (0)