Skip to content

Commit e685cd2

Browse files
committed
Updates on docs
1 parent 755e50f commit e685cd2

4 files changed

Lines changed: 40 additions & 23 deletions

File tree

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ skaffold-start: _ensure-skaffold-tag
472472
$(AT)echo
473473
$(AT)echo "$(COLOR_RED)🌟 Running skaffold-start command.$(COLOR_NORMAL)"
474474
$(AT)echo
475+
## kubectl config use-context docker-desktop
475476
$(AT)$(SKAFFOLD_CMD) dev --filename='skaffold.$(SKAFFOLD_TAG).yaml' --timestamps=false --update-check=true --interactive=true --no-prune=false --cache-artifacts=true
476477
$(AT)echo
477478
$(AT)echo "$(COLOR_RED)Skaffold start command finished.$(COLOR_NORMAL)"
@@ -483,6 +484,7 @@ skaffold-stop: _ensure-skaffold-tag
483484
$(AT)echo
484485
$(AT)echo "$(COLOR_RED)🌟 Running skaffold-stop command.$(COLOR_NORMAL)"
485486
$(AT)echo
487+
## kubectl config use-context docker-desktop
486488
$(AT)$(SKAFFOLD_CMD) delete --filename='skaffold.$(SKAFFOLD_TAG).yaml'
487489
$(AT)echo
488490
$(AT)echo "$(COLOR_RED)Skaffold stop command finished.$(COLOR_NORMAL)"

makefiles/defaults.mk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ ifeq ($(filter --no-print-directory,$(MAKEFLAGS)),)
2727
CT_MAKEFLAGS += --no-print-directory
2828
endif
2929

30+
# Do not print verbose output
31+
ifeq ($(filter --silent,$(MAKEFLAGS)),)
32+
CT_MAKEFLAGS += --silent
33+
endif
34+
3035
# Use neither builtin rules, nor builtin variables
3136
# Note: dual test, because if -R and -r are given on the command line
3237
# (who knows?), MAKEFLAGS contains 'Rr' instead of '-Rr', while adding

skaffold.helm.yaml

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@ profiles:
1212
useBuildkit: true
1313
concurrency: 0
1414
tagPolicy:
15-
sha256: {}
15+
sha256: { }
1616
artifacts:
1717
- image: styled-java-patterns
1818
context: ./
19-
platforms: ['linux/amd64', 'linux/arm64']
19+
platforms: [ 'linux/amd64', 'linux/arm64' ]
2020
hooks:
2121
before:
22-
- command: ['sh', '-c', './scripts/hook.sh']
23-
os: [darwin, linux]
22+
- command: [ 'sh', '-c', './scripts/hook.sh' ]
23+
os: [ darwin, linux ]
2424
dir: .
25-
- command: ['cmd.exe', '/C', 'scripts/hook.bat']
26-
os: [windows]
25+
- command: [ 'cmd.exe', '/C', 'scripts/hook.bat' ]
26+
os: [ windows ]
2727
dir: .
2828
after:
29-
- command: ['sh', '-c', 'docker images $SKAFFOLD_IMAGE --digests']
30-
os: [darwin, linux]
29+
- command: [ 'sh', '-c', 'docker images $SKAFFOLD_IMAGE --digests' ]
30+
os: [ darwin, linux ]
3131
- command:
32-
['cmd.exe', '/C', 'docker images %SKAFFOLD_IMAGE% --digests']
33-
os: [windows]
32+
[ 'cmd.exe', '/C', 'docker images %SKAFFOLD_IMAGE% --digests' ]
33+
os: [ windows ]
3434
sync:
3535
manual:
3636
- src: 'docs/*'
@@ -40,24 +40,24 @@ profiles:
4040
- host:
4141
command:
4242
[
43-
'sh',
44-
'-c',
45-
'echo file changes detected:
43+
'sh',
44+
'-c',
45+
'echo file changes detected:
4646
$SKAFFOLD_FILES_ADDED_OR_MODIFIED',
4747
]
48-
os: [darwin, linux]
48+
os: [ darwin, linux ]
4949
- host:
5050
command:
5151
[
52-
'cmd.exe',
53-
'/C',
54-
'echo file changes detected:
52+
'cmd.exe',
53+
'/C',
54+
'echo file changes detected:
5555
%SKAFFOLD_FILES_ADDED_OR_MODIFIED%',
5656
]
57-
os: [windows]
57+
os: [ windows ]
5858
after:
5959
- container:
60-
command: ['sh', '-c', 'set -x; kill -HUP 1']
60+
command: [ 'sh', '-c', 'set -x; kill -HUP 1' ]
6161
docker:
6262
dockerfile: ./distribution/docker-images/dev.Dockerfile
6363
pullParent: false
@@ -68,21 +68,27 @@ profiles:
6868
helm:
6969
releases:
7070
- name: backend-java-patterns
71+
wait: true
7172
chartPath: charts
7273
namespace: webapp
7374
skipBuildDependencies: true
7475
useHelmSecrets: false
7576
recreatePods: false
7677
createNamespace: true
77-
# setValueTemplates:
78-
# image.repository: "{{.DOCKER_REGISTRY}}/gitcoinco/web"
79-
# image.tag: "{{.DIGEST_HEX}}"
78+
# values:
79+
# image: marketsummary
80+
# setValueTemplates:
81+
# image.repository: "{{.DOCKER_REGISTRY}}/gitcoinco/web"
82+
# image.tag: "{{.DIGEST_HEX}}"
83+
# setValues:
84+
# hpa.enabled: false
85+
# canary.enabled: false
8086
artifactOverrides:
8187
deployment:
8288
container:
8389
image: styled-java-patterns
8490
imageStrategy:
85-
helm: {}
91+
helm: { }
8692
portForward:
8793
- resourceType: service
8894
resourceName: styled-java-patterns

skaffold.kustomize.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,15 @@ portForward:
8585

8686
profiles:
8787
- name: prod
88+
activation:
89+
- kubeContext: docker-desktop
8890
deploy:
8991
kustomize:
9092
paths:
9193
- 'k8s/overlays/prod'
9294
- name: staging
95+
activation:
96+
- kubeContext: docker-desktop
9397
deploy:
9498
kustomize:
9599
paths:

0 commit comments

Comments
 (0)