File tree Expand file tree Collapse file tree 4 files changed +23
-13
lines changed Expand file tree Collapse file tree 4 files changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,5 @@ docker-compose*
6
6
README.md
7
7
LICENSE
8
8
.vscode
9
+ * .sock
9
10
Original file line number Diff line number Diff line change 1
1
# check docker/Readme.md
2
+ FROM debian:stable
2
3
3
- FROM ubuntu:impish
4
- RUN apt update
5
- RUN apt upgrade -y
4
+ RUN apt-get update
5
+ RUN apt-get upgrade -y
6
6
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
9
9
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
15
20
16
21
17
22
# 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 && \
19
24
chmod +x /usr/bin/pysogs
20
25
21
26
Original file line number Diff line number Diff line change 2
2
3
3
The file DockerFile.dev is specifically made for development if you are not running linux.
4
4
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.
6
6
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.
7
7
8
+ # Not for production use
9
+
10
+ This docker image is strictly for development use and not supported for production use.
11
+
8
12
## Build the container image
9
13
10
14
You need to have docker installed on your computer. Follow the docker documentation for your system first.
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def load_config():
64
64
65
65
logger .info (f"Loading config from { conf_ini } " )
66
66
cp = configparser .ConfigParser ()
67
- cp .read (conf_ini )
67
+ cp .read (conf_ini , encoding = 'utf-8' )
68
68
69
69
# Set log level up first (we'll set it again below, mainly to log it if we have debug logging
70
70
# enabled).
You can’t perform that action at this time.
0 commit comments