Skip to content

Commit 12a4527

Browse files
committed
#39 fix pwa install bug, fix dev mode not hot reloading server, add basic lib deps for most appimages
1 parent 5471800 commit 12a4527

3 files changed

Lines changed: 29 additions & 16 deletions

File tree

Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN \
1616
https://github.com/selkies-project/selkies.git \
1717
/src && \
1818
cd /src && \
19-
git checkout -f a577b656b48444be9b7a04bab17c0046e1e77e59
19+
git checkout -f 6913d8b281c88e8f83c35cb8570f543ef9dfec9d
2020

2121
RUN \
2222
echo "**** build frontend ****" && \
@@ -59,8 +59,6 @@ RUN \
5959
echo "**** dev deps ****" && \
6060
apt-get update && \
6161
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
62-
libopus-dev \
63-
libpulse-dev \
6462
python3-dev \
6563
python3-pip && \
6664
echo "**** enable locales ****" && \
@@ -96,6 +94,8 @@ RUN \
9694
git \
9795
intel-media-va-driver \
9896
kbd \
97+
libatk1.0-0 \
98+
libatk-bridge2.0-0 \
9999
libev4 \
100100
libfontenc1 \
101101
libfreetype6 \
@@ -105,8 +105,10 @@ RUN \
105105
libgl1-mesa-dri \
106106
libglu1-mesa \
107107
libgnutls30 \
108+
libgtk-3.0 \
108109
libnginx-mod-http-fancyindex \
109110
libnotify-bin \
111+
libnss3 \
110112
libopus0 \
111113
libp11-kit0 \
112114
libpam0g \
@@ -115,13 +117,18 @@ RUN \
115117
libx11-6 \
116118
libxau6 \
117119
libxcb1 \
120+
libxcb-icccm4 \
121+
libxcb-image0 \
122+
libxcb-keysyms1 \
123+
libxcb-render-util0 \
118124
libxcursor1 \
119125
libxdmcp6 \
120126
libxext6 \
121127
libxfconf-0-3 \
122128
libxfixes3 \
123129
libxfont2 \
124130
libxinerama1 \
131+
libxkbcommon-x11-0 \
125132
libxshmfence1 \
126133
libxtst6 \
127134
locales-all \
@@ -177,7 +184,7 @@ RUN \
177184
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
178185
curl -o \
179186
/tmp/selkies.tar.gz -L \
180-
"https://github.com/selkies-project/selkies/archive/a577b656b48444be9b7a04bab17c0046e1e77e59.tar.gz" && \
187+
"https://github.com/selkies-project/selkies/archive/6913d8b281c88e8f83c35cb8570f543ef9dfec9d.tar.gz" && \
181188
cd /tmp && \
182189
tar xf selkies.tar.gz && \
183190
cd selkies-* && \
@@ -246,8 +253,6 @@ RUN \
246253
| tar xzvf - -C /usr/share/themes/Clearlooks/openbox-3/ && \
247254
echo "**** cleanup ****" && \
248255
apt-get purge -y --autoremove \
249-
libopus-dev \
250-
libpulse-dev \
251256
python3-dev \
252257
python3-pip && \
253258
apt-get autoclean && \

Dockerfile.aarch64

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN \
1616
https://github.com/selkies-project/selkies.git \
1717
/src && \
1818
cd /src && \
19-
git checkout -f a577b656b48444be9b7a04bab17c0046e1e77e59
19+
git checkout -f 6913d8b281c88e8f83c35cb8570f543ef9dfec9d
2020

2121
RUN \
2222
echo "**** build frontend ****" && \
@@ -59,8 +59,6 @@ RUN \
5959
echo "**** dev deps ****" && \
6060
apt-get update && \
6161
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
62-
libopus-dev \
63-
libpulse-dev \
6462
python3-dev \
6563
python3-pip && \
6664
echo "**** enable locales ****" && \
@@ -95,6 +93,8 @@ RUN \
9593
gcc \
9694
git \
9795
kbd \
96+
libatk1.0-0 \
97+
libatk-bridge2.0-0 \
9898
libev4 \
9999
libfontenc1 \
100100
libfreetype6 \
@@ -104,8 +104,10 @@ RUN \
104104
libgl1-mesa-dri \
105105
libglu1-mesa \
106106
libgnutls30 \
107+
libgtk-3.0 \
107108
libnginx-mod-http-fancyindex \
108109
libnotify-bin \
110+
libnss3 \
109111
libopus0 \
110112
libp11-kit0 \
111113
libpam0g \
@@ -114,13 +116,18 @@ RUN \
114116
libx11-6 \
115117
libxau6 \
116118
libxcb1 \
119+
libxcb-icccm4 \
120+
libxcb-image0 \
121+
libxcb-keysyms1 \
122+
libxcb-render-util0 \
117123
libxcursor1 \
118124
libxdmcp6 \
119125
libxext6 \
120126
libxfconf-0-3 \
121127
libxfixes3 \
122128
libxfont2 \
123129
libxinerama1 \
130+
libxkbcommon-x11-0 \
124131
libxshmfence1 \
125132
libxtst6 \
126133
locales-all \
@@ -175,7 +182,7 @@ RUN \
175182
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
176183
curl -o \
177184
/tmp/selkies.tar.gz -L \
178-
"https://github.com/selkies-project/selkies/archive/a577b656b48444be9b7a04bab17c0046e1e77e59.tar.gz" && \
185+
"https://github.com/selkies-project/selkies/archive/6913d8b281c88e8f83c35cb8570f543ef9dfec9d.tar.gz" && \
179186
cd /tmp && \
180187
tar xf selkies.tar.gz && \
181188
cd selkies-* && \
@@ -244,8 +251,6 @@ RUN \
244251
| tar xzvf - -C /usr/share/themes/Clearlooks/openbox-3/ && \
245252
echo "**** cleanup ****" && \
246253
apt-get purge -y --autoremove \
247-
libopus-dev \
248-
libpulse-dev \
249254
python3-dev \
250255
python3-pip && \
251256
apt-get autoclean && \

root/etc/s6-overlay/s6-rc.d/svc-selkies/run

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,14 @@ if [ ! -z ${DEV_MODE+x} ]; then
4848
s6-setuidgid abc npm run serve &
4949
fi
5050
# Run backend
51+
cd $HOME/src/src
5152
s6-setuidgid abc \
52-
nodemon \
53-
--watch selkies \
54-
--ext "py" \
55-
--exec "python3 -m selkies --port=8081 --enable_basic_auth=false --mode=websockets"
53+
nodemon -V --ext py --exec \
54+
"python3" -m selkies \
55+
--addr="localhost" \
56+
--port="8081" \
57+
--enable_basic_auth="false" \
58+
--mode="websockets"
5659
fi
5760

5861

0 commit comments

Comments
 (0)