-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup1.sh
More file actions
executable file
·23 lines (23 loc) · 797 Bytes
/
setup1.sh
File metadata and controls
executable file
·23 lines (23 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
cd /root
git clone https://github.com/anandpavithran/operator-yaml
wget https://go.dev/dl/go1.17.6.linux-amd64.tar.gz
tar -C /usr/local -xzf /root/go1.17.6.linux-amd64.tar.gz
rm -rf /root/go*
echo "PATH=\$PATH:/usr/local/go/bin" >> /root/.bash_profile
echo "GOPATH=/usr/local/go" >> /root/.bash_profile
source /root/.bash_profile
cd /root
mkdir -p $GOPATH/src/github.com/operator-framework
cd $GOPATH/src/github.com/operator-framework
git clone https://github.com/operator-framework/operator-sdk
cd operator-sdk
git checkout tags/v0.19.4 -b v0.19.4
dnf install make -y
make tidy
make install
cd /root
operator-sdk new web --kind=Web --api-version=web.operator.io/v1 --type=ansible
cd /root/web
cp /root/operator-yaml/main.yml /root/web/roles/web/tasks/main.yml
kill -9 $(pgrep bash)