-
Notifications
You must be signed in to change notification settings - Fork 239
/
Makefile
27 lines (19 loc) · 1010 Bytes
/
Makefile
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
BINDIR := $(CURDIR)/bin
VERSION ?= dev
SENTRY_DSN ?=
start-dev: install setup-env-files
bash ./scripts/dev-environment/StartDevServer.sh
run-migrate-dev: install setup-env-files
bash ./scripts/dev-environment/RunMigrateDev.sh
install:
bash ./scripts/dev-environment/SetupEnvironment.sh
setup-env-files:
bash ./scripts/dev-environment/CreateDefaultEnvFiles.sh
build-cli:
go build -ldflags="-w -s -X 'github.com/porter-dev/porter/cli/cmd/config.Version=${VERSION}' -X 'github.com/porter-dev/porter/cli/cmd/errors.SentryDSN=${SENTRY_DSN}'" -a -tags cli -o $(BINDIR)/porter ./cli
build-cli-dev:
go build -ldflags="-X 'github.com/porter-dev/porter/cli/cmd/config.Version=${VERSION}' -X 'github.com/porter-dev/porter/cli/cmd/errors.SentryDSN=${SENTRY_DSN}'" -tags cli -o $(BINDIR)/porter ./cli
start-provisioner-dev: install setup-env-files
bash ./scripts/dev-environment/StartProvisionerServer.sh
start-worker-dev: install setup-env-files
bash ./scripts/dev-environment/StartWorkerServer.sh