Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update makefile, add install-client target #223

Merged
merged 2 commits into from
May 3, 2024

Conversation

ph4r05
Copy link
Collaborator

@ph4r05 ph4r05 commented May 2, 2024

  • enables to build client only
  • when building with DEFAULT_HOST environment variable set, default hostname is compiled in to the binary (no config file needed)

Notes

  • tested on OSX and Win 2022 server. Build with make install-client finished fine, keymaster login successful.

Build with compiled-in default host

DEFAULT_HOST=https://my-keymaster.server.us make install-client

- enables to build client only
- when building with DEFAULT_HOST environment variable set, default hostname is compiled in to the binary (no config file needed)
Makefile Outdated

cmd/keymasterd/binData.go:
-go-bindata -fs -o cmd/keymasterd/binData.go -prefix cmd/keymasterd/data cmd/keymasterd/data/...

install-client: init-config-host cmd/keymasterd/binData.go
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we still need init-config-host? Seems like you can delete both the file, the make target and all references in the make target.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK will do it. I just didn't want to do a large change

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ph4r05 ph4r05 requested a review from cviecco May 3, 2024 06:57
@ph4r05 ph4r05 force-pushed the dklinec branch 3 times, most recently from 8c62140 to 238021d Compare May 3, 2024 18:54
@cviecco cviecco merged commit abadfae into Cloud-Foundations:master May 3, 2024
6 checks passed
@ph4r05 ph4r05 deleted the dklinec branch May 4, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants