-
Notifications
You must be signed in to change notification settings - Fork 5
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 #1 from jankleinert/v1.0
Updating environment to support the summit lab
- Loading branch information
Showing
10 changed files
with
90 additions
and
490 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,36 +6,43 @@ set -eo pipefail | |
|
||
# Download and unpack the operator binaries and config files. | ||
|
||
mkdir -p $HOME/odev/bin | ||
mkdir -p $HOME/odev/pkg | ||
mkdir -p $HOME/go/bin | ||
mkdir -p $HOME/go/pkg | ||
|
||
#mkdir -p $HOME/odev/src/github.com/crunchydata/postgres-operator | ||
#curl -sL -o /tmp/postgres-operator.tar.gz https://github.com/CrunchyData/postgres-operator/releases/download/3.5.2/postgres-operator.3.5.2.tar.gz | ||
#cd $HOME/odev/src/github.com/crunchydata/postgres-operator | ||
#tar xzf /tmp/postgres-operator.tar.gz | ||
#cp -a pgo $HOME/odev/bin/pgo | ||
#cp -a expenv $HOME/odev/bin/expenv | ||
#rm /tmp/postgres-operator.tar.gz | ||
echo "export GOPATH=$HOME/go" >> ~/.bash_profile | ||
echo "export GOBIN=$GOPATH/bin" >> ~/.bash_profile | ||
echo "export PATH=\$PATH:\$GOROOT/bin:\$GOPATH/bin" >> ~/.bash_profile | ||
. ~/.bash_profile | ||
|
||
# install "dep" | ||
curl -L https://github.com/golang/dep/releases/download/v0.5.1/dep-linux-amd64 -o $GOPATH/bin/dep | ||
chmod 755 $GOPATH/bin/dep | ||
|
||
# install operator-sdk | ||
curl -L https://github.com/operator-framework/operator-sdk/releases/download/v0.7.0/operator-sdk-v0.7.0-x86_64-linux-gnu -o $HOME/go/bin/operator-sdk | ||
chmod 755 $HOME/go/bin/operator-sdk | ||
|
||
# setup git profile | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "OperatorSDK Lab" | ||
|
||
# Setup user environment with environment variables and bash completion. | ||
#cat $HOME/.workshop/envvars >> /opt/app-root/etc/profile.d/postgres.sh | ||
cat $HOME/.workshop/envvars >> $HOME/.bash_profile | ||
|
||
#echo 'export CO_APISERVER_URL=https://`kubectl get service postgres-operator -o=jsonpath="{.spec.clusterIP}"`:8443' >> $HOME/.bash_profile | ||
# cat $HOME/.workshop/envvars >> /opt/app-root/etc/profile.d/operatorsdklab.sh | ||
# cat $HOME/.workshop/envvars >> $HOME/.bash_profile | ||
|
||
#cat examples/pgo-bash-completion >> $HOME/.bash_profile | ||
# echo 'export CO_APISERVER_URL=https://`kubectl get service postgres-operator -o=jsonpath="{.spec.clusterIP}"`:8443' >> $HOME/.bash_profile | ||
|
||
# Fix up our own environment for executing remainder of commands. | ||
|
||
. $HOME/.workshop/envvars | ||
# . $HOME/.workshop/envvars | ||
|
||
# TODO is the below relevant? | ||
# Generate SSHD and API keys. These will be shared for all sessions. | ||
|
||
. deploy/gen-sshd-keys.sh | ||
|
||
. deploy/gen-api-keys.sh | ||
# . deploy/gen-sshd-keys.sh | ||
# . deploy/gen-api-keys.sh | ||
|
||
mv $HOME/workshop /opt/app-root/workshop | ||
|
||
# Delete all non required files from the image | ||
rm -rf Dockerfile README.md LICENSE | ||
# Delete all non required files from the image | ||
rm -rf Dockerfile README.md LICENSE |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
83 changes: 0 additions & 83 deletions
83
.workshop/resources/customresourcedefinitions-operator.yaml
This file was deleted.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.