This repository has been archived by the owner on Feb 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Added Dockerfile with Bedrock prerequisites #1407
Open
carlessanagustin
wants to merge
6
commits into
microsoft:master
Choose a base branch
from
carlessanagustin:develop
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
264104f
created dockerfile with all installed prerequisites
dac7d43
relocated to tools folder
83b9461
fixed entrypoint OK
da908da
updated documentation with Dockerfile+Makefile OK
a8ae291
Merge branch 'feature/deployment-dockerfile' into develop
4ae20a6
added bedrock architecture diagram + updated readme with youtube link
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 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 |
---|---|---|
|
@@ -14,4 +14,6 @@ shunit2 | |
vendor | ||
flux | ||
kubediff | ||
locust | ||
locust | ||
|
||
secrets* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 @@ | ||
from: https://youtu.be/H5uq60pb2Hs | ||
|
||
|
||
# Azure Cluster Creation Guide | ||
|
||
## Summary | ||
|
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,20 @@ | ||
FROM debian:stretch | ||
LABEL createdBy="https://twitter.com/carlesanagustin" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove |
||
|
||
RUN apt-get update && \ | ||
apt-get install -y unzip git | ||
|
||
COPY ./prereqs/*.sh / | ||
|
||
RUN /setup_azure_cli.sh && \ | ||
/setup_bedrock_cli.sh && \ | ||
/setup_fabrikate.sh && \ | ||
/setup_helm.sh && \ | ||
/setup_kubectl.sh && \ | ||
/setup_terraform.sh | ||
|
||
RUN rm -f /*.sh && \ | ||
apt-get purge -y unzip && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENTRYPOINT ["/bin/bash"] |
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,16 @@ | ||
DOCKERFILE ?= . | ||
IMAGE_FROM ?= debian:stretch | ||
IMAGE ?= bedrock:latest | ||
MOUNT ?= $(shell pwd) | ||
|
||
d_source: | ||
docker run --rm -it -v $(MOUNT):/shared $(IMAGE_FROM) /bin/bash | ||
|
||
d_build: | ||
docker build -t $(IMAGE) $(DOCKERFILE) | ||
|
||
d_run: | ||
docker run --rm -it -v $(MOUNT):/shared $(IMAGE) | ||
|
||
d_rmi: | ||
docker rmi $(IMAGE) |
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 |
---|---|---|
|
@@ -9,12 +9,13 @@ require_root | |
function apt_install() { | ||
# prompt for confirmation | ||
echo "This script will install the latest version of the Azure CLI using the Microsoft APT repo." | ||
read -p "Do you wish to continue? " -n 1 -r | ||
echo | ||
if [[ ! $REPLY =~ ^[Yy]$ ]] | ||
then | ||
exit 1 | ||
fi | ||
# next 6 lines commented due to automation | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All these changes to the shell scripts make it difficult to re-use as they previously were. I suggest adding an override instead of commenting out these blocks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Setting an environment variable in the Dockerfile like |
||
#read -p "Do you wish to continue? " -n 1 -r | ||
#echo | ||
#if [[ ! $REPLY =~ ^[Yy]$ ]] | ||
#then | ||
# exit 1 | ||
#fi | ||
|
||
# install base set of tools | ||
apt-get update | ||
|
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
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
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.
Please remove