-
Notifications
You must be signed in to change notification settings - Fork 1.5k
*.*: Rename tectonic-installer to openshift-installer #69
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
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,51 +1,51 @@ | ||
| # Bazel Under The Hood | ||
|
|
||
| The goal of this document is to detail the steps taken by Bazel when building the Tectonic Installer project so that users better understand the process. Ultimately, a user building the project could elect to build the project without Bazel, either by hand or otherwise. *Note*: building without Bazel is not recommended because it will lead to non-hermetic builds, which could lead to unpredictable results. We strongly recommend using the build instructions outlined in the README for consistent, reproducible builds. | ||
| The goal of this document is to detail the steps taken by Bazel when building the OpenShift Installer project so that users better understand the process. Ultimately, a user building the project could elect to build the project without Bazel, either by hand or otherwise. *Note*: building without Bazel is not recommended because it will lead to non-hermetic builds, which could lead to unpredictable results. We strongly recommend using the build instructions outlined in the README for consistent, reproducible builds. | ||
|
|
||
| This document covers the process of building the `tarball` Bazel target, which is the main target of the project. | ||
|
|
||
| ## Build Layout | ||
| As noted in [build.md](build.md), the goal of the build process is to produce an archive with the following file structure: | ||
|
|
||
| ``` | ||
| tectonic | ||
| openshift-installer | ||
| ├── config.tf | ||
| ├── examples | ||
| ├── modules | ||
| ├── steps | ||
| └── tectonic-installer | ||
| └── installer | ||
| ├── darwin | ||
| │ ├── tectonic | ||
| │ ├── openshift-install | ||
| │ └── terraform | ||
| └── linux | ||
| ├── tectonic | ||
| ├── openshift-install | ||
| └── terraform | ||
| ``` | ||
|
|
||
| ## Steps | ||
| ### Directories | ||
| Prepare the necessary output directories: | ||
|
|
||
| * `tectonic` | ||
| * `tectonic/examples` | ||
| * `tectonic/modules` | ||
| * `tectonic/steps` | ||
| * `tectonic/tectonic-installer` | ||
| * `tectonic/tectonic-installer/darwin` | ||
| * `tectonic/tectonic-installer/linux` | ||
| * `openshift-installer` | ||
| * `openshift-installer/examples` | ||
| * `openshift-installer/modules` | ||
| * `openshift-installer/steps` | ||
| * `openshift-installer/installer` | ||
| * `openshift-installer/installer/darwin` | ||
| * `openshift-installer/installer/linux` | ||
|
|
||
| ### Go Build | ||
| Build the Tectonic CLI Golang binary located in `tectonic/installer/cmd/tectonic` using `go build …` | ||
| The binary should be built for both Darwin and Linux and placed in the corresponding output directory, i.e. `tectonic/tectonic-installer/darwin`, or `tectonic/tectonic-installer/linux`. | ||
| Build the OpenShift Installer CLI Golang binary located in `openshift-installer/installer/cmd/openshift-install` using `go build …` | ||
| The binary should be built for both Darwin and Linux and placed in the corresponding output directory, i.e. `openshift-installer/installer/darwin`, or `openshift-installer/installer/linux`. | ||
|
|
||
| ### Terraform Binaries | ||
| Download binaries for Terraform for both Darwin and Linux and place them in the corresponding output directories. | ||
|
|
||
| ### Terraform Configuration | ||
| Copy all required Terraform configuration files from their source directories and place them in the correct output directory. Specifically, `config.tf`, `modules` and `steps` should be copied to the output directory at `tectonic/config.tf`, `tectonic/modules`, and `tectonic/steps`, respectively. | ||
| Copy all required Terraform configuration files from their source directories and place them in the correct output directory. Specifically, `config.tf`, `modules` and `steps` should be copied to the output directory at `openshift-installer/config.tf`, `openshift-installer/modules`, and `openshift-installer/steps`, respectively. | ||
|
|
||
| ### Configuration Examples | ||
| Copy the Tectonic Installer configuration examples from `examples` to the output directory at `tectonic/examples`. | ||
| Copy the OpenShift Installer configuration examples from `examples` to the output directory at `openshift-installer/examples`. | ||
|
|
||
| ### Archive | ||
| Lastly, archive and gzip the output directory using the `tar` utility to produce the final asset. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| #!/bin/bash -e | ||
|
|
||
| # Vars exported to the build info | ||
| echo TECTONIC_VERSION "${TECTONIC_VERSION}" | ||
| echo OPENSHIFT_VERSION "${OPENSHIFT_VERSION}" | ||
| echo BUILD_TIME "$(date -u '+%Y-%m-%dT%H:%M:%S%z')" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This directory is stale, see #53.