Update to latest rttys
This commit is contained in:
parent
26b1d0f51e
commit
4350671f1f
12
Dockerfile
12
Dockerfile
|
@ -110,8 +110,14 @@ RUN apt update && apt upgrade -y && \
|
||||||
asdf plugin add golang && \
|
asdf plugin add golang && \
|
||||||
asdf install golang latest && \
|
asdf install golang latest && \
|
||||||
asdf global golang $(asdf latest golang) && \
|
asdf global golang $(asdf latest golang) && \
|
||||||
go get -u github.com/zhaojh329/rttys && \
|
curl -fsSL https://deb.nodesource.com/setup_current.x | bash - && \
|
||||||
cp ~/.asdf/installs/golang/$(asdf latest golang)/packages/bin/rttys /usr/local/bin/ && \
|
apt install -y nodejs && \
|
||||||
|
cd /opt/rtty_build/rttys/frontend && \
|
||||||
|
npm install && \
|
||||||
|
npm run build && \
|
||||||
|
cd /opt/rtty_build/rttys && \
|
||||||
|
./build.sh linux ${ARCH} && \
|
||||||
|
cp rttys-linux*/rttys /usr/local/bin/rttys && \
|
||||||
cd /opt && \
|
cd /opt && \
|
||||||
echo "**** dashboard related ****" && \
|
echo "**** dashboard related ****" && \
|
||||||
apt install -y lighttpd && \
|
apt install -y lighttpd && \
|
||||||
|
@ -122,7 +128,7 @@ RUN apt update && apt upgrade -y && \
|
||||||
echo "**** rclone ****" && \
|
echo "**** rclone ****" && \
|
||||||
curl https://rclone.org/install.sh | bash && \
|
curl https://rclone.org/install.sh | bash && \
|
||||||
echo "**** filebrowser ****" && \
|
echo "**** filebrowser ****" && \
|
||||||
curl -fsSL https://filebrowser.org/get.sh | bash && \
|
curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash && \
|
||||||
echo "**** ansible ****" && \
|
echo "**** ansible ****" && \
|
||||||
apt install -y python3-apt sshpass ansible ansible-lint ansible-doc && \
|
apt install -y python3-apt sshpass ansible ansible-lint ansible-doc && \
|
||||||
echo "**** misc ****" && \
|
echo "**** misc ****" && \
|
||||||
|
|
6
root/etc/services.d/rttys/run
Executable file → Normal file
6
root/etc/services.d/rttys/run
Executable file → Normal file
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
/usr/local/bin/rttys run \
|
||||||
/usr/local/bin/rttys \
|
--conf /opt/rtty/rttys.conf \
|
||||||
-conf /opt/rtty/rttys.conf
|
--log /opt/rtty/rttys.log
|
||||||
|
|
Loading…
Reference in a new issue