-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:airavata-courses/garuda into release
- Loading branch information
Showing
311 changed files
with
79,647 additions
and
464 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,33 @@ | ||
name: Garuda_CD | ||
on: | ||
push: | ||
branches: [main, release] | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: executing remote ssh commands using key file | ||
uses: appleboy/ssh-action@master | ||
with: | ||
# host for jetstream server | ||
host: 149.165.154.67 | ||
# username for jetstream server | ||
username: exouser | ||
# jetstream userkey, added to server and github secrets | ||
key: ${{ secrets.JETSTREAM_PVT_KEY }} | ||
port: 22 | ||
script: | | ||
cd $HOME | ||
rm -rf garuda/ | ||
git clone https://github.com/airavata-courses/garuda.git | ||
sh env_replacer.sh | ||
echo "Building docker images" | ||
cd garuda/ | ||
docker-compose build | ||
cd kubernetes/ | ||
echo "Pushing created images into DockerHub" | ||
sh docker_push.sh | ||
echo "Deploy resources into kubernetes cluster" | ||
sh kubernetes_init.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
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,18 @@ | ||
# Run the following lines to install ansible | ||
python3 -m pip install --user ansible | ||
|
||
# Create hosts file and paste the following lines in it | ||
[control_plane] | ||
control1 ansible_host=149.165.153.132 ansible_user=garuda | ||
|
||
[workers] | ||
worker1 ansible_host=149.165.153.213 ansible_user=garuda | ||
worker2 ansible_host=149.165.155.35 ansible_user=garuda | ||
|
||
[all:vars] | ||
ansible_python_interpreter=/usr/bin/python3 | ||
|
||
|
||
|
||
# move the hosts file to the ansible directory | ||
sudo mv hosts /etc/ansible/hosts |
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 @@ | ||
__pycache__/* |
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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
FROM node:14-alpine | ||
|
||
|
||
WORKDIR /db_middleware | ||
|
||
|
||
COPY package.json . | ||
RUN npm install | ||
COPY . . | ||
|
Oops, something went wrong.