File tree 5 files changed +40
-5
lines changed
5 files changed +40
-5
lines changed Original file line number Diff line number Diff line change 1
- /.git
2
- /.gitignore
1
+ .dockerignore
2
+ Dockerfile
3
+ .env
4
+ .git
5
+ .gitignore
6
+ .gitattributes
7
+ README.md
8
+ /.yamllint
9
+ /.golangci.yml
10
+ /.idea
11
+ /.circleci
3
12
/dist
4
13
/build
5
14
/test
Original file line number Diff line number Diff line change 1
- / playground
1
+ .env
2
2
/dist
3
3
4
4
# Created by https://www.gitignore.io/api/go
Original file line number Diff line number Diff line change @@ -6,6 +6,6 @@ RUN go build -a -tags netgo -installsuffix netgo -v -o ./dist/devfarm ./cmd/devf
6
6
7
7
FROM amazon/aws-cli:2.0.48
8
8
COPY --from=builder /go/src/devfarm/dist/* /usr/local/bin/
9
+ VOLUME ["/app" ]
9
10
10
11
ENTRYPOINT ["devfarm" ]
11
- CMD ["version" ]
Original file line number Diff line number Diff line change @@ -467,6 +467,32 @@ Install
467
467
$ go get -u github.com/dena/devfarm/cmd/devfarm
468
468
```
469
469
470
+ <details >
471
+ <summary >Using Docker</summary >
472
+
473
+ ``` console
474
+ $ docker pull docker.pkg.github.com/dena/devfarm/devfarm:latest
475
+
476
+ $ cat .env
477
+ AWS_ACCESS_KEY_ID=***
478
+ AWS_SECRET_ACCESS_KEY=***
479
+
480
+ $ docker run --rm --env-file ./.env docker.pkg.github.com/dena/devfarm/devfarm:latest auth-status
481
+
482
+ $ tree -a " $( pwd) "
483
+ .
484
+ ├── .env
485
+ └── app
486
+ ├── Example.apk
487
+ ├── Example.ipa
488
+ └── planfile.yml
489
+
490
+ 1 directory, 4 files
491
+
492
+ $ docker run --rm --env-file ./.env -v " $( pwd) /app:/app" docker.pkg.github.com/dena/devfarm/devfarm:latest run-all /app/planfile
493
+ ```
494
+ </details >
495
+
470
496
471
497
472
498
Requirements
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ BASE_DIR="$(cd "$(dirname "$0")"; pwd)"
7
7
8
8
main () {
9
9
local tag=" ${1:- latest} "
10
- local image_id=' asia.gcr.io /dena-internal-swet-gcp /devfarm'
10
+ local image_id=' docker.pkg.github.com /dena/devfarm /devfarm'
11
11
12
12
(cd " $BASE_DIR "
13
13
docker build . -t " ${image_id} :${tag} "
You can’t perform that action at this time.
0 commit comments