Skip to content

Commit

Permalink
- moved all binaries to release, removed binaries from git, added doc…
Browse files Browse the repository at this point in the history
…kerfile bootstrap
  • Loading branch information
ipcjk committed Jul 11, 2017
1 parent 66ffe29 commit 6697c8d
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
11 changes: 11 additions & 0 deletions Dockerfile.release
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM alpine:latest
RUN apk update
RUN apk --no-cache upgrade
RUN apk --no-cache add unzip ca-certificates openssl
WORKDIR /asnbuilder
RUN wget https://github.com/ipcjk/asnbuilder/releases/download/0.1/release.tar.gz
RUN tar xfz release.tar.gz --strip 1
RUN rm release.tar.gz
RUN chmod 0755 /mlxsh/asnbuilder
RUN chown root:root -R /asnbuilder
MAINTAINER Joerg Kost <jk@ip-clear.de>
Binary file removed src/bin/asnbuilder.exe
Binary file not shown.
Binary file removed src/bin/asnbuilder.linux
Binary file not shown.
Binary file removed src/bin/asnbuilder.mac
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* ip as-path regex builder
* Jörg Kost, joerg.kost@gmx.com, jk@premium-datacenter.de
* Jörg Kost, joerg.kost@gmx.com, jk@ip-clear.de
*
*/

Expand Down
7 changes: 4 additions & 3 deletions src/scripts/cross_compile.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
env GOOS=linux GOARCH=amd64 go build -o bin/asnbuilder.linux main.go
env GOOS=windows GOARCH=amd64 go build -o bin/asnbuilder.exe main.go
env GOOS=darwin GOARCH=amd64 go build -o bin/asnbuilder.mac main.go
mkdir release
env GOOS=linux GOARCH=amd64 go build -o release/asnbuilder.linux main.go
env GOOS=windows GOARCH=amd64 go build -o release/asnbuilder.exe main.go
env GOOS=darwin GOARCH=amd64 go build -o release/asnbuilder.mac main.go

0 comments on commit 6697c8d

Please sign in to comment.