Skip to content

Commit

Permalink
Merge pull request #64 from NexClipper/master
Browse files Browse the repository at this point in the history
edit dockerfile (add ssh)
  • Loading branch information
ralfyang authored Aug 19, 2020
2 parents 3285330 + fb0956f commit 971c131
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions Dockerfile/agent/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
FROM ubuntu:focal
LABEL version=0.1.4

RUN apt-get update -y && apt-get install -y ssh
#RUN mkdir -p root/.ssh/ && \
# cd root/.ssh && \
# echo $'Host * \n\
# StrictHostKeyChecking no \n\
# UserKnownHostsFile /dev/null \n '\
# > config


COPY ./klevr /
COPY ./entrypoint.sh /

Expand Down
3 changes: 2 additions & 1 deletion Dockerfile/agent/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## How to run docker of Klevr agent
* ex)
```
sudo docker run -d -e K_API_KEY="1231" -e K_PLATFORM="1231" -e K_MANAGER_URL="http://192.168.2.100:8090" -e K_ZONE_ID="13123" klevry/klevr-agent
sudo docker run -d -p 18800:18800 -e K_API_KEY="1231" -e K_PLATFORM="1231" -e K_MANAGER_URL="192.168.2.100:8090" -e K_ZONE_ID="13123" --name=klevr_agent klevry/klevr-agent:latest
```
Binary file modified Dockerfile/agent/klevr
Binary file not shown.
2 changes: 1 addition & 1 deletion cmd/klevr-agent/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require:
go get -u

build: require
go build -o ./Dockerfile/klevr ./main.go
env GOOS=linux GOARCH=amd64 go build -o ./Dockerfile/klevr ./main.go
run:
## go run ./main.go -id=ralf -platform=baremetal -webconsole=${WEBCONSOLE} -zone=dev -group="klevr-a-team"
go run ./main.go -apiKey="apiKey" -platform="linux_laptop" -manager="192.168.15.163:8090" -zoneId="8282"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ require (
github.com/urfave/cli/v2 v2.2.0
github.com/zcalusic/sysinfo v0.0.0-20200228145645-a159d7cc708b
golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc // indirect
golang.org/x/sys v0.0.0-20200817155316-9781c653f443 // indirect
golang.org/x/sys v0.0.0-20200819035508-9a32b3aa38f5 // indirect
golang.org/x/text v0.3.3 // indirect
google.golang.org/protobuf v1.25.0 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ golang.org/x/sys v0.0.0-20200806125547-5acd03effb82 h1:6cBnXxYO+CiRVrChvCosSv7ma
golang.org/x/sys v0.0.0-20200806125547-5acd03effb82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200817155316-9781c653f443 h1:X18bCaipMcoJGm27Nv7zr4XYPKGUy92GtqboKC2Hxaw=
golang.org/x/sys v0.0.0-20200817155316-9781c653f443/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200819035508-9a32b3aa38f5 h1:2r6BWB+sWBIRVv2mC6sYNpdbplZte/1k1drwUKUpS60=
golang.org/x/sys v0.0.0-20200819035508-9a32b3aa38f5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.0.0-20160726164857-2910a502d2bf/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
Expand Down

0 comments on commit 971c131

Please sign in to comment.