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

feat: add run.sh script to automate setup and execution of the application in a container #99

Closed
wants to merge 1 commit into from

Conversation

Nat1anWasTaken
Copy link
Owner

The run.sh script automates the setup and execution of the application in a container. It performs the following tasks:

  • Displays ASCII art.
  • Checks if Docker or Podman is available and sets the CONTAINER_RUNTIME variable accordingly.
  • Checks if curl is available and installs it if necessary.
  • Prompts the user for input and saves the values to stack.env if the file doesn't exist.
  • Downloads configuration files (application.yml, icons.json, lavalink.json) if they don't exist.
  • Runs the container with the specified command using the chosen runtime.

This script simplifies the setup process and ensures that the application can be easily deployed and executed in a containerized environment.

… the application in a container

The run.sh script automates the setup and execution of the application in a container. It performs the following tasks:

- Displays ASCII art.
- Checks if Docker or Podman is available and sets the CONTAINER_RUNTIME variable accordingly.
- Checks if curl is available and installs it if necessary.
- Prompts the user for input and saves the values to stack.env if the file doesn't exist.
- Downloads configuration files (application.yml, icons.json, lavalink.json) if they don't exist.
- Runs the container with the specified command using the chosen runtime.

This script simplifies the setup process and ensures that the application can be easily deployed and executed in a containerized environment.
Copy link

Qodana Community for Python

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

  1. Register at Qodana Cloud and configure the action
  2. Use GitHub Code Scanning with Qodana
  3. Host Qodana report at GitHub Pages
  4. Inspect and use qodana.sarif.json (see the Qodana SARIF format for details)

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2023.3.1
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

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.

1 participant