-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from JarvusInnovations/develop
Release: hologit v0.34.4
- Loading branch information
Showing
24 changed files
with
338 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Docs Site | ||
|
||
on: | ||
push: | ||
branches: [ develop ] | ||
|
||
jobs: | ||
docs-projection: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Projecting docs-site holobranch onto gh-pages' | ||
uses: JarvusInnovations/hologit@actions/projector/v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
HAB_LICENSE: accept | ||
with: | ||
ref: develop | ||
holobranch: docs-site | ||
commit-to: gh-pages |
This file contains 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[hololens] | ||
package = "holo/lens-mkdocs" | ||
requirements = [ | ||
"mkdocs-material", | ||
"mkdocs-awesome-pages-plugin", | ||
"fontawesome_markdown", | ||
"mdx_truly_sane_lists" | ||
] | ||
|
||
[hololens.output] | ||
merge = "replace" |
This file contains 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[holomapping] | ||
files = [ | ||
"docs/", | ||
"mkdocs.yml" | ||
] |
This file contains 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,4 +1,36 @@ | ||
hab pkg install -b \ | ||
#!/bin/bash | ||
|
||
|
||
# install dependencies | ||
echo | ||
echo "--> Installing project development dependencies..." | ||
hab pkg install \ | ||
jarvus/mkdocs-studio \ | ||
jarvus/studio-toolkit \ | ||
core/node \ | ||
core/git | ||
# jarvus/watchman | ||
|
||
hab pkg binlink core/node core/git | ||
hab pkg binlink core/coreutils env --dest /usr/bin | ||
|
||
|
||
# load studio toolkit | ||
source "$(hab pkg path jarvus/studio-toolkit)/studio.sh" | ||
|
||
|
||
# load MkDocs studio | ||
export DOCS_HOLOBRANCH="docs-site" | ||
source "$(hab pkg path jarvus/mkdocs-studio)/studio.sh" | ||
|
||
|
||
|
||
## final init and output | ||
studio-help | ||
|
||
echo | ||
echo "--> Developer studio ready!" | ||
echo " Run `docs-watch` to start+watch MkDocs site in foreground, and access at http://localhost:9088" | ||
|
||
|
||
# final blank line | ||
echo |
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
arrange: | ||
- README.md | ||
- grand-tour | ||
- workflows |
This file contains 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
docs.holo.sh |
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
arrange: | ||
- README.md | ||
- installation.md | ||
- repository-setup.md | ||
- holobranches.md | ||
- holosources.md | ||
- hololenses.md | ||
- ... |
This file contains 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Introduction | ||
|
||
This section offers a deep-dive into how each component works. |
This file contains 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Holobranches | ||
|
||
Holobranches are named virtual sub-branches versioned within any Git branch. Given the name of a holobranch and a commit for a branch it's defined in, Hologit can compute the holobranch's content and outputs a Git tree. |
This file contains 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Hololenses | ||
|
||
Hololenses are executable tools bound to transform some portion of a holobranch during its projectios. |
This file contains 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Holoreactors | ||
|
||
Holoreactors are running services spawned from the content within a holobranch and automatically bound to its changes. |
This file contains 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Holosources | ||
|
||
Holosources are named remote Git branches that content can be pulled from during projection. They can refer to any ref or hash in a remote repository, and optionally a holobranch within that. | ||
|
||
## Overriding via environment | ||
|
||
Holosources can be overridden via `HOLO_SOURCE_*` environment variables. | ||
|
||
### Variable names | ||
|
||
For example, a source named `parent-blueprint` could be overridden via `HOLO_SOURCE_PARENT_BLUEPRINT`. The transformation from source name to environment variable name is applied as follows: | ||
|
||
- Hyphens (`-`) replaced with underscores (`_`) | ||
- All letters capitalized | ||
|
||
### Change URL | ||
|
||
You can change just the URL, preserving declared ref+holobranch: | ||
|
||
```bash | ||
HOLO_SOURCE_PARENT_BLUEPRINT="https://github.com/myorg/myfork" | ||
``` | ||
|
||
Local paths work too: | ||
|
||
```bash | ||
HOLO_SOURCE_PARENT_BLUEPRINT="/src/myfork" | ||
``` | ||
|
||
### Change ref | ||
|
||
You can change just the ref, preserving declared url+holobranch: | ||
|
||
```bash | ||
HOLO_SOURCE_PARENT_BLUEPRINT="#refs/heads/develop" | ||
``` | ||
|
||
### Change holobranch | ||
|
||
You can change just the holobranch, preserving declared url+ref: | ||
|
||
```bash | ||
HOLO_SOURCE_PARENT_BLUEPRINT="=>helm-chart" | ||
``` | ||
|
||
### Change everything | ||
|
||
You can reconfigure an entire source: | ||
|
||
```bash | ||
HOLO_SOURCE_PARENT_BLUEPRINT="/src/myfork#refs/heads/develop=>helm-chart" | ||
``` | ||
|
||
Or clear out a declared holobranch component to use a native ref directly: | ||
|
||
```bash | ||
HOLO_SOURCE_PARENT_BLUEPRINT="/src/myfork#refs/heads/develop=>" | ||
``` |
This file contains 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Repository setup | ||
|
||
To enable using hologit on a repository, create `.holo/config.toml` and configure `holospace.name` within it. | ||
|
||
You can create the file yourself, or use the provided command: | ||
|
||
```bash | ||
git holo init | ||
``` | ||
|
||
The name declared here is the [holosource](./holosources.md) name used to refer to the host repository. |
Empty file.
This file contains 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Introduction | ||
|
||
This section offers end-to-end examples of workflows you can implement. |
This file contains 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
site_name: Hologit Documentation | ||
site_description: Hologit lets you declaratively define virtual sub-branches within any Git branch | ||
site_author: Jarvus Innovations | ||
copyright: 2020 Jarvus Innovations | ||
repo_url: https://github.com/JarvusInnovations/hologit | ||
edit_uri: edit/develop/docs | ||
|
||
theme: | ||
name: material | ||
features: | ||
- navigation.tabs | ||
palette: | ||
primary: "orange" | ||
accent: "deep purple" | ||
|
||
plugins: | ||
- search | ||
- awesome-pages | ||
|
||
extra_javascript: | ||
- https://unpkg.com/mermaid@8.5.0/dist/mermaid.min.js | ||
|
||
extra_css: | ||
- https://use.fontawesome.com/releases/v5.13.0/css/all.css | ||
|
||
markdown_extensions: | ||
- admonition | ||
- codehilite: | ||
linenums: true | ||
- pymdownx.inlinehilite | ||
- pymdownx.tasklist: | ||
custom_checkbox: true | ||
- pymdownx.tabbed | ||
- pymdownx.superfences: | ||
custom_fences: | ||
- name: mermaid | ||
class: mermaid | ||
format: !!python/name:pymdownx.superfences.fence_div_format | ||
- pymdownx.smartsymbols | ||
- meta | ||
- toc: | ||
# insert a blank space before the character | ||
permalink: " ¶" | ||
- smarty | ||
- fontawesome_markdown | ||
- mdx_truly_sane_lists |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/bin/bash | ||
|
||
# script/-studio-bootstrap: Check dependencies for Chef Habitat studio. | ||
|
||
set -e | ||
cd "$(dirname "$0")/.." | ||
|
||
|
||
echo | ||
echo "==> studio-bootstrap: verifying Docker…" | ||
|
||
if ! [ -x "$(command -v docker)" ]; then | ||
echo "Please install Docker Engine: https://docs.docker.com/engine/install/" | ||
exit 1 | ||
fi | ||
|
||
if ! docker info > /dev/null 2>&1; then | ||
echo "Docker Engine is not running, or your user does not have access to connect." | ||
echo "Try starting Docker Engine, and adding your user to the docker group: sudo gpasswd -a $USER docker" | ||
exit 1 | ||
fi | ||
|
||
|
||
echo | ||
echo "==> studio-bootstrap: verifying Chef Habitat…" | ||
|
||
if ! [ -x "$(command -v hab)" ]; then | ||
echo "Please install Chef Habitat: https://www.habitat.sh/docs/install-habitat/" | ||
exit 1 | ||
fi | ||
|
||
hab_version="$(hab --version)" | ||
if ! [[ $hab_version =~ ^hab[[:space:]][0-9]+\.[0-9]+\.[0-9]+/[0-9]+$ ]]; then | ||
echo | ||
echo " Could not parse hab version: ${hab_version}" | ||
echo " Please install hab 1.6+" | ||
exit 1 | ||
fi | ||
|
||
hab_version="$(echo "${hab_version}" | awk '{print $2}' | awk -F'/' '{print $1}')" | ||
echo " Found hab version: ${hab_version}" | ||
|
||
|
||
# check that node >= MAJOR.MINOR | ||
hab_min_major="1" | ||
hab_min_minor="6" | ||
|
||
IFS='.' read -ra hab_version_split <<< "${hab_version#v}" | ||
if [ "${hab_version_split[0]}" -lt "${hab_min_major}" ] || [[ "${hab_version_split[0]}" -le "${hab_min_major}" && "${hab_version_split[1]}" -lt "${hab_min_minor}" ]]; then | ||
echo | ||
echo " Please install hab >= ${hab_min_major}.${hab_min_minor}.x" | ||
exit 1 | ||
fi | ||
|
||
if ! [ -f ~/.hab/etc/cli.toml ] || ! grep -q '^origin =' ~/.hab/etc/cli.toml; then | ||
echo "Please re-run \`hab setup\` and choose to set a default origin, it can be anything" | ||
exit 1 | ||
fi | ||
|
||
_origin=$(awk -F'"' '/^origin = /{print $2}' ~/.hab/etc/cli.toml) | ||
|
||
|
||
echo | ||
echo "==> studio-bootstrap: verifying origin '${_origin}'…" | ||
|
||
if ! hab origin key export --type secret "${_origin}" > /dev/null; then | ||
echo "No key has been generated for origin ${_origin}, run: hab origin key generate ${_origin}" | ||
exit 1 | ||
fi | ||
|
||
|
||
echo | ||
echo "==> studio-bootstrap: all set 👍" | ||
echo |
Oops, something went wrong.