Skip to content

Commit

Permalink
add app specific skaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Jun 29, 2020
1 parent f9ec055 commit 94fcf04
Show file tree
Hide file tree
Showing 6 changed files with 298 additions and 0 deletions.
47 changes: 47 additions & 0 deletions skaffold-client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v1beta2
kind: Config
build:
artifacts:
- image: client
context: client
docker:
cacheFrom:
- golang:latest
- alpine:latest
tagPolicy:
gitCommit: {}
deploy:
kubectl:
flags:
global: ["--namespace=apps"]
manifests:
- namespace.yaml
- client/client.yaml
# "gcb" profile allows building and pushing the images
# on Google Container Builder without requiring docker
# installed on the developer machine. However, note that
# since GCB does not cache the builds, each build will
# start from scratch and therefore take a long time.
#
# This is not used by default. To use it, run:
# skaffold run -p gcb
profiles:
- name: gcb
build:
googleCloudBuild:
diskSizeGb: 10
machineType: N1_HIGHCPU_8
47 changes: 47 additions & 0 deletions skaffold-customers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v1beta2
kind: Config
build:
artifacts:
- image: customers
context: customers
docker:
cacheFrom:
- golang:latest
- alpine:latest
tagPolicy:
gitCommit: {}
deploy:
kubectl:
flags:
global: ["--namespace=apps"]
manifests:
- namespace.yaml
- customers/customers.yaml
# "gcb" profile allows building and pushing the images
# on Google Container Builder without requiring docker
# installed on the developer machine. However, note that
# since GCB does not cache the builds, each build will
# start from scratch and therefore take a long time.
#
# This is not used by default. To use it, run:
# skaffold run -p gcb
profiles:
- name: gcb
build:
googleCloudBuild:
diskSizeGb: 100
machineType: N1_HIGHCPU_8
47 changes: 47 additions & 0 deletions skaffold-inventory.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v1beta2
kind: Config
build:
artifacts:
- image: inventory
context: inventory
docker:
cacheFrom:
- golang:latest
- alpine:latest
tagPolicy:
gitCommit: {}
deploy:
kubectl:
flags:
global: ["--namespace=apps"]
manifests:
- namespace.yaml
- inventory/inventory.yaml
# "gcb" profile allows building and pushing the images
# on Google Container Builder without requiring docker
# installed on the developer machine. However, note that
# since GCB does not cache the builds, each build will
# start from scratch and therefore take a long time.
#
# This is not used by default. To use it, run:
# skaffold run -p gcb
profiles:
- name: gcb
build:
googleCloudBuild:
diskSizeGb: 10
machineType: N1_HIGHCPU_8
54 changes: 54 additions & 0 deletions skaffold-orders.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v1beta2
kind: Config
build:
artifacts:
- image: orders
context: orders
docker:
cacheFrom:
- golang:latest
- alpine:latest
- image: orders-gql
context: orders-gql
docker:
cacheFrom:
- golang:latest
- alpine:latest
tagPolicy:
gitCommit: {}
deploy:
kubectl:
flags:
global: ["--namespace=apps"]
manifests:
- namespace.yaml
- orders/orders.yaml
- orders-gql/orders-gql.yaml
# "gcb" profile allows building and pushing the images
# on Google Container Builder without requiring docker
# installed on the developer machine. However, note that
# since GCB does not cache the builds, each build will
# start from scratch and therefore take a long time.
#
# This is not used by default. To use it, run:
# skaffold run -p gcb
profiles:
- name: gcb
build:
googleCloudBuild:
diskSizeGb: 10
machineType: N1_HIGHCPU_8
56 changes: 56 additions & 0 deletions skaffold-tracking.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v1beta2
kind: Config
build:
artifacts:
- image: tracking
context: tracking
docker:
cacheFrom:
- golang:latest
- alpine:latest
dockerfile: ./Dockerfile.server
- image: tracking-client
context: tracking
docker:
cacheFrom:
- golang:latest
- alpine:latest
dockerfile: ./Dockerfile.client
tagPolicy:
gitCommit: {}
deploy:
kubectl:
flags:
global: ["--namespace=apps"]
manifests:
- namespace.yaml
- tracking/tracking.yaml
- tracking/tracking-client.yaml
# "gcb" profile allows building and pushing the images
# on Google Container Builder without requiring docker
# installed on the developer machine. However, note that
# since GCB does not cache the builds, each build will
# start from scratch and therefore take a long time.
#
# This is not used by default. To use it, run:
# skaffold run -p gcb
profiles:
- name: gcb
build:
googleCloudBuild:
diskSizeGb: 10
machineType: N1_HIGHCPU_8
47 changes: 47 additions & 0 deletions skaffold-websockets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v1beta2
kind: Config
build:
artifacts:
- image: websockets
context: websockets/server
docker:
cacheFrom:
- golang:latest
- alpine:latest
tagPolicy:
gitCommit: {}
deploy:
kubectl:
flags:
global: ["--namespace=apps"]
manifests:
- namespace.yaml
- websockets/server/websockets.yaml
# "gcb" profile allows building and pushing the images
# on Google Container Builder without requiring docker
# installed on the developer machine. However, note that
# since GCB does not cache the builds, each build will
# start from scratch and therefore take a long time.
#
# This is not used by default. To use it, run:
# skaffold run -p gcb
profiles:
- name: gcb
build:
googleCloudBuild:
diskSizeGb: 10
machineType: N1_HIGHCPU_8

0 comments on commit 94fcf04

Please sign in to comment.