This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
local dirs = ['_CI-CD', 'apps'];
|
local dirs = ['_CI-CD', 'apps'];
|
||||||
|
|
||||||
local packages = ['debian-stable', 'debian-testing', 'debian-stable-build-essential', 'debian-golang', 'debian-stable-php-fpm', 'distcc'];
|
#local packages = ['debian-stable', 'debian-testing', 'debian-stable-build-essential', 'debian-golang', 'debian-stable-php-fpm', 'distcc'];
|
||||||
#local packages = ['debian-golang'];
|
local packages = ['debian-golang'];
|
||||||
|
|
||||||
local apps = ['apt-cacher-ng', 'curl', 'mosquitto', 'mosquitto-prometheus-exporter'];
|
#local apps = ['apt-cacher-ng', 'curl', 'mosquitto', 'mosquitto-prometheus-exporter'];
|
||||||
#local apps = ['mosquitto-prometheus-exporter'];
|
local apps = ['mosquitto-prometheus-exporter'];
|
||||||
|
|
||||||
local build(dir, package) = {
|
local build(dir, package) = {
|
||||||
name: '%(package)s' % { package: package },
|
name: '%(package)s' % { package: package },
|
||||||
|
|||||||
@@ -8,10 +8,11 @@ WORKDIR /usr/src
|
|||||||
RUN go install github.com/sapcc/mosquitto-exporter@latest
|
RUN go install github.com/sapcc/mosquitto-exporter@latest
|
||||||
#RUN go mod download
|
#RUN go mod download
|
||||||
|
|
||||||
FROM scratch
|
FROM cr.wks/debian-stable
|
||||||
LABEL source_repository="https://github.com/sapcc/mosquitto-exporter"
|
LABEL source_repository="https://github.com/sapcc/mosquitto-exporter"
|
||||||
|
|
||||||
COPY --from=build /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
|
COPY --from=build --chmod=0755 /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
|
||||||
|
RUN ls -la /
|
||||||
|
|
||||||
EXPOSE 9234
|
EXPOSE 9234
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user