Skip to content

Commit 9ee1185

Browse files
committed
add: upload local things to cloud
1 parent 4245ac1 commit 9ee1185

Some content is hidden

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

49 files changed

+3989
-1
lines changed

.github/ISSUE_TEMPLATE

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
** PLEASE ONLY USE THIS ISSUE TRACKER TO SUBMIT ISSUES WITH THE EXAMPLE VOTING APP **
2+
3+
* If you have a bug working with Docker itself, not related to these labs, please file the bug on the [Docker repo](https://github.com/docker/docker) *
4+
* If you would like general support figuring out how to do something with Docker, please use the Docker Slack channel. If you're not on that channel, sign up for the [Docker Community](http://dockr.ly/MeetUp) and you'll get an invite. *
5+
* Or go to the [Docker Forums](https://forums.docker.com/) *
6+
7+
Please provide the following information so we can assess the issue you're having
8+
9+
**Description**
10+
11+
<!--
12+
Briefly describe the problem you are having in a few paragraphs.
13+
-->
14+
15+
**Steps to reproduce the issue, if relevant:**
16+
1.
17+
2.
18+
3.
19+
20+
**Describe the results you received:**
21+
22+
23+
**Describe the results you expected:**
24+
25+
26+
**Additional information you deem important (e.g. issue happens only occasionally):**
27+
28+
**Output of `docker version`:**
29+
30+
```
31+
(paste your output here)
32+
```
33+
34+
**Output of `docker info`:**
35+
36+
```
37+
(paste your output here)
38+
```
39+
40+
**Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):**

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "monthly"
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Build Result
2+
# template source: https://github.com/dockersamples/.github/blob/main/templates/call-docker-build.yaml
3+
4+
on:
5+
# we want pull requests so we can build(test) but not push to image registry
6+
push:
7+
branches:
8+
- 'main'
9+
# only build when important files change
10+
paths:
11+
- 'result/**'
12+
- '.github/workflows/call-docker-build-result.yaml'
13+
pull_request:
14+
branches:
15+
- 'main'
16+
# only build when important files change
17+
paths:
18+
- 'result/**'
19+
- '.github/workflows/call-docker-build-result.yaml'
20+
21+
jobs:
22+
call-docker-build:
23+
24+
name: Result Call Docker Build
25+
26+
uses: dockersamples/.github/.github/workflows/reusable-docker-build.yaml@main
27+
28+
permissions:
29+
contents: read
30+
packages: write # needed to push docker image to ghcr.io
31+
pull-requests: write # needed to create and update comments in PRs
32+
33+
secrets:
34+
35+
# Only needed if with:dockerhub-enable is true below
36+
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
37+
38+
# Only needed if with:dockerhub-enable is true below
39+
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
40+
41+
with:
42+
43+
### REQUIRED
44+
### ENABLE ONE OR BOTH REGISTRIES
45+
### tell docker where to push.
46+
### NOTE if Docker Hub is set to true, you must set secrets above and also add account/repo/tags below
47+
dockerhub-enable: true
48+
ghcr-enable: true
49+
50+
### REQUIRED
51+
### A list of the account/repo names for docker build. List should match what's enabled above
52+
### defaults to:
53+
image-names: |
54+
ghcr.io/dockersamples/example-voting-app-result
55+
dockersamples/examplevotingapp_result
56+
57+
### REQUIRED set rules for tagging images, based on special action syntax:
58+
### https://github.com/docker/metadata-action#tags-input
59+
### defaults to:
60+
tag-rules: |
61+
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
62+
type=raw,value=before,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
63+
type=raw,value=after,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
64+
type=ref,event=pr
65+
66+
### path to where docker should copy files into image
67+
### defaults to root of repository (.)
68+
context: result
69+
70+
### Dockerfile alternate name. Default is Dockerfile (relative to context path)
71+
# file: Containerfile
72+
73+
### build stage to target, defaults to empty, which builds to last stage in Dockerfile
74+
# target:
75+
76+
### platforms to build for, defaults to linux/amd64
77+
### other options: linux/amd64,linux/arm64,linux/arm/v7
78+
platforms: linux/amd64,linux/arm64,linux/arm/v7
79+
80+
### Create a PR comment with image tags and labels
81+
### defaults to false
82+
# comment-enable: false
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Build Vote
2+
# template source: https://github.com/dockersamples/.github/blob/main/templates/call-docker-build.yaml
3+
4+
on:
5+
# we want pull requests so we can build(test) but not push to image registry
6+
push:
7+
branches:
8+
- 'main'
9+
# only build when important files change
10+
paths:
11+
- 'vote/**'
12+
- '.github/workflows/call-docker-build-vote.yaml'
13+
pull_request:
14+
branches:
15+
- 'main'
16+
# only build when important files change
17+
paths:
18+
- 'vote/**'
19+
- '.github/workflows/call-docker-build-vote.yaml'
20+
21+
jobs:
22+
call-docker-build:
23+
24+
name: Vote Call Docker Build
25+
26+
uses: dockersamples/.github/.github/workflows/reusable-docker-build.yaml@main
27+
28+
permissions:
29+
contents: read
30+
packages: write # needed to push docker image to ghcr.io
31+
pull-requests: write # needed to create and update comments in PRs
32+
33+
secrets:
34+
35+
# Only needed if with:dockerhub-enable is true below
36+
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
37+
38+
# Only needed if with:dockerhub-enable is true below
39+
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
40+
41+
with:
42+
43+
### REQUIRED
44+
### ENABLE ONE OR BOTH REGISTRIES
45+
### tell docker where to push.
46+
### NOTE if Docker Hub is set to true, you must set secrets above and also add account/repo/tags below
47+
dockerhub-enable: true
48+
ghcr-enable: true
49+
50+
### REQUIRED
51+
### A list of the account/repo names for docker build. List should match what's enabled above
52+
### defaults to:
53+
image-names: |
54+
ghcr.io/dockersamples/example-voting-app-vote
55+
dockersamples/examplevotingapp_vote
56+
57+
### REQUIRED set rules for tagging images, based on special action syntax:
58+
### https://github.com/docker/metadata-action#tags-input
59+
### defaults to:
60+
tag-rules: |
61+
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
62+
type=raw,value=before,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
63+
type=raw,value=after,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
64+
type=ref,event=pr
65+
66+
### path to where docker should copy files into image
67+
### defaults to root of repository (.)
68+
context: vote
69+
70+
### Dockerfile alternate name. Default is Dockerfile (relative to context path)
71+
# file: Containerfile
72+
73+
### build stage to target, defaults to empty, which builds to last stage in Dockerfile
74+
# target:
75+
76+
### platforms to build for, defaults to linux/amd64
77+
### other options: linux/amd64,linux/arm64,linux/arm/v7
78+
platforms: linux/amd64,linux/arm64,linux/arm/v7
79+
80+
### Create a PR comment with image tags and labels
81+
### defaults to false
82+
# comment-enable: false
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Build Worker
2+
# template source: https://github.com/dockersamples/.github/blob/main/templates/call-docker-build.yaml
3+
4+
on:
5+
# we want pull requests so we can build(test) but not push to image registry
6+
push:
7+
branches:
8+
- 'main'
9+
# only build when important files change
10+
paths:
11+
- 'worker/**'
12+
- '.github/workflows/call-docker-build-worker.yaml'
13+
pull_request:
14+
branches:
15+
- 'main'
16+
# only build when important files change
17+
paths:
18+
- 'worker/**'
19+
- '.github/workflows/call-docker-build-worker.yaml'
20+
21+
jobs:
22+
call-docker-build:
23+
24+
name: Worker Call Docker Build
25+
26+
uses: dockersamples/.github/.github/workflows/reusable-docker-build.yaml@main
27+
28+
permissions:
29+
contents: read
30+
packages: write # needed to push docker image to ghcr.io
31+
pull-requests: write # needed to create and update comments in PRs
32+
33+
secrets:
34+
35+
# Only needed if with:dockerhub-enable is true below
36+
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
37+
38+
# Only needed if with:dockerhub-enable is true below
39+
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
40+
41+
with:
42+
43+
### REQUIRED
44+
### ENABLE ONE OR BOTH REGISTRIES
45+
### tell docker where to push.
46+
### NOTE if Docker Hub is set to true, you must set secrets above and also add account/repo/tags below
47+
dockerhub-enable: true
48+
ghcr-enable: true
49+
50+
### REQUIRED
51+
### A list of the account/repo names for docker build. List should match what's enabled above
52+
### defaults to:
53+
image-names: |
54+
ghcr.io/dockersamples/example-voting-app-worker
55+
dockersamples/examplevotingapp_worker
56+
57+
### REQUIRED set rules for tagging images, based on special action syntax:
58+
### https://github.com/docker/metadata-action#tags-input
59+
### defaults to:
60+
tag-rules: |
61+
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }}
62+
type=ref,event=pr
63+
64+
### path to where docker should copy files into image
65+
### defaults to root of repository (.)
66+
context: worker
67+
68+
### Dockerfile alternate name. Default is Dockerfile (relative to context path)
69+
# file: Containerfile
70+
71+
### build stage to target, defaults to empty, which builds to last stage in Dockerfile
72+
# target:
73+
74+
### platforms to build for, defaults to linux/amd64
75+
### other options: linux/amd64,linux/arm64,linux/arm/v7
76+
# FIXME worker arm/v7 support doesn't build in .net core 3.1 with QEMU
77+
# a fix would likely run the .net build on amd64 but with a target of arm/v7
78+
platforms: linux/amd64,linux/arm64,linux/arm/v7
79+
80+
### Create a PR comment with image tags and labels
81+
### defaults to false
82+
# comment-enable: false

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.pyc
2+
project.lock.json
3+
bin/
4+
obj/
5+
.vs/
6+
node_modules/

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Note: Results debugger",
9+
"type": "node",
10+
"request": "attach",
11+
"port": 9229,
12+
"address": "localhost",
13+
"skipFiles": [
14+
"<node_internals>/**"
15+
],
16+
"remoteRoot": "/app",
17+
"localRoot": "${workspaceFolder}/result"
18+
}
19+
]
20+
}

0 commit comments

Comments
 (0)