diff --git a/skaffold-client.yaml b/skaffold-client.yaml new file mode 100644 index 0000000..45188ff --- /dev/null +++ b/skaffold-client.yaml @@ -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 diff --git a/skaffold-customers.yaml b/skaffold-customers.yaml new file mode 100644 index 0000000..f7dbe13 --- /dev/null +++ b/skaffold-customers.yaml @@ -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 diff --git a/skaffold-inventory.yaml b/skaffold-inventory.yaml new file mode 100644 index 0000000..9ce7e42 --- /dev/null +++ b/skaffold-inventory.yaml @@ -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 diff --git a/skaffold-orders.yaml b/skaffold-orders.yaml new file mode 100644 index 0000000..dc96364 --- /dev/null +++ b/skaffold-orders.yaml @@ -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 diff --git a/skaffold-tracking.yaml b/skaffold-tracking.yaml new file mode 100644 index 0000000..fd75e5b --- /dev/null +++ b/skaffold-tracking.yaml @@ -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 diff --git a/skaffold-websockets.yaml b/skaffold-websockets.yaml new file mode 100644 index 0000000..99156d0 --- /dev/null +++ b/skaffold-websockets.yaml @@ -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