-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Containerize process for local development setup (#8220)
* Containerize process for local development setup Signed-off-by: hainenber <[email protected]> * Revert list numbering to "1" for Jekyll convention Signed-off-by: hainenber <[email protected]> * Update CONTRIBUTING.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Đỗ Trọng Hải <[email protected]> * Update CONTRIBUTING.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Đỗ Trọng Hải <[email protected]> * Update CONTRIBUTING.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Đỗ Trọng Hải <[email protected]> --------- Signed-off-by: hainenber <[email protected]> Signed-off-by: Đỗ Trọng Hải <[email protected]> Co-authored-by: kolchfa-aws <[email protected]>
- Loading branch information
1 parent
a6a3396
commit 6c5c04c
Showing
4 changed files
with
32 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ Gemfile.lock | |
*.iml | ||
.jekyll-cache | ||
.project | ||
vendor/bundle |
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
JEKYLL_LINK_CHECKER=internal bundle exec jekyll serve --host localhost --port 4000 --incremental --livereload --open-url --trace | ||
host="localhost" | ||
|
||
if [[ "$DOCKER_BUILD" == "true" ]]; then | ||
host="0.0.0.0" | ||
fi | ||
|
||
JEKYLL_LINK_CHECKER=internal bundle exec jekyll serve --host ${host} --port 4000 --incremental --livereload --open-url --trace |
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,14 @@ | ||
version: "3" | ||
|
||
services: | ||
doc_builder: | ||
image: ruby:3.2.4 | ||
volumes: | ||
- .:/app | ||
working_dir: /app | ||
ports: | ||
- "4000:4000" | ||
command: bash -c "bundler install && bash build.sh" | ||
environment: | ||
BUNDLE_PATH: /app/vendor/bundle # Avoid installing gems globally. | ||
DOCKER_BUILD: true # Signify build.sh to bind to 0.0.0.0 for effective doc access from host. |