-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM golang:1.11-alpine | ||
|
||
# Need to mount /var/run/docker.sock | ||
# Need to mount /root/.config/goreleaser/github_token | ||
# Need to mount /go/src/github.com/kamaln7/karmabot | ||
|
||
RUN apk add --no-cache alpine-sdk git docker | ||
|
||
RUN mkdir /tmp/goreleaser && \ | ||
cd /tmp/goreleaser && \ | ||
wget -O goreleaser.tgz https://github.com/goreleaser/goreleaser/releases/download/v0.104.0/goreleaser_Linux_x86_64.tar.gz && \ | ||
tar vxf goreleaser.tgz && \ | ||
mv goreleaser /bin && \ | ||
rm -r /tmp/goreleaser | ||
|
||
WORKDIR /go/src/github.com/kamaln7/karmabot | ||
ENTRYPOINT ["goreleaser"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
FROM alpine:3.6 | ||
RUN apk add --no-cache sqlite ca-certificates | ||
# See http://stackoverflow.com/questions/34729748/installed-go-binary-not-found-in-path-on-alpine-linux-docker | ||
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 | ||
COPY karmabot / | ||
ENTRYPOINT ["/karmabot"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
FROM alpine:3.6 | ||
RUN apk add --no-cache sqlite ca-certificates | ||
# See http://stackoverflow.com/questions/34729748/installed-go-binary-not-found-in-path-on-alpine-linux-docker | ||
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 | ||
COPY karmabotctl / | ||
ENTRYPOINT ["/karmabotctl"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
cd "${0%/*}" | ||
|
||
docker run \ | ||
--rm -ti --privileged \ | ||
-v $(pwd):/go/src/github.com/kamaln7/karmabot \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v $HOME/.config/goreleaser/github_token:/root/.config/goreleaser/github_token \ | ||
-v $HOME/.docker/config.json:/root/.docker/config.json \ | ||
karmabot-goreleaser $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package karmabot | ||
|
||
// Version is the current version of karmabot. | ||
const Version = "-dev" | ||
var Version = "-dev" |