-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add playbooks for deploying the UI stack
Signed-off-by: Anil Vishnoi <[email protected]>
- Loading branch information
1 parent
6d8745c
commit 7e047df
Showing
7 changed files
with
145 additions
and
2 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
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,15 @@ | ||
# Description: This file is used to deploy the UI stack on the bot node. | ||
# It assumes that the gobot and redis is already deployed on the bot node. | ||
- name: Deploy UI stack on bot node | ||
hosts: botNode | ||
roles: | ||
- role: geerlingguy.docker | ||
become: true | ||
- role: packages | ||
become: true | ||
- role: nexodus | ||
become: true | ||
- role: ui | ||
become: true | ||
vars_files: | ||
- vars.yml |
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,33 @@ | ||
--- | ||
- name: Log into GHCR | ||
community.docker.docker_login: | ||
registry_url: ghcr.io | ||
username: instructlab-bot | ||
password: "{{ github_token }}" | ||
reauthorize: true | ||
|
||
- name: Start the apiserver container | ||
community.docker.docker_container: | ||
name: apiserver | ||
image: ghcr.io/instructlab/instructlab-bot/apiserver:main | ||
state: started | ||
pull: always | ||
env: | ||
LISTEN_ADDRESS: "${LISTEN_ADDRESS:-:3000}" | ||
REDIS_SERVER: "${REDIS_SERVER:-redis:6379}" | ||
API_USER: "${API_USER:-kitteh}" | ||
API_PASS: "${API_PASS:-floofykittens}" | ||
DEBUG_MODE: "${DEBUG_MODE:-true}" | ||
TEST_MODE: "${TEST_MODE:-true}" | ||
BOT_URL: "${BOT_URL:-http://instructlab-bot:8081}" | ||
ports: | ||
- 3000:3000 | ||
|
||
- name: Start the ui container | ||
community.docker.docker_container: | ||
name: ui | ||
image: ghcr.io/instructlab/instructlab-bot/bot-ui:main | ||
state: started | ||
pull: always | ||
ports: | ||
- 8080:8080 |
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