Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
YUN BAI committed Jun 14, 2024
1 parent 31be9ef commit f3abe01
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ output/
manifest/output/
temp/
temp.yaml
bin
**/config/config.yaml
bin
43 changes: 43 additions & 0 deletions manifest/config/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
server:
address: ":8000"
openapiPath: "/api.json"
swaggerPath: "/swagger"

logger:
level : "all"
stdout: true

#database:
# default:
# link: "pgsql:user:password@tcp(localhost:5432)/test1"
# debug: true

db:
debug: true
type: "pg"
dsn: "host=localhost user=xxxx password=xxxx dbname=test1 port=26257 sslmode=disable TimeZone=Asia/Shanghai"

store:
endpoint: "xxxx"
accessKey: "xxxx"
secretKey: "xxxxxxx"
bucket: "agent01"
scheme: "https"

casdoor:
endpoint: "xxxxxxxx"
clientId: "xxxxxxxxxxxx"
clientSecret: "xxxxxxx"
organizationName: "built-in"
applicationName: "agent"
certificate: |
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
smtp:
host: "xxxxx"
port: 465
username: "xxxxx"
password: "xxxxx"
sender: "xxxxxxx"
debug: false
7 changes: 0 additions & 7 deletions manifest/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ WORKDIR $WORKDIR

ADD . .

RUN ls -alh ./

RUN ls -alh /release/manifest
RUN ls -alh /release/manifest/config

RUN pwd

RUN GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -ldflags="-s -w" -o dotblue main.go

RUN chmod +x $WORKDIR/dotblue
Expand Down

0 comments on commit f3abe01

Please sign in to comment.