Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
li-clement committed Oct 25, 2021
1 parent 59739b8 commit a1f3587
Show file tree
Hide file tree
Showing 20 changed files with 1,370 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/strategy-executor.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM golang:alpine
WORKDIR /app
COPY ./go.mod .
RUN go mod download
COPY . .
CMD ["go", "run", "src/server.go"]
11 changes: 11 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module gitee.com/lizi/test-bot

go 1.16

require (
gitee.com/openeuler/go-gitee v0.0.0-20210427125813-de0b78ea30e9
github.com/antihax/optional v1.0.0
github.com/robfig/cron/v3 v3.0.1
github.com/sirupsen/logrus v1.8.1
golang.org/x/oauth2 v0.0.0-20210427180440-81ed05c6b58c
)
378 changes: 378 additions & 0 deletions go.sum

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions google-k8s/back-cluster-ip.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: back-cluster-ip
spec:
type: ClusterIP
selector:
component: back
ports:
- port: 8008
targetPort: 8008
19 changes: 19 additions & 0 deletions google-k8s/back-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: back
spec:
replicas: 3
selector:
matchLabels:
component: back
template:
metadata:
labels:
component: back
spec:
containers:
- name: back
image: robekeane/test-bot:0.41
ports:
- containerPort: 8008
14 changes: 14 additions & 0 deletions google-k8s/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: ingress-service
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- http:
paths:
- backend:
serviceName: back-cluster-ip
servicePort: 8008
path: /
1 change: 1 addition & 0 deletions src/data/token.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
adb08695039522366c4a645e1e6a3dd4
Loading

0 comments on commit a1f3587

Please sign in to comment.