Skip to content
Snippets Groups Projects
Verified Commit d28b5f6a authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Initial preparations

parents
Branches
No related tags found
No related merge requests found
/.idea/
/vendor/
\ No newline at end of file
FROM golang
RUN curl https://glide.sh/get | sh
RUN apt-get update && apt-get install -y --no-install-recommends \
imagemagick \
libmagickwand-dev
WORKDIR /go/src/app
COPY . .
RUN glide install
RUN go build -a app .
ENTRYPOINT ["./app"]
\ No newline at end of file
build.sh 0 → 100755
#!/bin/sh
IMAGE=k8r.eu/justjanne/statsbot
TAGS=$(git describe --always --tags HEAD)
docker build -t $IMAGE:$TAGS .
docker tag $IMAGE:$TAGS $IMAGE:latest
echo Successfully tagged $IMAGE:latest
docker push $IMAGE:$TAGS
docker push $IMAGE:latest
\ No newline at end of file
#!/bin/sh
IMAGE=k8r.eu/justjanne/statsbot
TAGS=$(git describe --always --tags HEAD)
DEPLOYMENT=statsbot
POD=statsbot
kubectl -n statsbot set image deployment/$DEPLOYMENT $POD=$IMAGE:$TAGS
\ No newline at end of file
package: git.kuschku.de/justjanne/statsbot
import:
- package: github.com/lrstanley/girc
package statsbot
func main() {
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment