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

Auto-generate docker-compose files and enhance FileBrowser configuration #68

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

luandro
Copy link
Contributor

@luandro luandro commented Jun 17, 2024

User description

Maintaing working parallel non-Balena docker-compose.yml files for both online demo and local deploys is challenging and very error-prone. Ideally there should be a scripts that generates them from the balena docker-compose.yml.


PR Type

Enhancement, Bug fix, Other


Description

  • Added a script to auto-generate docker-compose files for demo and local environments.
  • Enhanced FileBrowser start script to create /users directory and set permissions, and to disable authentication if FILE_NOAUTH is set.
  • Fixed commit hash retrieval in GitHub Actions workflows.
  • Updated application version to 0.5.3.
  • Updated docker-compose to include new volumes and services.
  • Added configuration for demo and local environments in docker-stacks.yml.
  • Generated docker-compose files for demo and local environments.
  • Updated FileBrowser Dockerfile to use a specific versioned base image.

Changes walkthrough 📝

Relevant files
Enhancement
7 files
generate-docker-stacks.sh
Add script to auto-generate docker-compose files for demo and local
environments.

scripts/generate-docker-stacks.sh

  • Added script to generate docker-compose files for demo and local
    environments.
  • Excluded specific services and volumes for each environment.
  • Included specific services and environment variables for each
    environment.
  • +90/-0   
    start.sh
    Enhance FileBrowser start script with user directory and no-auth
    option.

    services/filebrowser/start.sh

  • Added creation and permission setting for /users directory.
  • Added conditional check for FILE_NOAUTH environment variable to
    disable authentication.
  • +6/-1     
    docker-compose.yml
    Update `docker-compose` with new volumes and services.     

    docker-compose.yml

  • Added new volumes: users, filebrowser-db, filebrowser-json.
  • Updated services to include new volumes.
  • +13/-5   
    docker-stacks.yml
    Add configuration for demo and local environments.             

    docker-stacks.yml

  • Added configuration for demo and local environments.
  • Defined services and volumes to exclude/include for each environment.
  • +20/-0   
    docker-compose-demo.yml
    Add generated `docker-compose` file for demo environment.

    scripts/.docker/docker-compose-demo.yml

    • Generated docker-compose file for demo environment.
    +5/-0     
    docker-compose-local.yml
    Add generated `docker-compose` file for local environment.

    scripts/.docker/docker-compose-local.yml

    • Generated docker-compose file for local environment.
    +5/-0     
    Dockerfile
    Update FileBrowser Dockerfile base image.                               

    services/filebrowser/Dockerfile

    • Updated base image to filebrowser/filebrowser:v2.23.0-s6.
    +1/-1     
    Bug fix
    2 files
    balena-pr-draft.yml
    Fix commit hash retrieval in GitHub Actions workflow.       

    .github/workflows/balena-pr-draft.yml

    • Fixed commit hash retrieval to use git rev-parse HEAD.
    +1/-1     
    balena-push-main.yml
    Fix commit hash retrieval in GitHub Actions workflow.       

    .github/workflows/balena-push-main.yml

    • Fixed commit hash retrieval to use git rev-parse HEAD.
    +1/-1     
    Other
    1 files
    balena.yml
    Update application version to 0.5.3.                                         

    balena.yml

    • Updated version from 0.5.0 to 0.5.3.
    +1/-1     

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    @luandro luandro added the enhancement New feature or request label Jun 17, 2024
    @luandro luandro added this to the v1 milestone Jun 17, 2024
    @luandro luandro force-pushed the auto-generate-stacks branch from 45df5ff to ef56a00 Compare June 17, 2024 17:36
    luandro added 6 commits June 17, 2024 14:37
    …v2.23.0-s6 image
    
    feat(filebrowser): add support for creating /users directory and setting ownership to 1000:1000
    feat(filebrowser): add support for configuring filebrowser to use no authentication if FILE_NOAUTH environment variable is set
    @luandro
    Copy link
    Contributor Author

    luandro commented Jun 17, 2024

    /describe
    --pr_description.publish_labels=true
    --pr_description.publish_description_as_comment=false
    --pr_description.generate_ai_title=true

    @github-actions github-actions bot changed the title Auto generate stacks Auto-generate docker-compose files and enhance FileBrowser configuration Jun 17, 2024
    Copy link

    PR Description updated to latest commit (ef56a00)

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Bug fix enhancement New feature or request Other
    Projects
    Development

    Successfully merging this pull request may close these issues.

    1 participant