File tree 4 files changed +19
-30
lines changed
4 files changed +19
-30
lines changed Original file line number Diff line number Diff line change 1
1
package config
2
2
3
- const Version = "heplify-server 1.58 "
3
+ const Version = "heplify-server 1.59.1 "
4
4
5
5
var Setting HeplifyServer
6
6
Original file line number Diff line number Diff line change 2
2
3
3
FROM golang:alpine as builder
4
4
5
- RUN apk update && apk add --no-cache git build-base
6
-
7
- RUN git clone https://luajit.org/git/luajit-2.0.git \
8
- && cd luajit-2.0 \
9
- && make CCOPT="-static -fPIC" BUILDMODE="static" && make install
10
-
11
- RUN go get -u -d -v github.com/sipcapture/heplify-server/...
12
- WORKDIR /go/src/github.com/sipcapture/heplify-server/cmd/heplify-server/
13
- RUN CGO_ENABLED=1 GOOS=linux go build -a --ldflags '-linkmode external -extldflags "-static -s -w"' -o heplify-server .
5
+ RUN apk update && apk add --no-cache git build-base luajit-dev
6
+ RUN go install github.com/sipcapture/heplify-server/cmd/heplify-server@latest
7
+ # workaround for latest version
8
+ WORKDIR /go/pkg/mod/github.com/sipcapture/
9
+ RUN ln -s `ls -ltd hepl* | tail -1 | awk '{print $9}' ` heplify-server@latest
14
10
15
11
FROM alpine:latest
16
12
@@ -19,5 +15,5 @@ RUN apk --no-cache add ca-certificates
19
15
RUN apk upgrade
20
16
21
17
WORKDIR /root/
22
- COPY --from=builder /go/src/github.com/sipcapture/heplify-server/cmd/heplify-server /heplify-server .
23
- COPY --from=builder /go/src/ github.com/sipcapture/heplify-server/scripts ./scripts
18
+ COPY --from=builder /go/bin /heplify-server .
19
+ COPY --from=builder /go/pkg/mod/ github.com/sipcapture/heplify-server@latest /scripts ./scripts
Original file line number Diff line number Diff line change @@ -17,19 +17,13 @@ description: |
17
17
vendor : " QXIP"
18
18
homepage : " http://qxip.net"
19
19
license : " AGPLv3"
20
- bindir : " /usr/local/bin"
21
- files :
22
- /tmp/pkg/heplify-server : " /usr/local/bin/heplify-server"
23
- config_files :
24
- /tmp/pkg/example/heplify-server.service : " /lib/systemd/system/heplify-server.service"
25
- /tmp/pkg/example/homer7_config/heplify-server.toml : " /etc/heplify-server.toml"
26
- # overrides:
27
- # rpm:
28
- # scripts:
29
- # preinstall: ./scripts/preinstall.sh
30
- # postremove: ./scripts/postremove.sh
31
- # deb:
32
- # scripts:
33
- # postinstall: ./scripts/postinstall.sh
34
- # preremove: ./scripts/preremove.sh
35
-
20
+ contents :
21
+ # Basic file that applies to all packagers
22
+ - src : /tmp/pkg/heplify-server
23
+ dst : /usr/local/bin/heplify-server
24
+ # Simple config file
25
+ - src : /tmp/pkg/example/heplify-server.service
26
+ dst : /lib/systemd/system/heplify-server.service
27
+ - src : /tmp/pkg/example/homer7_config/heplify-server.toml
28
+ dst : /etc/heplify-server.toml
29
+ type : config
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- VERSION=$( $PWD /heplify-server --version | grep " VERSION:" | grep -Po ' \d.\d+' )
3
+ VERSION=$( $PWD /heplify-server --version | grep " VERSION:" | grep -Po ' \d.\d+.\d+ ' )
4
4
PACKAGE=${PACKAGE:- " heplify-server" }
5
5
RELEASE=${VERSION:- " 1.1.4" }
6
6
ARCH=${ARCH:- " amd64" }
@@ -25,4 +25,3 @@ docker run --rm \
25
25
-v $PWD :/tmp/pkg \
26
26
-e VERSION=" $RELEASE " \
27
27
goreleaser/nfpm pkg --config /tmp/pkg/example/$PACKAGE .yaml --target " /tmp/pkg/$PACKAGE -$RELEASE -$ARCH .$EXT "
28
-
You can’t perform that action at this time.
0 commit comments