Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
compose/Makefile at v2 · Jille/compose · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Jille
compose
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
v2
Breadcrumbs
compose
/
Makefile
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
103 lines (80 loc) · 3.22 KB
v2
Breadcrumbs
compose
/
Makefile
Copy path
Top
File metadata and controls
Code
Blame
103 lines (80 loc) · 3.22 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#
Copyright 2020 Docker Compose CLI authors
#
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.
export
DOCKER_BUILDKIT
=1
UNAME_S
:=
$(
shell
uname -s)
ifeq
(
$(
UNAME_S
)
,Linux)
MOBY_DOCKER=/usr/bin/docker
endif
ifeq
(
$(
UNAME_S
)
,Darwin)
MOBY_DOCKER=/Applications/Docker.app/Contents/Resources/bin/docker
endif
BINARY_FOLDER
=
$(
shell
pwd)
/bin
GIT_TAG?
=
$(
shell
git describe --tags --match "v[0-9]
*
")
TEST_FLAGS?
=
E2E_TEST?
=
ifeq
(
$(
E2E_TEST
)
,)
else
TEST_FLAGS=-run $(E2E_TEST)
endif
all
: compose-plugin
.PHONY
: compose-plugin
compose-plugin
:
#
# Compile the compose cli-plugin
@docker build
.
--target compose-plugin
\
--platform
local
\
--build-arg BUILD_TAGS=e2e,kube
\
--build-arg GIT_TAG=
$(
GIT_TAG
)
\
--output ./bin
.PHONY
: e2e-compose
e2e-compose
:
#
# Run end to end local tests in plugin mode. Set E2E_TEST=TestName to run a single test
go
test
$(
TEST_FLAGS
)
-count=1 ./pkg/e2e
.PHONY
: e2e-compose-standalone
e2e-compose-standalone
:
#
# Run End to end local tests in standalone mode. Set E2E_TEST=TestName to run a single test
go
test
$(
TEST_FLAGS
)
-count=1 --tags=standalone ./pkg/e2e
.PHONY
: e2e
e2e
: e2e-compose e2e-compose-standalone
#
# Run end to end local tests in both modes. Set E2E_TEST=TestName to run a single test
.PHONY
: cross
cross
:
#
# Compile the CLI for linux, darwin and windows
@docker build
.
--target cross
\
--build-arg BUILD_TAGS
\
--build-arg GIT_TAG=
$(
GIT_TAG
)
\
--output ./bin
\
.PHONY
: test
test
:
#
# Run unit tests
@docker build --progress=plain
.
\
--build-arg BUILD_TAGS=kube
\
--build-arg GIT_TAG=
$(
GIT_TAG
)
\
--target
test
.PHONY
: cache-clear
cache-clear
:
#
# Clear the builder cache
@docker builder prune --force --filter type=exec.cachemount --filter=unused-for=24h
.PHONY
: lint
lint
:
#
# run linter(s)
@docker build
.
\
--build-arg BUILD_TAGS=kube,e2e
\
--build-arg GIT_TAG=
$(
GIT_TAG
)
\
--target lint
.PHONY
: check-dependencies
check-dependencies
:
#
# check dependency updates
go list -u -m -f
'
{{if not .Indirect}}{{if .Update}}{{.}}{{end}}{{end}}
'
all
.PHONY
: validate-headers
validate-headers
:
#
# Check license header for all files
@docker build
.
--target check-license-headers
.PHONY
: go-mod-tidy
go-mod-tidy
:
#
# Run go mod tidy in a container and output resulting go.mod and go.sum
@docker build
.
--target go-mod-tidy --output
.
.PHONY
: validate-go-mod
validate-go-mod
:
#
# Validate go.mod and go.sum are up-to-date
@docker build
.
--target check-go-mod
validate
: validate-go-mod validate-headers
#
# Validate sources
pre-commit
: validate check-dependencies lint compose-plugin test e2e-compose
help
:
#
# Show help
@echo Please specify a build target. The choices are:
@grep -E
'
^[0-9a-zA-Z_-]+:.*?## .*$$
'
$(
MAKEFILE_LIST
)
|
awk
'
BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}
'
You can’t perform that action at this time.