Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a script to build ansible-chatbot-service locally #24

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

TamiTakamiya
Copy link
Collaborator

Description

Add a script (build-container-aap.sh) to build ansible-chatbot-service locally.

make images-aap invokes build-container-aap.sh to build quay.io/ansible/ansible-chatbot-service:latest.

The generated image can be executed on local host with:

 podman run --rm \
   --name chatbot-8080 \
   -p 8080:8080 \
   -v ${PWD}/rcsconfig.yaml:/app-root/rcsconfig.yaml:Z \
   -e OPENAI_API_KEY=IGNORED  \
   quay.io/ansible/ansible-chatbot-service:latest

and REST API can be invoked by opening http://localhost:8080/docs in a web browser.

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change

Related Tickets & Documents

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

@TamiTakamiya TamiTakamiya requested a review from jameswnl November 4, 2024 19:49
@TamiTakamiya TamiTakamiya merged commit 1f278c4 into main Nov 4, 2024
17 checks passed
@TamiTakamiya TamiTakamiya deleted the TamiTakamiya/AAP-34976/build-container-aap branch November 4, 2024 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants