Skip to content

Commit dafddd6

Browse files
Merge pull request #95 from containerum/chkit-v3
Chkit v3
2 parents 3b178a4 + c0dbf13 commit dafddd6

File tree

574 files changed

+49580
-5840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

574 files changed

+49580
-5840
lines changed

.dockerignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Go template
3+
# Binaries for programs and plugins
4+
*.exe
5+
*.exe~
6+
*.dll
7+
*.so
8+
*.dylib
9+
10+
# Test binary, build with `go test -c`
11+
*.test
12+
13+
# Output of the go coverage tool, specifically when used with LiteIDE
14+
*.out
15+
### JetBrains template
16+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
17+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
18+
19+
# User-specific stuff
20+
.idea/**/workspace.xml
21+
.idea/**/tasks.xml
22+
.idea/**/dictionaries
23+
.idea/**/shelf
24+
25+
# Sensitive or high-churn files
26+
.idea/**/dataSources/
27+
.idea/**/dataSources.ids
28+
.idea/**/dataSources.local.xml
29+
.idea/**/sqlDataSources.xml
30+
.idea/**/dynamic.xml
31+
.idea/**/uiDesigner.xml
32+
33+
# Gradle
34+
.idea/**/gradle.xml
35+
.idea/**/libraries
36+
37+
# CMake
38+
cmake-build-debug/
39+
cmake-build-release/
40+
41+
# Mongo Explorer plugin
42+
.idea/**/mongoSettings.xml
43+
44+
# File-based project format
45+
*.iws
46+
47+
# IntelliJ
48+
out/
49+
50+
# mpeltonen/sbt-idea plugin
51+
.idea_modules/
52+
53+
# JIRA plugin
54+
atlassian-ide-plugin.xml
55+
56+
# Cursive Clojure plugin
57+
.idea/replstate.xml
58+
59+
# Crashlytics plugin (for Android Studio and IntelliJ)
60+
com_crashlytics_export_strings.xml
61+
crashlytics.properties
62+
crashlytics-build.properties
63+
fabric.properties
64+
65+
# Editor-based Rest Client
66+
.idea/httpRequests
67+
68+
.idea
69+
/build
70+
/.gitignore

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ chkit
33
chkit-v2*
44
build
55
*.exe
6-
!build/*
6+
!/build/*
77
.idea
88
deployment.json
99
/service.json
1010
!/cmd/chkit/
11+

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
sudo: required
2+
3+
language: go
4+
5+
env:
6+
global:
7+
- IMAGE_NAME=containerum/chkit
8+
9+
services:
10+
- docker
11+
12+
script:
13+
- docker build -t "$IMAGE_NAME" .
14+
15+
before_deploy:
16+
- docker login -u="$DOCKER_LOGIN" -p="$DOCKER_PASSWORD"
17+
- docker tag "$IMAGE_NAME" "${IMAGE_NAME}:latest"
18+
- docker tag "$IMAGE_NAME" "${IMAGE_NAME}:${TRAVIS_TAG}"
19+
20+
deploy:
21+
provider: script
22+
script: docker push "${IMAGE_NAME}:latest" && docker push "${IMAGE_NAME}:${TRAVIS_TAG}"
23+
on:
24+
tags: true

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM golang:1.10-alpine AS builder
2+
RUN apk --no-cache add zip make git openssl
3+
WORKDIR /go/src/github.com/containerum/chkit
4+
ARG BUILD_CONTAINERUM_API=https://api.containerum.io:8082
5+
ENV CONTAINERUM_API=$BUILD_CONTAINERUM_API
6+
COPY . .
7+
RUN make build
8+
9+
FROM alpine:3.7
10+
RUN apk --no-cache add ca-certificates && update-ca-certificates
11+
COPY --from=builder /go/src/github.com/containerum/chkit/build/chkit /chkit
12+
13+
VOLUME /root/.config/containerum
14+
15+
ARG ALLOW_SELF_SIGNED_CERTS=false
16+
17+
RUN /chkit set containerum-api --allow-self-signed-certs=$ALLOW_SELF_SIGNED_CERTS
18+
19+
ENTRYPOINT ["/chkit"]
20+
CMD ["--help"]

0 commit comments

Comments
 (0)