Sebastian Denz
4 years ago
9 changed files with 131 additions and 46 deletions
@ -0,0 +1,8 @@ |
|||
from golang:1.15.0 |
|||
|
|||
RUN mkdir /wsjtx-exporter |
|||
ADD . /wsjtx-exporter |
|||
WORKDIR /wsjtx-exporter/cmd/wsjtx-exporter |
|||
RUN go build |
|||
|
|||
CMD ["/wsjtx-exporter/cmd/wsjtx-exporter/wsjtx-exporter"] |
@ -0,0 +1,16 @@ |
|||
#!/bin/bash |
|||
|
|||
app="wsjtx-exporter" |
|||
|
|||
docker build -t 10.0.73.1:5000/$app:latest . || exit 1 |
|||
#export TAG=$(docker images|grep -v REPO|head -n1|awk '{print $3}') |
|||
#docker tag $TAG 10.0.73.1:5000/$app:latest || exit 1 |
|||
docker push 10.0.73.1:5000/$app:latest || exit 1 |
|||
|
|||
go get ./... |
|||
env GOOS=linux GOARCH=arm GOARM=5 go get ./... |
|||
env GOOS=windows GOARCH=amd64 go get ./... |
|||
|
|||
cp ~/go/bin/alltxt2http ~/Nextcloud/share/dl7le/binaries/linux64 |
|||
cp ~/go/bin/linux_arm/alltxt2http ~/Nextcloud/share/dl7le/binaries/raspi |
|||
cp ~/go/bin/windows_amd64/alltxt2http.exe ~/Nextcloud/share/dl7le/binaries/win64 |
@ -0,0 +1,16 @@ |
|||
CREATE TABLE IF NOT EXISTS wsjtx_all_txt ( |
|||
ts timestamp NOT NULL, |
|||
station VARCHAR(16) NOT NULL, |
|||
callsign VARCHAR(16) NOT NULL, |
|||
band VARCHAR(10) NOT NULL, |
|||
continent VARCHAR(32) NOT NULL, |
|||
mode VARCHAR(16) NOT NULL, |
|||
dxcc VARCHAR(128) NOT NULL, |
|||
geohash VARCHAR(16) NOT NULL, |
|||
report TINYINT NOT NULL, |
|||
cqzone INT NOT NULL, |
|||
ituzone INT NOT NULL, |
|||
rx TINYINT NOT NULL, |
|||
PRIMARY KEY PK_wsjtx_all_txt (ts, station, callsign), |
|||
INDEX idx_dxcc (dxcc) |
|||
); |
Loading…
Reference in new issue