diff --git a/.editorconfig b/.editorconfig new file mode 100755 index 0000000..5f150f3 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,20 @@ +# This file is globally distributed to all container image projects from +# https://github.com/linuxserver/docker-jenkins-builder/blob/master/.editorconfig + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true +# trim_trailing_whitespace may cause unintended issues and should not be globally set true +trim_trailing_whitespace = false + +[{Dockerfile*,**.yml}] +indent_style = space +indent_size = 2 + +[{**.sh,root/etc/s6-overlay/s6-rc.d/**,root/etc/cont-init.d/**,root/etc/services.d/**}] +indent_style = space +indent_size = 4 diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 3afcbac..dab7f9e 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -4,9 +4,9 @@ * While contributing make sure to make all your changes before creating a Pull Request, as our pipeline builds each commit after the PR is open. * Read, and fill the Pull Request template - * If this is a fix for a typo in code or documentation in the README please file an issue + * If this is a fix for a typo (in code, documentation, or the README) please file an issue and let us sort it out. We do not need a PR * If the PR is addressing an existing issue include, closes #\, in the body of the PR commit message -* If you want to discuss changes, you can also bring it up in [#dev-talk](https://discordapp.com/channels/354974912613449730/757585807061155840) in our [Discord server](https://discord.gg/YWrKVTn) +* If you want to discuss changes, you can also bring it up in [#dev-talk](https://discordapp.com/channels/354974912613449730/757585807061155840) in our [Discord server](https://linuxserver.io/discord) ## Common files @@ -105,10 +105,10 @@ docker build \ -t linuxserver/audacity:latest . ``` -The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static` +The ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static` ```bash -docker run --rm --privileged multiarch/qemu-user-static:register --reset +docker run --rm --privileged lscr.io/linuxserver/qemu-static --reset ``` Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 452b3b9..face150 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,7 +1,7 @@ blank_issues_enabled: false contact_links: - name: Discord chat support - url: https://discord.gg/YWrKVTn + url: https://linuxserver.io/discord about: Realtime support / chat with the community and the team. - name: Discourse discussion forum diff --git a/.github/ISSUE_TEMPLATE/issue.bug.md b/.github/ISSUE_TEMPLATE/issue.bug.md deleted file mode 100644 index 097cff1..0000000 --- a/.github/ISSUE_TEMPLATE/issue.bug.md +++ /dev/null @@ -1,40 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve - ---- -[linuxserverurl]: https://linuxserver.io -[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl] - - - - - ------------------------------- - -## Expected Behavior - - -## Current Behavior - - -## Steps to Reproduce - - -1. -2. -3. -4. - -## Environment -**OS:** -**CPU architecture:** x86_64/arm32/arm64 -**How docker service was installed:** - - - -## Command used to create docker container (run/create/compose/screenshot) - - -## Docker logs - diff --git a/.github/ISSUE_TEMPLATE/issue.bug.yml b/.github/ISSUE_TEMPLATE/issue.bug.yml new file mode 100755 index 0000000..b812b88 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/issue.bug.yml @@ -0,0 +1,75 @@ +# Based on the issue template +name: Bug report +description: Create a report to help us improve +title: "[BUG] " +labels: [Bug] +body: + - type: checkboxes + attributes: + label: Is there an existing issue for this? + description: Please search to see if an issue already exists for the bug you encountered. + options: + - label: I have searched the existing issues + required: true + - type: textarea + attributes: + label: Current Behavior + description: Tell us what happens instead of the expected behavior. + validations: + required: true + - type: textarea + attributes: + label: Expected Behavior + description: Tell us what should happen. + validations: + required: false + - type: textarea + attributes: + label: Steps To Reproduce + description: Steps to reproduce the behavior. + placeholder: | + 1. In this environment... + 2. With this config... + 3. Run '...' + 4. See error... + validations: + required: true + - type: textarea + attributes: + label: Environment + description: | + examples: + - **OS**: Ubuntu 20.04 + - **How docker service was installed**: distro's packagemanager + value: | + - OS: + - How docker service was installed: + render: markdown + validations: + required: false + - type: dropdown + attributes: + label: CPU architecture + options: + - x86-64 + validations: + required: true + - type: textarea + attributes: + label: Docker creation + description: | + Command used to create docker container + Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container + render: bash + validations: + required: true + - type: textarea + attributes: + description: | + Provide a full docker log, output of "docker logs audacity" + label: Container logs + placeholder: | + Output of `docker logs audacity` + render: bash + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/issue.feature.md b/.github/ISSUE_TEMPLATE/issue.feature.md deleted file mode 100644 index 20a91fd..0000000 --- a/.github/ISSUE_TEMPLATE/issue.feature.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project - ---- -[linuxserverurl]: https://linuxserver.io -[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl] - -<!--- If you are new to Docker or this application our issue tracker is **ONLY** used for reporting bugs or requesting features. Please use [our discord server](https://discord.gg/YWrKVTn) for general support. ---> - -<!--- If this acts as a feature request please ask yourself if this modification is something the whole userbase will benefit from ---> -<!--- If this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ --> - -<!--- Provide a general summary of the request in the Title above --> - ------------------------------- - -## Desired Behavior -<!--- Tell us what should happen --> - -## Current Behavior -<!--- Tell us what happens instead of the expected behavior --> - -## Alternatives Considered -<!--- Tell us what other options you have tried or considered --> diff --git a/.github/ISSUE_TEMPLATE/issue.feature.yml b/.github/ISSUE_TEMPLATE/issue.feature.yml new file mode 100755 index 0000000..099dcdb --- /dev/null +++ b/.github/ISSUE_TEMPLATE/issue.feature.yml @@ -0,0 +1,31 @@ +# Based on the issue template +name: Feature request +description: Suggest an idea for this project +title: "[FEAT] <title>" +labels: [enhancement] +body: + - type: checkboxes + attributes: + label: Is this a new feature request? + description: Please search to see if a feature request already exists. + options: + - label: I have searched the existing issues + required: true + - type: textarea + attributes: + label: Wanted change + description: Tell us what you want to happen. + validations: + required: true + - type: textarea + attributes: + label: Reason for change + description: Justify your request, why do you want it, what is the benefit. + validations: + required: true + - type: textarea + attributes: + label: Proposed code change + description: Do you have a potential code change in mind? + validations: + required: false diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 8901d63..f033f0e 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -6,7 +6,7 @@ <!--- Before submitting a pull request please check the following --> -<!--- If this is a fix for a typo in code or documentation in the README please file an issue and let us sort it out we do not need a PR --> +<!--- If this is a fix for a typo (in code, documentation, or the README) please file an issue and let us sort it out. We do not need a PR --> <!--- Ask yourself if this modification is something the whole userbase will benefit from, if this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ --> <!--- That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message --> <!--- You have included links to any files / patches etc your PR may be using in the body of the PR commit message --> diff --git a/.github/workflows/call_issue_pr_tracker.yml b/.github/workflows/call_issue_pr_tracker.yml new file mode 100755 index 0000000..2c30784 --- /dev/null +++ b/.github/workflows/call_issue_pr_tracker.yml @@ -0,0 +1,16 @@ +name: Issue & PR Tracker + +on: + issues: + types: [opened,reopened,labeled,unlabeled,closed] + pull_request_target: + types: [opened,reopened,review_requested,review_request_removed,labeled,unlabeled,closed] + pull_request_review: + types: [submitted,edited,dismissed] + +jobs: + manage-project: + permissions: + issues: write + uses: linuxserver/github-workflows/.github/workflows/issue-pr-tracker.yml@v1 + secrets: inherit diff --git a/.github/workflows/call_issues_cron.yml b/.github/workflows/call_issues_cron.yml new file mode 100755 index 0000000..2b962ad --- /dev/null +++ b/.github/workflows/call_issues_cron.yml @@ -0,0 +1,13 @@ +name: Mark stale issues and pull requests +on: + schedule: + - cron: '52 17 * * *' + workflow_dispatch: + +jobs: + stale: + permissions: + issues: write + pull-requests: write + uses: linuxserver/github-workflows/.github/workflows/issues-cron.yml@v1 + secrets: inherit diff --git a/.github/workflows/external_trigger.yml b/.github/workflows/external_trigger.yml index 2a33b75..e884304 100644 --- a/.github/workflows/external_trigger.yml +++ b/.github/workflows/external_trigger.yml @@ -7,20 +7,35 @@ jobs: external-trigger-main: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.3 + - uses: actions/checkout@v4.1.1 - name: External Trigger if: github.ref == 'refs/heads/main' + env: + SKIP_EXTERNAL_TRIGGER: ${{ vars.SKIP_EXTERNAL_TRIGGER }} run: | - if [ -n "${{ secrets.PAUSE_EXTERNAL_TRIGGER_AUDACITY_MAIN }}" ]; then - echo "**** Github secret PAUSE_EXTERNAL_TRIGGER_AUDACITY_MAIN is set; skipping trigger. ****" + printf "# External trigger for docker-audacity\n\n" >> $GITHUB_STEP_SUMMARY + if grep -q "^audacity_main_" <<< "${SKIP_EXTERNAL_TRIGGER}"; then + echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY + echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`audacity_main_\`; will skip trigger if version matches." >> $GITHUB_STEP_SUMMARY + elif grep -q "^audacity_main" <<< "${SKIP_EXTERNAL_TRIGGER}"; then + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`audacity_main\`; skipping trigger." >> $GITHUB_STEP_SUMMARY exit 0 fi - echo "**** External trigger running off of main branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_AUDACITY_MAIN\". ****" - echo "**** Retrieving external version ****" + echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY + echo "> External trigger running off of main branch. To disable this trigger, add \`audacity_main\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY + printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY EXT_RELEASE=$(curl -u ${{ secrets.CR_USER }}:${{ secrets.CR_PAT }} -sX GET https://api.github.com/repos/audacity/audacity/releases/latest | jq -r '.tag_name' | sed 's|^Audacity-||') + echo "Type is \`custom_version_command\`" >> $GITHUB_STEP_SUMMARY + if grep -q "^audacity_main_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` matches current external release; skipping trigger." >> $GITHUB_STEP_SUMMARY + exit 0 + fi if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then - echo "**** Can't retrieve external version, exiting ****" + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "> Can't retrieve external version, exiting" >> $GITHUB_STEP_SUMMARY FAILURE_REASON="Can't retrieve external version for audacity branch main" GHA_TRIGGER_URL="https://github.com/linuxserver/docker-audacity/actions/runs/${{ github.run_id }}" curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680, @@ -29,64 +44,101 @@ jobs: exit 1 fi EXT_RELEASE=$(echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g') - echo "**** External version: ${EXT_RELEASE} ****" - echo "**** Retrieving last pushed version ****" + echo "External version: \`${EXT_RELEASE}\`" >> $GITHUB_STEP_SUMMARY + echo "Retrieving last pushed version" >> $GITHUB_STEP_SUMMARY image="linuxserver/audacity" tag="latest" token=$(curl -sX GET \ "https://ghcr.io/token?scope=repository%3Alinuxserver%2Faudacity%3Apull" \ | jq -r '.token') - multidigest=$(curl -s \ + multidigest=$(curl -s \ + --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \ + --header "Accept: application/vnd.oci.image.index.v1+json" \ + --header "Authorization: Bearer ${token}" \ + "https://ghcr.io/v2/${image}/manifests/${tag}") + if jq -e '.layers // empty' <<< "${multidigest}" >/dev/null 2>&1; then + # If there's a layer element it's a single-arch manifest so just get that digest + digest=$(jq -r '.config.digest' <<< "${multidigest}") + else + # Otherwise it's multi-arch or has manifest annotations + if jq -e '.manifests[]?.annotations // empty' <<< "${multidigest}" >/dev/null 2>&1; then + # Check for manifest annotations and delete if found + multidigest=$(jq 'del(.manifests[] | select(.annotations))' <<< "${multidigest}") + fi + if [[ $(jq '.manifests | length' <<< "${multidigest}") -gt 1 ]]; then + # If there's still more than one digest, it's multi-arch + multidigest=$(jq -r ".manifests[] | select(.platform.architecture == \"amd64\").digest?" <<< "${multidigest}") + else + # Otherwise it's single arch + multidigest=$(jq -r ".manifests[].digest?" <<< "${multidigest}") + fi + if digest=$(curl -s \ --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \ + --header "Accept: application/vnd.oci.image.manifest.v1+json" \ --header "Authorization: Bearer ${token}" \ - "https://ghcr.io/v2/${image}/manifests/${tag}" \ - | jq -r 'first(.manifests[].digest)') - digest=$(curl -s \ - --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \ - --header "Authorization: Bearer ${token}" \ - "https://ghcr.io/v2/${image}/manifests/${multidigest}" \ - | jq -r '.config.digest') + "https://ghcr.io/v2/${image}/manifests/${multidigest}"); then + digest=$(jq -r '.config.digest' <<< "${digest}"); + fi + fi image_info=$(curl -sL \ --header "Authorization: Bearer ${token}" \ - "https://ghcr.io/v2/${image}/blobs/${digest}" \ - | jq -r '.container_config') + "https://ghcr.io/v2/${image}/blobs/${digest}") + if [[ $(echo $image_info | jq -r '.container_config') == "null" ]]; then + image_info=$(echo $image_info | jq -r '.config') + else + image_info=$(echo $image_info | jq -r '.container_config') + fi IMAGE_RELEASE=$(echo ${image_info} | jq -r '.Labels.build_version' | awk '{print $3}') IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}') if [ -z "${IMAGE_VERSION}" ]; then - echo "**** Can't retrieve last pushed version, exiting ****" + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "Can't retrieve last pushed version, exiting" >> $GITHUB_STEP_SUMMARY FAILURE_REASON="Can't retrieve last pushed version for audacity tag latest" curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680, "description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}], "username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }} exit 1 fi - echo "**** Last pushed version: ${IMAGE_VERSION} ****" + echo "Last pushed version: \`${IMAGE_VERSION}\`" >> $GITHUB_STEP_SUMMARY if [ "${EXT_RELEASE}" == "${IMAGE_VERSION}" ]; then - echo "**** Version ${EXT_RELEASE} already pushed, exiting ****" + echo "Version \`${EXT_RELEASE}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY exit 0 elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-audacity/job/main/lastBuild/api/json | jq -r '.building') == "true" ]; then - echo "**** New version ${EXT_RELEASE} found; but there already seems to be an active build on Jenkins; exiting ****" + echo "New version \`${EXT_RELEASE}\` found; but there already seems to be an active build on Jenkins; exiting" >> $GITHUB_STEP_SUMMARY exit 0 else - echo "**** New version ${EXT_RELEASE} found; old version was ${IMAGE_VERSION}. Triggering new build ****" - response=$(curl -iX POST \ - https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-audacity/job/main/buildWithParameters?PACKAGE_CHECK=false \ - --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|") - echo "**** Jenkins job queue url: ${response%$'\r'} ****" - echo "**** Sleeping 10 seconds until job starts ****" - sleep 10 - buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url') - buildurl="${buildurl%$'\r'}" - echo "**** Jenkins job build url: ${buildurl} ****" - echo "**** Attempting to change the Jenkins job description ****" - curl -iX POST \ - "${buildurl}submitDescription" \ - --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \ - --data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ - --data-urlencode "Submit=Submit" - echo "**** Notifying Discord ****" - TRIGGER_REASON="A version change was detected for audacity tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}" - curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903, - "description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}], - "username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }} + if [[ "${artifacts_found}" == "false" ]]; then + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "> New version detected, but not all artifacts are published yet; skipping trigger" >> $GITHUB_STEP_SUMMARY + FAILURE_REASON="New version ${EXT_RELEASE} for audacity tag latest is detected, however not all artifacts are uploaded to upstream release yet. Will try again later." + curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903, + "description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}], + "username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }} + else + printf "\n## Trigger new build\n\n" >> $GITHUB_STEP_SUMMARY + echo "New version \`${EXT_RELEASE}\` found; old version was \`${IMAGE_VERSION}\`. Triggering new build" >> $GITHUB_STEP_SUMMARY + if [[ "${artifacts_found}" == "true" ]]; then + echo "All artifacts seem to be uploaded." >> $GITHUB_STEP_SUMMARY + fi + response=$(curl -iX POST \ + https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-audacity/job/main/buildWithParameters?PACKAGE_CHECK=false \ + --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|") + echo "Jenkins [job queue url](${response%$'\r'})" >> $GITHUB_STEP_SUMMARY + echo "Sleeping 10 seconds until job starts" >> $GITHUB_STEP_SUMMARY + sleep 10 + buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url') + buildurl="${buildurl%$'\r'}" + echo "Jenkins job [build url](${buildurl})" >> $GITHUB_STEP_SUMMARY + echo "Attempting to change the Jenkins job description" >> $GITHUB_STEP_SUMMARY + curl -iX POST \ + "${buildurl}submitDescription" \ + --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \ + --data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ + --data-urlencode "Submit=Submit" + echo "**** Notifying Discord ****" + TRIGGER_REASON="A version change was detected for audacity tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}" + curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903, + "description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}], + "username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }} + fi fi diff --git a/.github/workflows/external_trigger_scheduler.yml b/.github/workflows/external_trigger_scheduler.yml index b0bc0cd..6fb7a16 100644 --- a/.github/workflows/external_trigger_scheduler.yml +++ b/.github/workflows/external_trigger_scheduler.yml @@ -2,42 +2,44 @@ name: External Trigger Scheduler on: schedule: - - cron: '55 * * * *' + - cron: '34 * * * *' workflow_dispatch: jobs: external-trigger-scheduler: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.3 + - uses: actions/checkout@v4.1.1 with: fetch-depth: '0' - name: External Trigger Scheduler run: | - echo "**** Branches found: ****" - git for-each-ref --format='%(refname:short)' refs/remotes - echo "**** Pulling the yq docker image ****" - docker pull ghcr.io/linuxserver/yq - for br in $(git for-each-ref --format='%(refname:short)' refs/remotes) + printf "# External trigger scheduler for docker-audacity\n\n" >> $GITHUB_STEP_SUMMARY + printf "Found the branches:\n\n%s\n" "$(git for-each-ref --format='- %(refname:lstrip=3)' refs/remotes)" >> $GITHUB_STEP_SUMMARY + for br in $(git for-each-ref --format='%(refname:lstrip=3)' refs/remotes) do - br=$(echo "$br" | sed 's|origin/||g') - echo "**** Evaluating branch ${br} ****" - ls_branch=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-audacity/${br}/jenkins-vars.yml \ - | docker run --rm -i --entrypoint yq ghcr.io/linuxserver/yq -r .ls_branch) - if [ "$br" == "$ls_branch" ]; then - echo "**** Branch ${br} appears to be live; checking workflow. ****" + if [[ "${br}" == "HEAD" ]]; then + printf "\nSkipping %s.\n" ${br} >> $GITHUB_STEP_SUMMARY + continue + fi + printf "\n## Evaluating \`%s\`\n\n" ${br} >> $GITHUB_STEP_SUMMARY + ls_jenkins_vars=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-audacity/${br}/jenkins-vars.yml) + ls_branch=$(echo "${ls_jenkins_vars}" | yq -r '.ls_branch') + ls_trigger=$(echo "${ls_jenkins_vars}" | yq -r '.external_type') + if [[ "${br}" == "${ls_branch}" ]] && [[ "${ls_trigger}" != "os" ]]; then + echo "Branch appears to be live and trigger is not os; checking workflow." >> $GITHUB_STEP_SUMMARY if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-audacity/${br}/.github/workflows/external_trigger.yml > /dev/null 2>&1; then - echo "**** Workflow exists. Triggering external trigger workflow for branch ${br} ****." + echo "Triggering external trigger workflow for branch." >> $GITHUB_STEP_SUMMARY curl -iX POST \ -H "Authorization: token ${{ secrets.CR_PAT }}" \ -H "Accept: application/vnd.github.v3+json" \ -d "{\"ref\":\"refs/heads/${br}\"}" \ https://api.github.com/repos/linuxserver/docker-audacity/actions/workflows/external_trigger.yml/dispatches else - echo "**** Workflow doesn't exist; skipping trigger. ****" + echo "Skipping branch due to no external trigger workflow present." >> $GITHUB_STEP_SUMMARY fi else - echo "**** ${br} appears to be a dev branch; skipping trigger. ****" + echo "Skipping branch due to being detected as dev branch or having no external version." >> $GITHUB_STEP_SUMMARY fi done diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml index 5fbb9a7..5d7ce49 100644 --- a/.github/workflows/greetings.yml +++ b/.github/workflows/greetings.yml @@ -8,6 +8,6 @@ jobs: steps: - uses: actions/first-interaction@v1 with: - issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/linuxserver/docker-audacity/blob/main/.github/ISSUE_TEMPLATE/issue.bug.md) or [feature](https://github.com/linuxserver/docker-audacity/blob/main/.github/ISSUE_TEMPLATE/issue.feature.md) issue templates!' + issue-message: 'Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.' pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-audacity/blob/main/.github/PULL_REQUEST_TEMPLATE.md)!' repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/package_trigger.yml b/.github/workflows/package_trigger.yml deleted file mode 100644 index 3ea9406..0000000 --- a/.github/workflows/package_trigger.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Package Trigger Main - -on: - workflow_dispatch: - -jobs: - package-trigger-main: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2.3.3 - - - name: Package Trigger - if: github.ref == 'refs/heads/main' - run: | - if [ -n "${{ secrets.PAUSE_PACKAGE_TRIGGER_AUDACITY_MAIN }}" ]; then - echo "**** Github secret PAUSE_PACKAGE_TRIGGER_AUDACITY_MAIN is set; skipping trigger. ****" - exit 0 - fi - if [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-audacity/job/main/lastBuild/api/json | jq -r '.building') == "true" ]; then - echo "**** There already seems to be an active build on Jenkins; skipping package trigger ****" - exit 0 - fi - echo "**** Package trigger running off of main branch. To disable, set a Github secret named \"PAUSE_PACKAGE_TRIGGER_AUDACITY_MAIN\". ****" - response=$(curl -iX POST \ - https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-audacity/job/main/buildWithParameters?PACKAGE_CHECK=true \ - --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|") - echo "**** Jenkins job queue url: ${response%$'\r'} ****" - echo "**** Sleeping 10 seconds until job starts ****" - sleep 10 - buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url') - buildurl="${buildurl%$'\r'}" - echo "**** Jenkins job build url: ${buildurl} ****" - echo "**** Attempting to change the Jenkins job description ****" - curl -iX POST \ - "${buildurl}submitDescription" \ - --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \ - --data-urlencode "description=GHA package trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ - --data-urlencode "Submit=Submit" diff --git a/.github/workflows/package_trigger_scheduler.yml b/.github/workflows/package_trigger_scheduler.yml index 6805f89..071b97b 100644 --- a/.github/workflows/package_trigger_scheduler.yml +++ b/.github/workflows/package_trigger_scheduler.yml @@ -2,49 +2,99 @@ name: Package Trigger Scheduler on: schedule: - - cron: '00 12 * * 1' + - cron: '49 4 * * 2' workflow_dispatch: jobs: package-trigger-scheduler: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.3 + - uses: actions/checkout@v4.1.1 with: fetch-depth: '0' - name: Package Trigger Scheduler + env: + SKIP_PACKAGE_TRIGGER: ${{ vars.SKIP_PACKAGE_TRIGGER }} run: | - echo "**** Branches found: ****" - git for-each-ref --format='%(refname:short)' refs/remotes - echo "**** Pulling the yq docker image ****" - docker pull ghcr.io/linuxserver/yq - for br in $(git for-each-ref --format='%(refname:short)' refs/remotes) + printf "# Package trigger scheduler for docker-audacity\n\n" >> $GITHUB_STEP_SUMMARY + printf "Found the branches:\n\n%s\n" "$(git for-each-ref --format='- %(refname:lstrip=3)' refs/remotes)" >> $GITHUB_STEP_SUMMARY + for br in $(git for-each-ref --format='%(refname:lstrip=3)' refs/remotes) do - br=$(echo "$br" | sed 's|origin/||g') - echo "**** Evaluating branch ${br} ****" - ls_branch=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-audacity/${br}/jenkins-vars.yml \ - | docker run --rm -i --entrypoint yq ghcr.io/linuxserver/yq -r .ls_branch) - if [ "${br}" == "${ls_branch}" ]; then - echo "**** Branch ${br} appears to be live; checking workflow. ****" - if curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-audacity/${br}/.github/workflows/package_trigger.yml > /dev/null 2>&1; then - echo "**** Workflow exists. Triggering package trigger workflow for branch ${br}. ****" - triggered_branches="${triggered_branches}${br} " - curl -iX POST \ - -H "Authorization: token ${{ secrets.CR_PAT }}" \ - -H "Accept: application/vnd.github.v3+json" \ - -d "{\"ref\":\"refs/heads/${br}\"}" \ - https://api.github.com/repos/linuxserver/docker-audacity/actions/workflows/package_trigger.yml/dispatches - sleep 30 + if [[ "${br}" == "HEAD" ]]; then + printf "\nSkipping %s.\n" ${br} >> $GITHUB_STEP_SUMMARY + continue + fi + printf "\n## Evaluating \`%s\`\n\n" ${br} >> $GITHUB_STEP_SUMMARY + JENKINS_VARS=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-audacity/${br}/jenkins-vars.yml) + if ! curl -sfX GET https://raw.githubusercontent.com/linuxserver/docker-audacity/${br}/Jenkinsfile >/dev/null 2>&1; then + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "> No Jenkinsfile found. Branch is either deprecated or is an early dev branch." >> $GITHUB_STEP_SUMMARY + skipped_branches="${skipped_branches}${br} " + elif [[ "${br}" == $(yq -r '.ls_branch' <<< "${JENKINS_VARS}") ]]; then + echo "Branch appears to be live; checking workflow." >> $GITHUB_STEP_SUMMARY + README_VARS=$(curl -sX GET https://raw.githubusercontent.com/linuxserver/docker-audacity/${br}/readme-vars.yml) + if [[ $(yq -r '.project_deprecation_status' <<< "${README_VARS}") == "true" ]]; then + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "> Branch appears to be deprecated; skipping trigger." >> $GITHUB_STEP_SUMMARY + skipped_branches="${skipped_branches}${br} " + elif [[ $(yq -r '.skip_package_check' <<< "${JENKINS_VARS}") == "true" ]]; then + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "> Skipping branch ${br} due to \`skip_package_check\` being set in \`jenkins-vars.yml\`." >> $GITHUB_STEP_SUMMARY + skipped_branches="${skipped_branches}${br} " + elif grep -q "^audacity_${br}" <<< "${SKIP_PACKAGE_TRIGGER}"; then + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "> Github organizational variable \`SKIP_PACKAGE_TRIGGER\` contains \`audacity_${br}\`; skipping trigger." >> $GITHUB_STEP_SUMMARY + skipped_branches="${skipped_branches}${br} " + elif [ $(curl -s https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-audacity/job/${br}/lastBuild/api/json | jq -r '.building' 2>/dev/null) == "true" ]; then + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "> There already seems to be an active build on Jenkins; skipping package trigger for ${br}" >> $GITHUB_STEP_SUMMARY + skipped_branches="${skipped_branches}${br} " else - echo "**** Workflow doesn't exist; skipping trigger. ****" + echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY + echo "> Triggering package trigger for branch ${br}" >> $GITHUB_STEP_SUMMARY + printf "> To disable, add \`audacity_%s\` into the Github organizational variable \`SKIP_PACKAGE_TRIGGER\`.\n\n" "${br}" >> $GITHUB_STEP_SUMMARY + triggered_branches="${triggered_branches}${br} " + response=$(curl -iX POST \ + https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-audacity/job/${br}/buildWithParameters?PACKAGE_CHECK=true \ + --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} | grep -i location | sed "s|^[L|l]ocation: \(.*\)|\1|") + if [[ -z "${response}" ]]; then + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "> Jenkins build could not be triggered. Skipping branch." + continue + fi + echo "Jenkins [job queue url](${response%$'\r'})" >> $GITHUB_STEP_SUMMARY + echo "Sleeping 10 seconds until job starts" >> $GITHUB_STEP_SUMMARY + sleep 10 + buildurl=$(curl -s "${response%$'\r'}api/json" | jq -r '.executable.url') + buildurl="${buildurl%$'\r'}" + echo "Jenkins job [build url](${buildurl})" >> $GITHUB_STEP_SUMMARY + echo "Attempting to change the Jenkins job description" >> $GITHUB_STEP_SUMMARY + if ! curl -ifX POST \ + "${buildurl}submitDescription" \ + --user ${{ secrets.JENKINS_USER }}:${{ secrets.JENKINS_TOKEN }} \ + --data-urlencode "description=GHA package trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ + --data-urlencode "Submit=Submit"; then + echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY + echo "> Unable to change the Jenkins job description." + fi + sleep 20 fi else - echo "**** ${br} appears to be a dev branch; skipping trigger. ****" + echo "Skipping branch ${br} due to being detected as dev branch." >> $GITHUB_STEP_SUMMARY fi done - echo "**** Package check build(s) triggered for branch(es): ${triggered_branches} ****" - echo "**** Notifying Discord ****" - curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903, - "description": "**Package Check Build(s) Triggered for audacity** \n**Branch(es):** '"${triggered_branches}"' \n**Build URL:** '"https://ci.linuxserver.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-audacity/activity/"' \n"}], - "username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }} + if [[ -n "${triggered_branches}" ]] || [[ -n "${skipped_branches}" ]]; then + if [[ -n "${triggered_branches}" ]]; then + NOTIFY_BRANCHES="**Triggered:** ${triggered_branches} \n" + NOTIFY_BUILD_URL="**Build URL:** https://ci.linuxserver.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-audacity/activity/ \n" + echo "**** Package check build(s) triggered for branch(es): ${triggered_branches} ****" + fi + if [[ -n "${skipped_branches}" ]]; then + NOTIFY_BRANCHES="${NOTIFY_BRANCHES}**Skipped:** ${skipped_branches} \n" + fi + echo "**** Notifying Discord ****" + curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903, + "description": "**Package Check Build(s) for audacity** \n'"${NOTIFY_BRANCHES}"''"${NOTIFY_BUILD_URL}"'"}], + "username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }} + fi diff --git a/.github/workflows/permissions.yml b/.github/workflows/permissions.yml new file mode 100755 index 0000000..02e1bdb --- /dev/null +++ b/.github/workflows/permissions.yml @@ -0,0 +1,12 @@ +name: Permission check +on: + pull_request_target: + paths: + - '**/run' + - '**/finish' + - '**/check' + - 'root/migrations/*' + +jobs: + permission_check: + uses: linuxserver/github-workflows/.github/workflows/init-svc-executable-permissions.yml@v1 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 1806420..0000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Mark stale issues and pull requests - -on: - schedule: - - cron: "30 1 * * *" - -jobs: - stale: - - runs-on: ubuntu-latest - - steps: - - uses: actions/stale@v1 - with: - stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions." - stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions." - stale-issue-label: 'no-issue-activity' - stale-pr-label: 'no-pr-activity' - days-before-stale: 30 - days-before-close: 365 - exempt-issue-labels: 'awaiting-approval,work-in-progress' - exempt-pr-labels: 'awaiting-approval,work-in-progress' - repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Dockerfile b/Dockerfile index e0ffcb0..d754159 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,79 +1,56 @@ -FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal as buildstage +# syntax=docker/dockerfile:1 -ARG AUDACITY_VERSION - -RUN \ - echo "**** install build packages ****" && \ - apt-get update && \ - apt-get install -y \ - build-essential \ - cmake \ - curl \ - gcc \ - git \ - libasound2-dev \ - libavformat-dev \ - libgtk2.0-dev \ - libjack-jackd2-dev && \ - echo "**** build audacity ****" && \ - if [ -z ${AUDACITY_VERSION+x} ]; then \ - AUDACITY_VERSION=$(curl -sX GET "https://api.github.com/repos/audacity/audacity/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^Audacity-||'); \ - fi && \ - mkdir -p /app/audacity/build && \ - curl -o \ - /tmp/audacity.tar.xz -L \ - "https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-minsrc-${AUDACITY_VERSION}.tar.xz" && \ - tar xf \ - /tmp/audacity.tar.xz -C \ - /app/audacity --strip-components=1 && \ - cd /app/audacity/build && \ - cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_wxwidgets=local -Daudacity_use_ffmpeg=loaded .. && \ - make -j2 && \ - make install && \ - echo "**** cleanup ****" && \ - apt-get purge --auto-remove -y \ - build-essential \ - cmake \ - curl \ - gcc \ - git \ - libasound2-dev \ - libavformat-dev \ - libgtk2.0-dev \ - libjack-jackd2-dev && \ - mv /app/audacity/build/bin/Release/locale /app/ && \ - rm -rf /app/audacity - - -FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal +FROM ghcr.io/linuxserver/baseimage-kasmvnc:ubuntunoble # set version label ARG BUILD_DATE ARG VERSION +ARG AUDACITY_VERSION LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL maintainer="aptalca" +# title +ENV TITLE=Audacity + RUN \ + echo "**** add icon ****" && \ + curl -o \ + /kclient/public/icon.png \ + https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/audacity-logo.png && \ echo "**** install packages ****" && \ apt-get update && \ apt-get install -y \ - libasound2 \ - libavformat58 \ - libgtk2.0-0 \ - libjack-jackd2-0 \ - python3-minimal && \ + python3-xdg \ + libatk1.0 \ + libatk-bridge2.0 \ + libnss3 \ + libportaudio2 && \ + echo "**** install audacity ****" && \ + if [ -z ${AUDACITY_VERSION+x} ]; then \ + AUDACITY_VERSION=$(curl -sX GET "https://api.github.com/repos/audacity/audacity/releases/latest" \ + | awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^Audacity-||'); \ + fi && \ + cd /tmp && \ + curl -o \ + /tmp/audacity.app -L \ + "https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-linux-${AUDACITY_VERSION}-x64-22.04.AppImage" && \ + chmod +x /tmp/audacity.app && \ + ./audacity.app --appimage-extract && \ + mv squashfs-root /opt/audacity && \ + ln -s \ + /usr/lib/x86_64-linux-gnu/libportaudio.so.2 \ + /usr/lib/x86_64-linux-gnu/libportaudio.so && \ + printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \ echo "**** cleanup ****" && \ rm -rf \ - /tmp/* + /tmp/* \ + /var/lib/apt/lists/* \ + /var/tmp/* # add local files COPY /root / -COPY --from=buildstage /usr/local/share/audacity /usr/local/share/audacity -COPY --from=buildstage /usr/local/lib/audacity /usr/local/lib/audacity -COPY --from=buildstage /usr/local/bin/audacity /usr/local/bin/audacity -COPY --from=buildstage /app/locale /usr/local/share/locale # ports and volumes EXPOSE 3000 + VOLUME /config diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 deleted file mode 100644 index acc9425..0000000 --- a/Dockerfile.aarch64 +++ /dev/null @@ -1,79 +0,0 @@ -FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm64v8-focal as buildstage - -ARG AUDACITY_VERSION - -RUN \ - echo "**** install build packages ****" && \ - apt-get update && \ - apt-get install -y \ - build-essential \ - cmake \ - curl \ - gcc \ - git \ - libasound2-dev \ - libavformat-dev \ - libgtk2.0-dev \ - libjack-jackd2-dev && \ - echo "**** build audacity ****" && \ - if [ -z ${AUDACITY_VERSION+x} ]; then \ - AUDACITY_VERSION=$(curl -sX GET "https://api.github.com/repos/audacity/audacity/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^Audacity-||'); \ - fi && \ - mkdir -p /app/audacity/build && \ - curl -o \ - /tmp/audacity.tar.xz -L \ - "https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-minsrc-${AUDACITY_VERSION}.tar.xz" && \ - tar xf \ - /tmp/audacity.tar.xz -C \ - /app/audacity --strip-components=1 && \ - cd /app/audacity/build && \ - cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_wxwidgets=local -Daudacity_use_ffmpeg=loaded .. && \ - make -j2 && \ - make install && \ - echo "**** cleanup ****" && \ - apt-get purge --auto-remove -y \ - build-essential \ - cmake \ - curl \ - gcc \ - git \ - libasound2-dev \ - libavformat-dev \ - libgtk2.0-dev \ - libjack-jackd2-dev && \ - mv /app/audacity/build/bin/Release/locale /app/ && \ - rm -rf /app/audacity - - -FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal - -# set version label -ARG BUILD_DATE -ARG VERSION -LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" -LABEL maintainer="aptalca" - -RUN \ - echo "**** install packages ****" && \ - apt-get update && \ - apt-get install -y \ - libasound2 \ - libavformat58 \ - libgtk2.0-0 \ - libjack-jackd2-0 \ - python3-minimal && \ - echo "**** cleanup ****" && \ - rm -rf \ - /tmp/* - -# add local files -COPY /root / -COPY --from=buildstage /usr/local/share/audacity /usr/local/share/audacity -COPY --from=buildstage /usr/local/lib/audacity /usr/local/lib/audacity -COPY --from=buildstage /usr/local/bin/audacity /usr/local/bin/audacity -COPY --from=buildstage /app/locale /usr/local/share/locale - -# ports and volumes -EXPOSE 3000 -VOLUME /config diff --git a/Dockerfile.armhf b/Dockerfile.armhf deleted file mode 100644 index 4d1104a..0000000 --- a/Dockerfile.armhf +++ /dev/null @@ -1,79 +0,0 @@ -FROM ghcr.io/linuxserver/baseimage-rdesktop-web:arm32v7-focal as buildstage - -ARG AUDACITY_VERSION - -RUN \ - echo "**** install build packages ****" && \ - apt-get update && \ - apt-get install -y \ - build-essential \ - cmake \ - curl \ - gcc \ - git \ - libasound2-dev \ - libavformat-dev \ - libgtk2.0-dev \ - libjack-jackd2-dev && \ - echo "**** build audacity ****" && \ - if [ -z ${AUDACITY_VERSION+x} ]; then \ - AUDACITY_VERSION=$(curl -sX GET "https://api.github.com/repos/audacity/audacity/releases/latest" \ - | awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^Audacity-||'); \ - fi && \ - mkdir -p /app/audacity/build && \ - curl -o \ - /tmp/audacity.tar.xz -L \ - "https://github.com/audacity/audacity/releases/download/Audacity-${AUDACITY_VERSION}/audacity-minsrc-${AUDACITY_VERSION}.tar.xz" && \ - tar xf \ - /tmp/audacity.tar.xz -C \ - /app/audacity --strip-components=1 && \ - cd /app/audacity/build && \ - cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_wxwidgets=local -Daudacity_use_ffmpeg=loaded .. && \ - make -j2 && \ - make install && \ - echo "**** cleanup ****" && \ - apt-get purge --auto-remove -y \ - build-essential \ - cmake \ - curl \ - gcc \ - git \ - libasound2-dev \ - libavformat-dev \ - libgtk2.0-dev \ - libjack-jackd2-dev && \ - mv /app/audacity/build/bin/Release/locale /app/ && \ - rm -rf /app/audacity - - -FROM ghcr.io/linuxserver/baseimage-rdesktop-web:focal - -# set version label -ARG BUILD_DATE -ARG VERSION -LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" -LABEL maintainer="aptalca" - -RUN \ - echo "**** install packages ****" && \ - apt-get update && \ - apt-get install -y \ - libasound2 \ - libavformat58 \ - libgtk2.0-0 \ - libjack-jackd2-0 \ - python3-minimal && \ - echo "**** cleanup ****" && \ - rm -rf \ - /tmp/* - -# add local files -COPY /root / -COPY --from=buildstage /usr/local/share/audacity /usr/local/share/audacity -COPY --from=buildstage /usr/local/lib/audacity /usr/local/lib/audacity -COPY --from=buildstage /usr/local/bin/audacity /usr/local/bin/audacity -COPY --from=buildstage /app/locale /usr/local/share/locale - -# ports and volumes -EXPOSE 3000 -VOLUME /config diff --git a/Jenkinsfile b/Jenkinsfile index 6285906..0d600f8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,7 +8,7 @@ pipeline { } // Input to determine if this is a package check parameters { - string(defaultValue: 'false', description: 'package check run', name: 'PACKAGE_CHECK') + string(defaultValue: 'false', description: 'package check run', name: 'PACKAGE_CHECK') } // Configuration for the variables used for this specific repo environment { @@ -16,6 +16,9 @@ pipeline { GITHUB_TOKEN=credentials('498b4638-2d02-4ce5-832d-8a57d01d97ab') GITLAB_TOKEN=credentials('b6f0f1dd-6952-4cf6-95d1-9c06380283f0') GITLAB_NAMESPACE=credentials('gitlab-namespace-id') + DOCKERHUB_TOKEN=credentials('docker-hub-ci-pat') + QUAYIO_API_TOKEN=credentials('quayio-repo-api-token') + GIT_SIGNING_KEY=credentials('484fbca6-9a4f-455e-b9e3-97ac98785f5f') BUILD_VERSION_ARG = 'AUDACITY_VERSION' LS_USER = 'linuxserver' LS_REPO = 'docker-audacity' @@ -24,24 +27,56 @@ pipeline { DEV_DOCKERHUB_IMAGE = 'lsiodev/audacity' PR_DOCKERHUB_IMAGE = 'lspipepr/audacity' DIST_IMAGE = 'ubuntu' - MULTIARCH = 'true' + MULTIARCH = 'false' CI = 'true' CI_WEB = 'true' CI_PORT = '3000' CI_SSL = 'false' CI_DELAY = '120' - CI_DOCKERENV = 'TZ=US/Pacific' - CI_AUTH = 'user:password' + CI_DOCKERENV = '' + CI_AUTH = '' CI_WEBPATH = '' } stages { + stage("Set git config"){ + steps{ + sh '''#!/bin/bash + cat ${GIT_SIGNING_KEY} > /config/.ssh/id_sign + chmod 600 /config/.ssh/id_sign + ssh-keygen -y -f /config/.ssh/id_sign > /config/.ssh/id_sign.pub + echo "Using $(ssh-keygen -lf /config/.ssh/id_sign) to sign commits" + git config --global gpg.format ssh + git config --global user.signingkey /config/.ssh/id_sign + git config --global commit.gpgsign true + ''' + } + } // Setup all the basic environment variables needed for the build stage("Set ENV Variables base"){ steps{ + echo "Running on node: ${NODE_NAME}" + sh '''#! /bin/bash + echo "Pruning builder" + docker builder prune -f --builder container || : + containers=$(docker ps -q) + if [[ -n "${containers}" ]]; then + BUILDX_CONTAINER_ID=$(docker ps -qf 'name=buildx_buildkit') + for container in ${containers}; do + if [[ "${container}" == "${BUILDX_CONTAINER_ID}" ]]; then + echo "skipping buildx container in docker stop" + else + echo "Stopping container ${container}" + docker stop ${container} + fi + done + fi + docker system prune -f --volumes || : + docker image prune -af || : + ''' script{ env.EXIT_STATUS = '' env.LS_RELEASE = sh( - script: '''docker run --rm ghcr.io/linuxserver/alexeiled-skopeo sh -c 'skopeo inspect docker://docker.io/'${DOCKERHUB_IMAGE}':latest 2>/dev/null' | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''', + script: '''docker run --rm quay.io/skopeo/stable:v1 inspect docker://ghcr.io/${LS_USER}/${CONTAINER_NAME}:latest 2>/dev/null | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''', returnStdout: true).trim() env.LS_RELEASE_NOTES = sh( script: '''cat readme-vars.yml | awk -F \\" '/date: "[0-9][0-9].[0-9][0-9].[0-9][0-9]:/ {print $4;exit;}' | sed -E ':a;N;$!ba;s/\\r{0,1}\\n/\\\\n/g' ''', @@ -52,11 +87,16 @@ pipeline { env.COMMIT_SHA = sh( script: '''git rev-parse HEAD''', returnStdout: true).trim() + env.GH_DEFAULT_BRANCH = sh( + script: '''git remote show origin | grep "HEAD branch:" | sed 's|.*HEAD branch: ||' ''', + returnStdout: true).trim() env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/' env.PULL_REQUEST = env.CHANGE_ID - env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.md ./.github/ISSUE_TEMPLATE/issue.feature.md ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/stale.yml ./.github/workflows/external_trigger.yml ./.github/workflows/package_trigger.yml' + env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker.yml ./.github/workflows/call_issues_cron.yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml' } + sh '''#! /bin/bash + echo "The default github branch detected as ${GH_DEFAULT_BRANCH}" ''' script{ env.LS_RELEASE_NUMBER = sh( script: '''echo ${LS_RELEASE} |sed 's/^.*-ls//g' ''', @@ -114,8 +154,32 @@ pipeline { steps{ script{ env.EXT_RELEASE_CLEAN = sh( - script: '''echo ${EXT_RELEASE} | sed 's/[~,%@+;:/]//g' ''', + script: '''echo ${EXT_RELEASE} | sed 's/[~,%@+;:/ ]//g' ''', returnStdout: true).trim() + + def semver = env.EXT_RELEASE_CLEAN =~ /(\d+)\.(\d+)\.(\d+)/ + if (semver.find()) { + env.SEMVER = "${semver[0][1]}.${semver[0][2]}.${semver[0][3]}" + } else { + semver = env.EXT_RELEASE_CLEAN =~ /(\d+)\.(\d+)(?:\.(\d+))?(.*)/ + if (semver.find()) { + if (semver[0][3]) { + env.SEMVER = "${semver[0][1]}.${semver[0][2]}.${semver[0][3]}" + } else if (!semver[0][3] && !semver[0][4]) { + env.SEMVER = "${semver[0][1]}.${semver[0][2]}.${(new Date()).format('YYYYMMdd')}" + } + } + } + + if (env.SEMVER != null) { + if (BRANCH_NAME != "${env.GH_DEFAULT_BRANCH}") { + env.SEMVER = "${env.SEMVER}-${BRANCH_NAME}" + } + println("SEMVER: ${env.SEMVER}") + } else { + println("No SEMVER detected") + } + } } } @@ -130,14 +194,16 @@ pipeline { env.IMAGE = env.DOCKERHUB_IMAGE env.GITHUBIMAGE = 'ghcr.io/' + env.LS_USER + '/' + env.CONTAINER_NAME env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/' + env.CONTAINER_NAME + env.QUAYIMAGE = 'quay.io/linuxserver.io/' + env.CONTAINER_NAME if (env.MULTIARCH == 'true') { - env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER } else { env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER } env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER env.META_TAG = env.EXT_RELEASE_CLEAN + '-ls' + env.LS_TAG_NUMBER env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN + env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache' } } } @@ -152,8 +218,9 @@ pipeline { env.IMAGE = env.DEV_DOCKERHUB_IMAGE env.GITHUBIMAGE = 'ghcr.io/' + env.LS_USER + '/lsiodev-' + env.CONTAINER_NAME env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lsiodev-' + env.CONTAINER_NAME + env.QUAYIMAGE = 'quay.io/linuxserver.io/lsiodev-' + env.CONTAINER_NAME if (env.MULTIARCH == 'true') { - env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA } else { env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA } @@ -161,6 +228,7 @@ pipeline { env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DEV_DOCKERHUB_IMAGE + '/tags/' + env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache' } } } @@ -174,16 +242,18 @@ pipeline { env.IMAGE = env.PR_DOCKERHUB_IMAGE env.GITHUBIMAGE = 'ghcr.io/' + env.LS_USER + '/lspipepr-' + env.CONTAINER_NAME env.GITLABIMAGE = 'registry.gitlab.com/linuxserver.io/' + env.LS_REPO + '/lspipepr-' + env.CONTAINER_NAME + env.QUAYIMAGE = 'quay.io/linuxserver.io/lspipepr-' + env.CONTAINER_NAME if (env.MULTIARCH == 'true') { - env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + '|arm32v7-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + env.CI_TAGS = 'amd64-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST + '|arm64v8-' + env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST } else { - env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + env.CI_TAGS = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST } - env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST - env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-pr-' + env.PULL_REQUEST + env.VERSION_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST + env.META_TAG = env.EXT_RELEASE_CLEAN + '-pkg-' + env.PACKAGE_TAG + '-dev-' + env.COMMIT_SHA + '-pr-' + env.PULL_REQUEST env.EXT_RELEASE_TAG = 'version-' + env.EXT_RELEASE_CLEAN env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/pull/' + env.PULL_REQUEST env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.PR_DOCKERHUB_IMAGE + '/tags/' + env.BUILDCACHE = 'docker.io/lsiodev/buildcache,registry.gitlab.com/linuxserver.io/docker-jenkins-builder/lsiodev-buildcache,ghcr.io/linuxserver/lsiodev-buildcache,quay.io/linuxserver.io/lsiodev-buildcache' } } } @@ -200,19 +270,18 @@ pipeline { script{ env.SHELLCHECK_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/shellcheck-result.xml' } - sh '''curl -sL https://raw.githubusercontent.com/linuxserver/docker-shellcheck/master/checkrun.sh | /bin/bash''' + sh '''curl -sL https://raw.githubusercontent.com/linuxserver/docker-jenkins-builder/master/checkrun.sh | /bin/bash''' sh '''#! /bin/bash - set -e - docker pull ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest docker run --rm \ - -e DESTINATION=\"${IMAGE}/${META_TAG}/shellcheck-result.xml\" \ - -e FILE_NAME="shellcheck-result.xml" \ - -e MIMETYPE="text/xml" \ - -v ${WORKSPACE}:/mnt \ - -e SECRET_KEY=\"${S3_SECRET}\" \ - -e ACCESS_KEY=\"${S3_KEY}\" \ - -t ghcr.io/linuxserver/lsiodev-spaces-file-upload:latest \ - python /upload.py''' + -v ${WORKSPACE}:/mnt \ + -e AWS_ACCESS_KEY_ID=\"${S3_KEY}\" \ + -e AWS_SECRET_ACCESS_KEY=\"${S3_SECRET}\" \ + ghcr.io/linuxserver/baseimage-alpine:3.20 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\ + apk add --no-cache python3 && \ + python3 -m venv /lsiopy && \ + pip install --no-cache-dir -U pip && \ + pip install --no-cache-dir s3cmd && \ + s3cmd put --no-preserve --acl-public -m text/xml /mnt/shellcheck-result.xml s3://ci-tests.linuxserver.io/${IMAGE}/${META_TAG}/shellcheck-result.xml" || :''' } } } @@ -230,8 +299,15 @@ pipeline { set -e TEMPDIR=$(mktemp -d) docker pull ghcr.io/linuxserver/jenkins-builder:latest - docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH=main -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest - # Stage 1 - Jenkinsfile update + # Cloned repo paths for templating: + # ${TEMPDIR}/docker-${CONTAINER_NAME}: Cloned branch main of ${LS_USER}/${LS_REPO} for running the jenkins builder on + # ${TEMPDIR}/repo/${LS_REPO}: Cloned branch main of ${LS_USER}/${LS_REPO} for commiting various templated file changes and pushing back to Github + # ${TEMPDIR}/docs/docker-documentation: Cloned docs repo for pushing docs updates to Github + # ${TEMPDIR}/unraid/docker-templates: Cloned docker-templates repo to check for logos + # ${TEMPDIR}/unraid/templates: Cloned templates repo for commiting unraid template changes and pushing back to Github + git clone --branch main --depth 1 https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/docker-${CONTAINER_NAME} + docker run --rm -v ${TEMPDIR}/docker-${CONTAINER_NAME}:/tmp -e LOCAL=true -e PUID=$(id -u) -e PGID=$(id -g) ghcr.io/linuxserver/jenkins-builder:latest + echo "Starting Stage 1 - Jenkinsfile update" if [[ "$(md5sum Jenkinsfile | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile | awk '{ print $1 }')" ]]; then mkdir -p ${TEMPDIR}/repo git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO} @@ -240,16 +316,17 @@ pipeline { cp ${TEMPDIR}/docker-${CONTAINER_NAME}/Jenkinsfile ${TEMPDIR}/repo/${LS_REPO}/ git add Jenkinsfile git commit -m 'Bot Updating Templated Files' - git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all + git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main + git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER} - echo "Updating Jenkinsfile" + echo "Updating Jenkinsfile and exiting build, new one will trigger based on commit" rm -Rf ${TEMPDIR} exit 0 else echo "Jenkinsfile is up to date." fi - # Stage 2 - Delete old templates - OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md" + echo "Starting Stage 2 - Delete old templates" + OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE/issue.bug.md .github/ISSUE_TEMPLATE/issue.feature.md .github/workflows/call_invalid_helper.yml .github/workflows/stale.yml .github/workflows/package_trigger.yml" for i in ${OLD_TEMPLATES}; do if [[ -f "${i}" ]]; then TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}" @@ -260,20 +337,49 @@ pipeline { git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO} cd ${TEMPDIR}/repo/${LS_REPO} git checkout -f main - cd ${TEMPDIR}/docker-${CONTAINER_NAME} for i in ${TEMPLATES_TO_DELETE}; do git rm "${i}" done git commit -m 'Bot Updating Templated Files' - git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all + git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main + git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER} - echo "Deleting old templates" + echo "Deleting old/deprecated templates and exiting build, new one will trigger based on commit" rm -Rf ${TEMPDIR} exit 0 else echo "No templates to delete" fi - # Stage 3 - Update templates + echo "Starting Stage 2.5 - Update init diagram" + if ! grep -q 'init_diagram:' readme-vars.yml; then + echo "Adding the key 'init_diagram' to readme-vars.yml" + sed -i '\\|^#.*changelog.*$|d' readme-vars.yml + sed -i 's|^changelogs:|# init diagram\\ninit_diagram:\\n\\n# changelog\\nchangelogs:|' readme-vars.yml + fi + mkdir -p ${TEMPDIR}/d2 + docker run --rm -v ${TEMPDIR}/d2:/output -e PUID=$(id -u) -e PGID=$(id -g) -e RAW="true" ghcr.io/linuxserver/d2-builder:latest ${CONTAINER_NAME}:latest + ls -al ${TEMPDIR}/d2 + yq -ei ".init_diagram |= load_str(\\"${TEMPDIR}/d2/${CONTAINER_NAME}-latest.d2\\")" readme-vars.yml + if [[ $(md5sum readme-vars.yml | cut -c1-8) != $(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/readme-vars.yml | cut -c1-8) ]]; then + echo "'init_diagram' has been updated. Updating repo and exiting build, new one will trigger based on commit." + mkdir -p ${TEMPDIR}/repo + git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO} + cd ${TEMPDIR}/repo/${LS_REPO} + git checkout -f main + cp ${WORKSPACE}/readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/readme-vars.yml + git add readme-vars.yml + git commit -m 'Bot Updating Templated Files' + git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main + git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main + echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER} + echo "Updating templates and exiting build, new one will trigger based on commit" + rm -Rf ${TEMPDIR} + exit 0 + else + echo "false" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER} + echo "Init diagram is unchanged" + fi + echo "Starting Stage 3 - Update templates" CURRENTHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8) cd ${TEMPDIR}/docker-${CONTAINER_NAME} NEWHASH=$(grep -hs ^ ${TEMPLATED_FILES} | md5sum | cut -c1-8) @@ -286,45 +392,104 @@ pipeline { mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/ || : + cp --parents readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/ || : cd ${TEMPDIR}/repo/${LS_REPO}/ if ! grep -q '.jenkins-external' .gitignore 2>/dev/null; then echo ".jenkins-external" >> .gitignore git add .gitignore fi - git add ${TEMPLATED_FILES} + git add readme-vars.yml ${TEMPLATED_FILES} git commit -m 'Bot Updating Templated Files' - git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all + git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main + git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main echo "true" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER} + echo "Updating templates and exiting build, new one will trigger based on commit" + rm -Rf ${TEMPDIR} + exit 0 else echo "false" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER} + echo "No templates to update" fi - mkdir -p ${TEMPDIR}/gitbook - git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/gitbook/docker-documentation - if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md) || ("$(md5sum ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')") ]]; then - cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/docker-${CONTAINER_NAME}.md ${TEMPDIR}/gitbook/docker-documentation/images/ - cd ${TEMPDIR}/gitbook/docker-documentation/ - git add images/docker-${CONTAINER_NAME}.md + echo "Starting Stage 4 - External repo updates: Docs, Unraid Template and Readme Sync to Docker Hub" + mkdir -p ${TEMPDIR}/docs + git clone --depth=1 https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/docs/docker-documentation + if [[ "${BRANCH_NAME}" == "${GH_DEFAULT_BRANCH}" ]] && [[ (! -f ${TEMPDIR}/docs/docker-documentation/docs/images/docker-${CONTAINER_NAME}.md) || ("$(md5sum ${TEMPDIR}/docs/docker-documentation/docs/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')") ]]; then + cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/docker-${CONTAINER_NAME}.md ${TEMPDIR}/docs/docker-documentation/docs/images/ + cd ${TEMPDIR}/docs/docker-documentation + GH_DOCS_DEFAULT_BRANCH=$(git remote show origin | grep "HEAD branch:" | sed 's|.*HEAD branch: ||') + git add docs/images/docker-${CONTAINER_NAME}.md + echo "Updating docs repo" git commit -m 'Bot Updating Documentation' - git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git --all + git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH} --rebase + git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH} || \ + (MAXWAIT="10" && echo "Push to docs failed, trying again in ${MAXWAIT} seconds" && \ + sleep $((RANDOM % MAXWAIT)) && \ + git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH} --rebase && \ + git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH}) + else + echo "Docs update not needed, skipping" fi mkdir -p ${TEMPDIR}/unraid - git clone https://github.com/linuxserver/docker-templates.git ${TEMPDIR}/unraid/docker-templates - git clone https://github.com/linuxserver/templates.git ${TEMPDIR}/unraid/templates + git clone --depth=1 https://github.com/linuxserver/docker-templates.git ${TEMPDIR}/unraid/docker-templates + git clone --depth=1 https://github.com/linuxserver/templates.git ${TEMPDIR}/unraid/templates if [[ -f ${TEMPDIR}/unraid/docker-templates/linuxserver.io/img/${CONTAINER_NAME}-logo.png ]]; then sed -i "s|master/linuxserver.io/img/linuxserver-ls-logo.png|master/linuxserver.io/img/${CONTAINER_NAME}-logo.png|" ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml + elif [[ -f ${TEMPDIR}/unraid/docker-templates/linuxserver.io/img/${CONTAINER_NAME}-icon.png ]]; then + sed -i "s|master/linuxserver.io/img/linuxserver-ls-logo.png|master/linuxserver.io/img/${CONTAINER_NAME}-icon.png|" ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml fi - if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml) || ("$(md5sum ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml | awk '{ print $1 }')") ]]; then + if [[ "${BRANCH_NAME}" == "${GH_DEFAULT_BRANCH}" ]] && [[ (! -f ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml) || ("$(md5sum ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml | awk '{ print $1 }')") ]]; then + echo "Updating Unraid template" cd ${TEMPDIR}/unraid/templates/ - if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then - echo "Image is on the ignore list, removing Unraid template" - git rm unraid/${CONTAINER_NAME}.xml || : - git commit -m 'Bot Removing Deprecated Unraid Template' || : + GH_TEMPLATES_DEFAULT_BRANCH=$(git remote show origin | grep "HEAD branch:" | sed 's|.*HEAD branch: ||') + if grep -wq "^${CONTAINER_NAME}$" ${TEMPDIR}/unraid/templates/unraid/ignore.list && [[ -f ${TEMPDIR}/unraid/templates/unraid/deprecated/${CONTAINER_NAME}.xml ]]; then + echo "Image is on the ignore list, and already in the deprecation folder." + elif grep -wq "^${CONTAINER_NAME}$" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then + echo "Image is on the ignore list, marking Unraid template as deprecated" + cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/ + git add -u unraid/${CONTAINER_NAME}.xml + git mv unraid/${CONTAINER_NAME}.xml unraid/deprecated/${CONTAINER_NAME}.xml || : + git commit -m 'Bot Moving Deprecated Unraid Template' || : else cp ${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/ git add unraid/${CONTAINER_NAME}.xml git commit -m 'Bot Updating Unraid Template' fi - git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/templates.git --all + git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/templates.git ${GH_TEMPLATES_DEFAULT_BRANCH} --rebase + git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/templates.git ${GH_TEMPLATES_DEFAULT_BRANCH} || \ + (MAXWAIT="10" && echo "Push to unraid templates failed, trying again in ${MAXWAIT} seconds" && \ + sleep $((RANDOM % MAXWAIT)) && \ + git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/templates.git ${GH_TEMPLATES_DEFAULT_BRANCH} --rebase && \ + git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/templates.git ${GH_TEMPLATES_DEFAULT_BRANCH}) + else + echo "No updates to Unraid template needed, skipping" + fi + if [[ "${BRANCH_NAME}" == "${GH_DEFAULT_BRANCH}" ]]; then + if [[ $(cat ${TEMPDIR}/docker-${CONTAINER_NAME}/README.md | wc -m) -gt 25000 ]]; then + echo "Readme is longer than 25,000 characters. Syncing the lite version to Docker Hub" + DH_README_SYNC_PATH="${TEMPDIR}/docker-${CONTAINER_NAME}/.jenkins-external/README.lite" + else + echo "Syncing readme to Docker Hub" + DH_README_SYNC_PATH="${TEMPDIR}/docker-${CONTAINER_NAME}/README.md" + fi + if curl -s https://hub.docker.com/v2/namespaces/${DOCKERHUB_IMAGE%%/*}/repositories/${DOCKERHUB_IMAGE##*/}/tags | jq -r '.message' | grep -q 404; then + echo "Docker Hub endpoint doesn't exist. Creating endpoint first." + DH_TOKEN=$(curl -d '{"username":"linuxserverci", "password":"'${DOCKERHUB_TOKEN}'"}' -H "Content-Type: application/json" -X POST https://hub.docker.com/v2/users/login | jq -r '.token') + curl -s \ + -H "Authorization: JWT ${DH_TOKEN}" \ + -H "Content-Type: application/json" \ + -X POST \ + -d '{"name":"'${DOCKERHUB_IMAGE##*/}'", "namespace":"'${DOCKERHUB_IMAGE%%/*}'"}' \ + https://hub.docker.com/v2/repositories/ || : + fi + DH_TOKEN=$(curl -d '{"username":"linuxserverci", "password":"'${DOCKERHUB_TOKEN}'"}' -H "Content-Type: application/json" -X POST https://hub.docker.com/v2/users/login | jq -r '.token') + curl -s \ + -H "Authorization: JWT ${DH_TOKEN}" \ + -H "Content-Type: application/json" \ + -X PATCH \ + -d "{\\"full_description\\":$(jq -Rsa . ${DH_README_SYNC_PATH})}" \ + https://hub.docker.com/v2/repositories/${DOCKERHUB_IMAGE} || : + else + echo "Not the default Github branch. Skipping readme sync to Docker Hub." fi rm -Rf ${TEMPDIR}''' script{ @@ -350,24 +515,48 @@ pipeline { } } } + // If this is a main build check the S6 service file perms + stage("Check S6 Service file Permissions"){ + when { + branch "main" + environment name: 'CHANGE_ID', value: '' + environment name: 'EXIT_STATUS', value: '' + } + steps { + script{ + sh '''#! /bin/bash + WRONG_PERM=$(find ./ -path "./.git" -prune -o \\( -name "run" -o -name "finish" -o -name "check" \\) -not -perm -u=x,g=x,o=x -print) + if [[ -n "${WRONG_PERM}" ]]; then + echo "The following S6 service files are missing the executable bit; canceling the faulty build: ${WRONG_PERM}" + exit 1 + else + echo "S6 service file perms look good." + fi ''' + } + } + } /* ####################### - GitLab Mirroring + GitLab Mirroring and Quay.io Repo Visibility ####################### */ - // Ping into Gitlab to mirror this repo and have a registry endpoint - stage("GitLab Mirror"){ + // Ping into Gitlab to mirror this repo and have a registry endpoint & mark this repo on Quay.io as public + stage("GitLab Mirror and Quay.io Visibility"){ when { environment name: 'EXIT_STATUS', value: '' } steps{ sh '''curl -H "Content-Type: application/json" -H "Private-Token: ${GITLAB_TOKEN}" -X POST https://gitlab.com/api/v4/projects \ - -d '{"namespace_id":'${GITLAB_NAMESPACE}',\ - "name":"'${LS_REPO}'", - "mirror":true,\ - "import_url":"https://github.com/linuxserver/'${LS_REPO}'.git",\ - "issues_access_level":"disabled",\ - "merge_requests_access_level":"disabled",\ - "repository_access_level":"enabled",\ - "visibility":"public"}' ''' + -d '{"namespace_id":'${GITLAB_NAMESPACE}',\ + "name":"'${LS_REPO}'", + "mirror":true,\ + "import_url":"https://github.com/linuxserver/'${LS_REPO}'.git",\ + "issues_access_level":"disabled",\ + "merge_requests_access_level":"disabled",\ + "repository_access_level":"enabled",\ + "visibility":"public"}' ''' + sh '''curl -H "Private-Token: ${GITLAB_TOKEN}" -X PUT "https://gitlab.com/api/v4/projects/Linuxserver.io%2F${LS_REPO}" \ + -d "mirror=true&import_url=https://github.com/linuxserver/${LS_REPO}.git" ''' + sh '''curl -H "Content-Type: application/json" -H "Authorization: Bearer ${QUAYIO_API_TOKEN}" -X POST "https://quay.io/api/v1/repository${QUAYIMAGE/quay.io/}/changevisibility" \ + -d '{"visibility":"public"}' ||: ''' } } /* ############### @@ -376,12 +565,15 @@ pipeline { // Build Docker container for push to LS Repo stage('Build-Single') { when { - environment name: 'MULTIARCH', value: 'false' + expression { + env.MULTIARCH == 'false' || params.PACKAGE_CHECK == 'true' + } environment name: 'EXIT_STATUS', value: '' } steps { echo "Running on node: ${NODE_NAME}" - sh "docker build \ + sh "sed -r -i 's|(^FROM .*)|\\1\\n\\nENV LSIO_FIRST_PARTY=true|g' Dockerfile" + sh "docker buildx build \ --label \"org.opencontainers.image.created=${GITHUB_DATE}\" \ --label \"org.opencontainers.image.authors=linuxserver.io\" \ --label \"org.opencontainers.image.url=https://github.com/linuxserver/docker-audacity/packages\" \ @@ -394,21 +586,60 @@ pipeline { --label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \ --label \"org.opencontainers.image.title=Audacity\" \ --label \"org.opencontainers.image.description=[Audacity](https://www.audacityteam.org/) is an easy-to-use, multi-track audio editor and recorder. Developed by a group of volunteers as open source.\" \ - --no-cache --pull -t ${IMAGE}:${META_TAG} \ + --no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \ + --provenance=true --sbom=true --builder=container --load \ --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." + sh '''#! /bin/bash + set -e + IFS=',' read -ra CACHE <<< "$BUILDCACHE" + for i in "${CACHE[@]}"; do + docker tag ${IMAGE}:${META_TAG} ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} + done + ''' + withCredentials([ + [ + $class: 'UsernamePasswordMultiBinding', + credentialsId: 'Quay.io-Robot', + usernameVariable: 'QUAYUSER', + passwordVariable: 'QUAYPASS' + ] + ]) { + retry_backoff(5,5) { + sh '''#! /bin/bash + set -e + echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --password-stdin + echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin + echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin + echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin + if [[ "${PACKAGE_CHECK}" != "true" ]]; then + IFS=',' read -ra CACHE <<< "$BUILDCACHE" + for i in "${CACHE[@]}"; do + docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} & + done + for p in $(jobs -p); do + wait "$p" || { echo "job $p failed" >&2; exit 1; } + done + fi + ''' + } + } } } // Build MultiArch Docker containers for push to LS Repo stage('Build-Multi') { when { - environment name: 'MULTIARCH', value: 'true' + allOf { + environment name: 'MULTIARCH', value: 'true' + expression { params.PACKAGE_CHECK == 'false' } + } environment name: 'EXIT_STATUS', value: '' } parallel { stage('Build X86') { steps { echo "Running on node: ${NODE_NAME}" - sh "docker build \ + sh "sed -r -i 's|(^FROM .*)|\\1\\n\\nENV LSIO_FIRST_PARTY=true|g' Dockerfile" + sh "docker buildx build \ --label \"org.opencontainers.image.created=${GITHUB_DATE}\" \ --label \"org.opencontainers.image.authors=linuxserver.io\" \ --label \"org.opencontainers.image.url=https://github.com/linuxserver/docker-audacity/packages\" \ @@ -421,42 +652,43 @@ pipeline { --label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \ --label \"org.opencontainers.image.title=Audacity\" \ --label \"org.opencontainers.image.description=[Audacity](https://www.audacityteam.org/) is an easy-to-use, multi-track audio editor and recorder. Developed by a group of volunteers as open source.\" \ - --no-cache --pull -t ${IMAGE}:amd64-${META_TAG} \ + --no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \ + --provenance=true --sbom=true --builder=container --load \ --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." - } - } - stage('Build ARMHF') { - agent { - label 'ARMHF' - } - steps { - echo "Running on node: ${NODE_NAME}" - echo 'Logging into Github' sh '''#! /bin/bash - echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin + set -e + IFS=',' read -ra CACHE <<< "$BUILDCACHE" + for i in "${CACHE[@]}"; do + docker tag ${IMAGE}:amd64-${META_TAG} ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} + done ''' - sh "docker build \ - --label \"org.opencontainers.image.created=${GITHUB_DATE}\" \ - --label \"org.opencontainers.image.authors=linuxserver.io\" \ - --label \"org.opencontainers.image.url=https://github.com/linuxserver/docker-audacity/packages\" \ - --label \"org.opencontainers.image.documentation=https://docs.linuxserver.io/images/docker-audacity\" \ - --label \"org.opencontainers.image.source=https://github.com/linuxserver/docker-audacity\" \ - --label \"org.opencontainers.image.version=${EXT_RELEASE_CLEAN}-ls${LS_TAG_NUMBER}\" \ - --label \"org.opencontainers.image.revision=${COMMIT_SHA}\" \ - --label \"org.opencontainers.image.vendor=linuxserver.io\" \ - --label \"org.opencontainers.image.licenses=GPL-3.0-only\" \ - --label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \ - --label \"org.opencontainers.image.title=Audacity\" \ - --label \"org.opencontainers.image.description=[Audacity](https://www.audacityteam.org/) is an easy-to-use, multi-track audio editor and recorder. Developed by a group of volunteers as open source.\" \ - --no-cache --pull -f Dockerfile.armhf -t ${IMAGE}:arm32v7-${META_TAG} \ - --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." - sh "docker tag ${IMAGE}:arm32v7-${META_TAG} ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}" - retry(5) { - sh "docker push ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER}" + withCredentials([ + [ + $class: 'UsernamePasswordMultiBinding', + credentialsId: 'Quay.io-Robot', + usernameVariable: 'QUAYUSER', + passwordVariable: 'QUAYPASS' + ] + ]) { + retry_backoff(5,5) { + sh '''#! /bin/bash + set -e + echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --password-stdin + echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin + echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin + echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin + if [[ "${PACKAGE_CHECK}" != "true" ]]; then + IFS=',' read -ra CACHE <<< "$BUILDCACHE" + for i in "${CACHE[@]}"; do + docker push ${i}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} & + done + for p in $(jobs -p); do + wait "$p" || { echo "job $p failed" >&2; exit 1; } + done + fi + ''' + } } - sh '''docker rmi \ - ${IMAGE}:arm32v7-${META_TAG} \ - ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} || :''' } } stage('Build ARM64') { @@ -465,11 +697,8 @@ pipeline { } steps { echo "Running on node: ${NODE_NAME}" - echo 'Logging into Github' - sh '''#! /bin/bash - echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin - ''' - sh "docker build \ + sh "sed -r -i 's|(^FROM .*)|\\1\\n\\nENV LSIO_FIRST_PARTY=true|g' Dockerfile.aarch64" + sh "docker buildx build \ --label \"org.opencontainers.image.created=${GITHUB_DATE}\" \ --label \"org.opencontainers.image.authors=linuxserver.io\" \ --label \"org.opencontainers.image.url=https://github.com/linuxserver/docker-audacity/packages\" \ @@ -482,15 +711,51 @@ pipeline { --label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \ --label \"org.opencontainers.image.title=Audacity\" \ --label \"org.opencontainers.image.description=[Audacity](https://www.audacityteam.org/) is an easy-to-use, multi-track audio editor and recorder. Developed by a group of volunteers as open source.\" \ - --no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} \ + --no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \ + --provenance=true --sbom=true --builder=container --load \ --build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ." - sh "docker tag ${IMAGE}:arm64v8-${META_TAG} ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}" - retry(5) { - sh "docker push ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER}" + sh '''#! /bin/bash + set -e + IFS=',' read -ra CACHE <<< "$BUILDCACHE" + for i in "${CACHE[@]}"; do + docker tag ${IMAGE}:arm64v8-${META_TAG} ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} + done + ''' + withCredentials([ + [ + $class: 'UsernamePasswordMultiBinding', + credentialsId: 'Quay.io-Robot', + usernameVariable: 'QUAYUSER', + passwordVariable: 'QUAYPASS' + ] + ]) { + retry_backoff(5,5) { + sh '''#! /bin/bash + set -e + echo $DOCKERHUB_TOKEN | docker login -u linuxserverci --password-stdin + echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin + echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin + echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin + if [[ "${PACKAGE_CHECK}" != "true" ]]; then + IFS=',' read -ra CACHE <<< "$BUILDCACHE" + for i in "${CACHE[@]}"; do + docker push ${i}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} & + done + for p in $(jobs -p); do + wait "$p" || { echo "job $p failed" >&2; exit 1; } + done + fi + ''' + } } - sh '''docker rmi \ - ${IMAGE}:arm64v8-${META_TAG} \ - ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || :''' + sh '''#! /bin/bash + containers=$(docker ps -aq) + if [[ -n "${containers}" ]]; then + docker stop ${containers} + fi + docker system prune -f --volumes || : + docker image prune -af || : + ''' } } } @@ -506,22 +771,17 @@ pipeline { sh '''#! /bin/bash set -e TEMPDIR=$(mktemp -d) - if [ "${MULTIARCH}" == "true" ]; then + if [ "${MULTIARCH}" == "true" ] && [ "${PACKAGE_CHECK}" != "true" ]; then LOCAL_CONTAINER=${IMAGE}:amd64-${META_TAG} else LOCAL_CONTAINER=${IMAGE}:${META_TAG} fi - if [ "${DIST_IMAGE}" == "alpine" ]; then - docker run --rm --entrypoint '/bin/sh' -v ${TEMPDIR}:/tmp ${LOCAL_CONTAINER} -c '\ - apk info -v > /tmp/package_versions.txt && \ - sort -o /tmp/package_versions.txt /tmp/package_versions.txt && \ - chmod 777 /tmp/package_versions.txt' - elif [ "${DIST_IMAGE}" == "ubuntu" ]; then - docker run --rm --entrypoint '/bin/sh' -v ${TEMPDIR}:/tmp ${LOCAL_CONTAINER} -c '\ - apt list -qq --installed | sed "s#/.*now ##g" | cut -d" " -f1 > /tmp/package_versions.txt && \ - sort -o /tmp/package_versions.txt /tmp/package_versions.txt && \ - chmod 777 /tmp/package_versions.txt' - fi + touch ${TEMPDIR}/package_versions.txt + docker run --rm \ + -v /var/run/docker.sock:/var/run/docker.sock:ro \ + -v ${TEMPDIR}:/tmp \ + ghcr.io/anchore/syft:latest \ + ${LOCAL_CONTAINER} -o table=/tmp/package_versions.txt NEW_PACKAGE_TAG=$(md5sum ${TEMPDIR}/package_versions.txt | cut -c1-8 ) echo "Package tag sha from current packages in buit container is ${NEW_PACKAGE_TAG} comparing to old ${PACKAGE_TAG} from github" if [ "${NEW_PACKAGE_TAG}" != "${PACKAGE_TAG}" ]; then @@ -532,7 +792,8 @@ pipeline { wait git add package_versions.txt git commit -m 'Bot Updating Package Versions' - git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git --all + git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main + git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git main echo "true" > /tmp/packages-${COMMIT_SHA}-${BUILD_NUMBER} echo "Package tag updated, stopping build process" else @@ -556,13 +817,6 @@ pipeline { environment name: 'EXIT_STATUS', value: '' } steps { - sh '''#! /bin/bash - echo "Packages were updated. Cleaning up the image and exiting." - if [ "${MULTIARCH}" == "true" ]; then - docker rmi ${IMAGE}:amd64-${META_TAG} - else - docker rmi ${IMAGE}:${META_TAG} - fi''' script{ env.EXIT_STATUS = 'ABORTED' } @@ -580,13 +834,6 @@ pipeline { } } steps { - sh '''#! /bin/bash - echo "There are no package updates. Cleaning up the image and exiting." - if [ "${MULTIARCH}" == "true" ]; then - docker rmi ${IMAGE}:amd64-${META_TAG} - else - docker rmi ${IMAGE}:${META_TAG} - fi''' script{ env.EXIT_STATUS = 'ABORTED' } @@ -608,23 +855,31 @@ pipeline { ]) { script{ env.CI_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/index.html' + env.CI_JSON_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/report.json' } sh '''#! /bin/bash set -e + if grep -q 'docker-baseimage' <<< "${LS_REPO}"; then + echo "Detected baseimage, setting LSIO_FIRST_PARTY=true" + if [ -n "${CI_DOCKERENV}" ]; then + CI_DOCKERENV="LSIO_FIRST_PARTY=true|${CI_DOCKERENV}" + else + CI_DOCKERENV="LSIO_FIRST_PARTY=true" + fi + fi docker pull ghcr.io/linuxserver/ci:latest if [ "${MULTIARCH}" == "true" ]; then - docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} - docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} - docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm32v7-${META_TAG} + docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} --platform=arm64 docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm64v8-${META_TAG} fi docker run --rm \ --shm-size=1gb \ -v /var/run/docker.sock:/var/run/docker.sock \ -e IMAGE=\"${IMAGE}\" \ - -e DELAY_START=\"${CI_DELAY}\" \ + -e DOCKER_LOGS_TIMEOUT=\"${CI_DELAY}\" \ -e TAGS=\"${CI_TAGS}\" \ -e META_TAG=\"${META_TAG}\" \ + -e RELEASE_TAG=\"latest\" \ -e PORT=\"${CI_PORT}\" \ -e SSL=\"${CI_SSL}\" \ -e BASE=\"${DIST_IMAGE}\" \ @@ -634,10 +889,9 @@ pipeline { -e WEB_SCREENSHOT=\"${CI_WEB}\" \ -e WEB_AUTH=\"${CI_AUTH}\" \ -e WEB_PATH=\"${CI_WEBPATH}\" \ - -e DO_REGION="ams3" \ - -e DO_BUCKET="lsio-ci" \ + -e NODE_NAME=\"${NODE_NAME}\" \ -t ghcr.io/linuxserver/ci:latest \ - python /ci/ci.py''' + python3 test_build.py''' } } } @@ -651,38 +905,23 @@ pipeline { environment name: 'EXIT_STATUS', value: '' } steps { - withCredentials([ - [ - $class: 'UsernamePasswordMultiBinding', - credentialsId: '3f9ba4d5-100d-45b0-a3c4-633fd6061207', - usernameVariable: 'DOCKERUSER', - passwordVariable: 'DOCKERPASS' - ] - ]) { - retry(5) { - sh '''#! /bin/bash - set -e - echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin - echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin - echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin - for PUSHIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do - docker tag ${IMAGE}:${META_TAG} ${PUSHIMAGE}:${META_TAG} - docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:latest - docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:${EXT_RELEASE_TAG} - docker push ${PUSHIMAGE}:latest - docker push ${PUSHIMAGE}:${META_TAG} - docker push ${PUSHIMAGE}:${EXT_RELEASE_TAG} - done - ''' - } + retry_backoff(5,5) { sh '''#! /bin/bash - for DELETEIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do - docker rmi \ - ${DELETEIMAGE}:${META_TAG} \ - ${DELETEIMAGE}:${EXT_RELEASE_TAG} \ - ${DELETEIMAGE}:latest || : + set -e + for PUSHIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do + [[ ${PUSHIMAGE%%/*} =~ \\. ]] && PUSHIMAGEPLUS="${PUSHIMAGE}" || PUSHIMAGEPLUS="docker.io/${PUSHIMAGE}" + IFS=',' read -ra CACHE <<< "$BUILDCACHE" + for i in "${CACHE[@]}"; do + if [[ "${PUSHIMAGEPLUS}" == "$(cut -d "/" -f1 <<< ${i})"* ]]; then + CACHEIMAGE=${i} + fi + done + docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${META_TAG} -t ${PUSHIMAGE}:latest -t ${PUSHIMAGE}:${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} + if [ -n "${SEMVER}" ]; then + docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} + fi done - ''' + ''' } } } @@ -693,80 +932,34 @@ pipeline { environment name: 'EXIT_STATUS', value: '' } steps { - withCredentials([ - [ - $class: 'UsernamePasswordMultiBinding', - credentialsId: '3f9ba4d5-100d-45b0-a3c4-633fd6061207', - usernameVariable: 'DOCKERUSER', - passwordVariable: 'DOCKERPASS' - ] - ]) { - retry(5) { - sh '''#! /bin/bash - set -e - echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin - echo $GITHUB_TOKEN | docker login ghcr.io -u LinuxServer-CI --password-stdin - echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin - if [ "${CI}" == "false" ]; then - docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} - docker pull ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} - docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm32v7-${META_TAG} - docker tag ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} ${IMAGE}:arm64v8-${META_TAG} - fi - for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}"; do - docker tag ${IMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} - docker tag ${IMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG} - docker tag ${IMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} - docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-latest - docker tag ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-latest - docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-latest - docker tag ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} - docker tag ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG} - docker tag ${MANIFESTIMAGE}:arm64v8-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} - docker push ${MANIFESTIMAGE}:amd64-${META_TAG} - docker push ${MANIFESTIMAGE}:arm32v7-${META_TAG} - docker push ${MANIFESTIMAGE}:arm64v8-${META_TAG} - docker push ${MANIFESTIMAGE}:amd64-latest - docker push ${MANIFESTIMAGE}:arm32v7-latest - docker push ${MANIFESTIMAGE}:arm64v8-latest - docker push ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} - docker push ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG} - docker push ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} - docker manifest push --purge ${MANIFESTIMAGE}:latest || : - docker manifest create ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm32v7-latest ${MANIFESTIMAGE}:arm64v8-latest - docker manifest annotate ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:arm32v7-latest --os linux --arch arm - docker manifest annotate ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:arm64v8-latest --os linux --arch arm64 --variant v8 - docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG} || : - docker manifest create ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} - docker manifest annotate ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:arm32v7-${META_TAG} --os linux --arch arm - docker manifest annotate ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} --os linux --arch arm64 --variant v8 - docker manifest push --purge ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} || : - docker manifest create ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} - docker manifest annotate ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm32v7-${EXT_RELEASE_TAG} --os linux --arch arm - docker manifest annotate ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} --os linux --arch arm64 --variant v8 - docker manifest push --purge ${MANIFESTIMAGE}:latest - docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG} - docker manifest push --purge ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} - done - ''' - } + retry_backoff(5,5) { sh '''#! /bin/bash - for DELETEIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do - docker rmi \ - ${DELETEIMAGE}:amd64-${META_TAG} \ - ${DELETEIMAGE}:amd64-latest \ - ${DELETEIMAGE}:amd64-${EXT_RELEASE_TAG} \ - ${DELETEIMAGE}:arm32v7-${META_TAG} \ - ${DELETEIMAGE}:arm32v7-latest \ - ${DELETEIMAGE}:arm32v7-${EXT_RELEASE_TAG} \ - ${DELETEIMAGE}:arm64v8-${META_TAG} \ - ${DELETEIMAGE}:arm64v8-latest \ - ${DELETEIMAGE}:arm64v8-${EXT_RELEASE_TAG} || : + set -e + for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do + [[ ${MANIFESTIMAGE%%/*} =~ \\. ]] && MANIFESTIMAGEPLUS="${MANIFESTIMAGE}" || MANIFESTIMAGEPLUS="docker.io/${MANIFESTIMAGE}" + IFS=',' read -ra CACHE <<< "$BUILDCACHE" + for i in "${CACHE[@]}"; do + if [[ "${MANIFESTIMAGEPLUS}" == "$(cut -d "/" -f1 <<< ${i})"* ]]; then + CACHEIMAGE=${i} + fi + done + docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${META_TAG} -t ${MANIFESTIMAGE}:amd64-latest -t ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} + docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${META_TAG} -t ${MANIFESTIMAGE}:arm64v8-latest -t ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} + if [ -n "${SEMVER}" ]; then + docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:amd64-${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER} + docker buildx imagetools create --prefer-index=false -t ${MANIFESTIMAGE}:arm64v8-${SEMVER} ${CACHEIMAGE}:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} + fi done - docker rmi \ - ghcr.io/linuxserver/lsiodev-buildcache:arm32v7-${COMMIT_SHA}-${BUILD_NUMBER} \ - ghcr.io/linuxserver/lsiodev-buildcache:arm64v8-${COMMIT_SHA}-${BUILD_NUMBER} || : - ''' + for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do + docker buildx imagetools create -t ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest + docker buildx imagetools create -t ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG} + + docker buildx imagetools create -t ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG} + if [ -n "${SEMVER}" ]; then + docker buildx imagetools create -t ${MANIFESTIMAGE}:${SEMVER} ${MANIFESTIMAGE}:amd64-${SEMVER} ${MANIFESTIMAGE}:arm64v8-${SEMVER} + fi + done + ''' } } } @@ -787,62 +980,130 @@ pipeline { "object": "'${COMMIT_SHA}'",\ "message": "Tagging Release '${EXT_RELEASE_CLEAN}'-ls'${LS_TAG_NUMBER}' to main",\ "type": "commit",\ - "tagger": {"name": "LinuxServer Jenkins","email": "jenkins@linuxserver.io","date": "'${GITHUB_DATE}'"}}' ''' + "tagger": {"name": "LinuxServer-CI","email": "ci@linuxserver.io","date": "'${GITHUB_DATE}'"}}' ''' echo "Pushing New release for Tag" sh '''#! /bin/bash echo "Updating to ${EXT_RELEASE_CLEAN}" > releasebody.json echo '{"tag_name":"'${META_TAG}'",\ "target_commitish": "main",\ "name": "'${META_TAG}'",\ - "body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start + "body": "**CI Report:**\\n\\n'${CI_URL:-N/A}'\\n\\n**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start printf '","draft": false,"prerelease": false}' >> releasebody.json paste -d'\\0' start releasebody.json > releasebody.json.done curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done''' } } - // Use helper container to sync the current README on master to the dockerhub endpoint - stage('Sync-README') { + // Add protection to the release branch + stage('Github-Release-Branch-Protection') { when { + branch "main" environment name: 'CHANGE_ID', value: '' environment name: 'EXIT_STATUS', value: '' } steps { - withCredentials([ - [ - $class: 'UsernamePasswordMultiBinding', - credentialsId: '3f9ba4d5-100d-45b0-a3c4-633fd6061207', - usernameVariable: 'DOCKERUSER', - passwordVariable: 'DOCKERPASS' - ] - ]) { - sh '''#! /bin/bash - set -e - TEMPDIR=$(mktemp -d) - docker pull ghcr.io/linuxserver/jenkins-builder:latest - docker run --rm -e CONTAINER_NAME=${CONTAINER_NAME} -e GITHUB_BRANCH="${BRANCH_NAME}" -v ${TEMPDIR}:/ansible/jenkins ghcr.io/linuxserver/jenkins-builder:latest - docker pull ghcr.io/linuxserver/readme-sync - docker run --rm=true \ - -e DOCKERHUB_USERNAME=$DOCKERUSER \ - -e DOCKERHUB_PASSWORD=$DOCKERPASS \ - -e GIT_REPOSITORY=${LS_USER}/${LS_REPO} \ - -e DOCKER_REPOSITORY=${IMAGE} \ - -e GIT_BRANCH=master \ - -v ${TEMPDIR}/docker-${CONTAINER_NAME}:/mnt \ - ghcr.io/linuxserver/readme-sync bash -c 'node sync' - rm -Rf ${TEMPDIR} ''' - } + echo "Setting up protection for release branch main" + sh '''#! /bin/bash + curl -H "Authorization: token ${GITHUB_TOKEN}" -X PUT https://api.github.com/repos/${LS_USER}/${LS_REPO}/branches/main/protection \ + -d $(jq -c . << EOF + { + "required_status_checks": null, + "enforce_admins": false, + "required_pull_request_reviews": { + "dismiss_stale_reviews": false, + "require_code_owner_reviews": false, + "require_last_push_approval": false, + "required_approving_review_count": 1 + }, + "restrictions": null, + "required_linear_history": false, + "allow_force_pushes": false, + "allow_deletions": false, + "block_creations": false, + "required_conversation_resolution": true, + "lock_branch": false, + "allow_fork_syncing": false, + "required_signatures": false + } +EOF + ) ''' } } // If this is a Pull request send the CI link as a comment on it stage('Pull Request Comment') { when { not {environment name: 'CHANGE_ID', value: ''} - environment name: 'CI', value: 'true' environment name: 'EXIT_STATUS', value: '' } steps { - sh '''curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/issues/${PULL_REQUEST}/comments \ - -d '{"body": "I am a bot, here are the test results for this PR: \\n'${CI_URL}' \\n'${SHELLCHECK_URL}'"}' ''' + sh '''#! /bin/bash + # Function to retrieve JSON data from URL + get_json() { + local url="$1" + local response=$(curl -s "$url") + if [ $? -ne 0 ]; then + echo "Failed to retrieve JSON data from $url" + return 1 + fi + local json=$(echo "$response" | jq .) + if [ $? -ne 0 ]; then + echo "Failed to parse JSON data from $url" + return 1 + fi + echo "$json" + } + + build_table() { + local data="$1" + + # Get the keys in the JSON data + local keys=$(echo "$data" | jq -r 'to_entries | map(.key) | .[]') + + # Check if keys are empty + if [ -z "$keys" ]; then + echo "JSON report data does not contain any keys or the report does not exist." + return 1 + fi + + # Build table header + local header="| Tag | Passed |\\n| --- | --- |\\n" + + # Loop through the JSON data to build the table rows + local rows="" + for build in $keys; do + local status=$(echo "$data" | jq -r ".[\\"$build\\"].test_success") + if [ "$status" = "true" ]; then + status="✅" + else + status="❌" + fi + local row="| "$build" | "$status" |\\n" + rows="${rows}${row}" + done + + local table="${header}${rows}" + local escaped_table=$(echo "$table" | sed 's/\"/\\\\"/g') + echo "$escaped_table" + } + + if [[ "${CI}" = "true" ]]; then + # Retrieve JSON data from URL + data=$(get_json "$CI_JSON_URL") + # Create table from JSON data + table=$(build_table "$data") + echo -e "$table" + + curl -X POST -H "Authorization: token $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + "https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments" \ + -d "{\\"body\\": \\"I am a bot, here are the test results for this PR: \\n${CI_URL}\\n${SHELLCHECK_URL}\\n${table}\\"}" + else + curl -X POST -H "Authorization: token $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github.v3+json" \ + "https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments" \ + -d "{\\"body\\": \\"I am a bot, here is the pushed image/manifest for this PR: \\n\\n\\`${GITHUBIMAGE}:${META_TAG}\\`\\"}" + fi + ''' + } } } @@ -851,24 +1112,94 @@ pipeline { ###################### */ post { always { + sh '''#!/bin/bash + rm -rf /config/.ssh/id_sign + rm -rf /config/.ssh/id_sign.pub + git config --global --unset gpg.format + git config --global --unset user.signingkey + git config --global --unset commit.gpgsign + ''' script{ + env.JOB_DATE = sh( + script: '''date '+%Y-%m-%dT%H:%M:%S%:z' ''', + returnStdout: true).trim() if (env.EXIT_STATUS == "ABORTED"){ sh 'echo "build aborted"' - } - else if (currentBuild.currentResult == "SUCCESS"){ - sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins-ci.org/download/attachments/2916393/headshot.png","embeds": [{"color": 1681177,\ - "description": "**Build:** '${BUILD_NUMBER}'\\n**CI Results:** '${CI_URL}'\\n**ShellCheck Results:** '${SHELLCHECK_URL}'\\n**Status:** Success\\n**Job:** '${RUN_DISPLAY_URL}'\\n**Change:** '${CODE_URL}'\\n**External Release:**: '${RELEASE_LINK}'\\n**DockerHub:** '${DOCKERHUB_LINK}'\\n"}],\ - "username": "Jenkins"}' ${BUILDS_DISCORD} ''' - } - else { - sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://wiki.jenkins-ci.org/download/attachments/2916393/headshot.png","embeds": [{"color": 16711680,\ - "description": "**Build:** '${BUILD_NUMBER}'\\n**CI Results:** '${CI_URL}'\\n**ShellCheck Results:** '${SHELLCHECK_URL}'\\n**Status:** failure\\n**Job:** '${RUN_DISPLAY_URL}'\\n**Change:** '${CODE_URL}'\\n**External Release:**: '${RELEASE_LINK}'\\n**DockerHub:** '${DOCKERHUB_LINK}'\\n"}],\ + }else{ + if (currentBuild.currentResult == "SUCCESS"){ + if (env.GITHUBIMAGE =~ /lspipepr/){ + env.JOB_WEBHOOK_STATUS='Success' + env.JOB_WEBHOOK_COLOUR=3957028 + env.JOB_WEBHOOK_FOOTER='PR Build' + }else if (env.GITHUBIMAGE =~ /lsiodev/){ + env.JOB_WEBHOOK_STATUS='Success' + env.JOB_WEBHOOK_COLOUR=3957028 + env.JOB_WEBHOOK_FOOTER='Dev Build' + }else{ + env.JOB_WEBHOOK_STATUS='Success' + env.JOB_WEBHOOK_COLOUR=1681177 + env.JOB_WEBHOOK_FOOTER='Live Build' + } + }else{ + if (env.GITHUBIMAGE =~ /lspipepr/){ + env.JOB_WEBHOOK_STATUS='Failure' + env.JOB_WEBHOOK_COLOUR=12669523 + env.JOB_WEBHOOK_FOOTER='PR Build' + }else if (env.GITHUBIMAGE =~ /lsiodev/){ + env.JOB_WEBHOOK_STATUS='Failure' + env.JOB_WEBHOOK_COLOUR=12669523 + env.JOB_WEBHOOK_FOOTER='Dev Build' + }else{ + env.JOB_WEBHOOK_STATUS='Failure' + env.JOB_WEBHOOK_COLOUR=16711680 + env.JOB_WEBHOOK_FOOTER='Live Build' + } + } + sh ''' curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/jenkins-avatar.png","embeds": [{"'color'": '${JOB_WEBHOOK_COLOUR}',\ + "footer": {"text" : "'"${JOB_WEBHOOK_FOOTER}"'"},\ + "timestamp": "'${JOB_DATE}'",\ + "description": "**Build:** '${BUILD_NUMBER}'\\n**CI Results:** '${CI_URL}'\\n**ShellCheck Results:** '${SHELLCHECK_URL}'\\n**Status:** '${JOB_WEBHOOK_STATUS}'\\n**Job:** '${RUN_DISPLAY_URL}'\\n**Change:** '${CODE_URL}'\\n**External Release:**: '${RELEASE_LINK}'\\n**DockerHub:** '${DOCKERHUB_LINK}'\\n"}],\ "username": "Jenkins"}' ${BUILDS_DISCORD} ''' } } } cleanup { + sh '''#! /bin/bash + echo "Pruning builder!!" + docker builder prune -f --builder container || : + containers=$(docker ps -q) + if [[ -n "${containers}" ]]; then + BUILDX_CONTAINER_ID=$(docker ps -qf 'name=buildx_buildkit') + for container in ${containers}; do + if [[ "${container}" == "${BUILDX_CONTAINER_ID}" ]]; then + echo "skipping buildx container in docker stop" + else + echo "Stopping container ${container}" + docker stop ${container} + fi + done + fi + docker system prune -f --volumes || : + docker image prune -af || : + ''' cleanWs() } } } + +def retry_backoff(int max_attempts, int power_base, Closure c) { + int n = 0 + while (n < max_attempts) { + try { + c() + return + } catch (err) { + if ((n + 1) >= max_attempts) { + throw err + } + sleep(power_base ** n) + n++ + } + } + return +} diff --git a/README.md b/README.md index 028318a..3d36255 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,9 @@ -<!-- DO NOT EDIT THIS FILE MANUALLY --> -<!-- Please read the https://github.com/linuxserver/docker-audacity/blob/main/.github/CONTRIBUTING.md --> - +<!-- DO NOT EDIT THIS FILE MANUALLY --> +<!-- Please read https://github.com/linuxserver/docker-audacity/blob/main/.github/CONTRIBUTING.md --> [![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io) [![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!") -[![Discord](https://img.shields.io/discord/354974912613449730.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Discord&logo=discord)](https://discord.gg/YWrKVTn "realtime support / chat with the community and the team.") +[![Discord](https://img.shields.io/discord/354974912613449730.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Discord&logo=discord)](https://linuxserver.io/discord "realtime support / chat with the community and the team.") [![Discourse](https://img.shields.io/discourse/https/discourse.linuxserver.io/topics.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=discourse)](https://discourse.linuxserver.io "post on our community forum.") [![Fleet](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Fleet)](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.") [![GitHub](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitHub&logo=github)](https://github.com/linuxserver "view the source for all of our repositories.") @@ -21,7 +20,7 @@ The [LinuxServer.io](https://linuxserver.io) team brings you another container r Find us at: * [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more! -* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team. +* [Discord](https://linuxserver.io/discord) - realtime support / chat with the community and the team. * [Discourse](https://discourse.linuxserver.io) - post on our community forum. * [Fleet](https://fleet.linuxserver.io) - an online web interface which displays all of our maintained images. * [GitHub](https://github.com/linuxserver) - view the source for all of our repositories. @@ -29,11 +28,12 @@ Find us at: # [linuxserver/audacity](https://github.com/linuxserver/docker-audacity) +[![Scarf.io pulls](https://scarf.sh/installs-badge/linuxserver-ci/linuxserver%2Faudacity?color=94398d&label-color=555555&logo-color=ffffff&style=for-the-badge&package-type=docker)](https://scarf.sh) [![GitHub Stars](https://img.shields.io/github/stars/linuxserver/docker-audacity.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/linuxserver/docker-audacity) [![GitHub Release](https://img.shields.io/github/release/linuxserver/docker-audacity.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=github)](https://github.com/linuxserver/docker-audacity/releases) [![GitHub Package Repository](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitHub%20Package&logo=github)](https://github.com/linuxserver/docker-audacity/packages) [![GitLab Container Registry](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitLab%20Registry&logo=gitlab)](https://gitlab.com/linuxserver.io/docker-audacity/container_registry) -[![MicroBadger Layers](https://img.shields.io/microbadger/layers/linuxserver/audacity.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge)](https://microbadger.com/images/linuxserver/audacity "Get your own version badge on microbadger.com") +[![Quay.io](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Quay.io)](https://quay.io/repository/linuxserver.io/audacity) [![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/audacity.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=pulls&logo=docker)](https://hub.docker.com/r/linuxserver/audacity) [![Docker Stars](https://img.shields.io/docker/stars/linuxserver/audacity.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=stars&logo=docker)](https://hub.docker.com/r/linuxserver/audacity) [![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555&logoColor=ffffff&style=for-the-badge&jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-audacity%2Fjob%2Fmain%2F&logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-audacity/job/main/) @@ -45,78 +45,203 @@ Find us at: ## Supported Architectures -Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/). +We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://distribution.github.io/distribution/spec/manifest-v2-2/#manifest-list) and our announcement [here](https://blog.linuxserver.io/2019/02/21/the-lsio-pipeline-project/). -Simply pulling `ghcr.io/linuxserver/audacity` should retrieve the correct image for your arch, but you can also pull specific arch images via tags. +Simply pulling `lscr.io/linuxserver/audacity:latest` should retrieve the correct image for your arch, but you can also pull specific arch images via tags. The architectures supported by this image are: -| Architecture | Tag | -| :----: | --- | -| x86-64 | latest | -| arm64 | arm64v8-latest | -| armhf | arm32v7-latest | +| Architecture | Available | Tag | +| :----: | :----: | ---- | +| x86-64 | ✅ | amd64-\<version tag\> | +| arm64 | ❌ | | +| armhf | ❌ | | ## Application Setup The application can be accessed at: * http://yourhost:3000/ +* https://yourhost:3001/ -By default the user/pass is abc/abc, if you change your password or want to login manually to the GUI session for any reason use the following link: +**Modern GUI desktop apps have issues with the latest Docker and syscall compatibility, you can use Docker with the `--security-opt seccomp=unconfined` setting to allow these syscalls on hosts with older Kernels or libseccomp** -* http://yourhost:3000/?login=true +### Security + +>[!WARNING] +>Do not put this on the Internet if you do not know what you are doing. + +By default this container has no authentication and the optional environment variables `CUSTOM_USER` and `PASSWORD` to enable basic http auth via the embedded NGINX server should only be used to locally secure the container from unwanted access on a local network. If exposing this to the Internet we recommend putting it behind a reverse proxy, such as [SWAG](https://github.com/linuxserver/docker-swag), and ensuring a secure authentication solution is in place. From the web interface a terminal can be launched and it is configured for passwordless sudo, so anyone with access to it can install and run whatever they want along with probing your local network. + +### Options in all KasmVNC based GUI containers + +This container is based on [Docker Baseimage KasmVNC](https://github.com/linuxserver/docker-baseimage-kasmvnc) which means there are additional environment variables and run configurations to enable or disable specific functionality. + +#### Optional environment variables + +| Variable | Description | +| :----: | --- | +| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000. | +| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001. | +| CUSTOM_USER | HTTP Basic auth username, abc is default. | +| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth | +| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` | +| TITLE | The page title displayed on the web browser, default "KasmVNC Client". | +| FM_HOME | This is the home directory (landing) for the file manager, default "/config". | +| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. | +| DRINODE | If mounting in /dev/dri for [DRI3 GPU Acceleration](https://www.kasmweb.com/kasmvnc/docs/master/gpu_acceleration.html) allows you to specify the device to use IE `/dev/dri/renderD128` | +| DISABLE_IPV6 | If set to true or any value this will disable IPv6 | +| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` | +| NO_DECOR | If set the application will run without window borders in openbox for use as a PWA. | +| NO_FULL | Do not autmatically fullscreen applications when using openbox. | + +#### Optional run configurations + +| Variable | Description | +| :----: | --- | +| `--privileged` | Will start a Docker in Docker (DinD) setup inside the container to use docker in an isolated environment. For increased performance mount the Docker directory inside the container to the host IE `-v /home/user/docker-data:/var/lib/docker`. | +| `-v /var/run/docker.sock:/var/run/docker.sock` | Mount in the host level Docker socket to either interact with it via CLI or use Docker enabled applications. | +| `--device /dev/dri:/dev/dri` | Mount a GPU into the container, this can be used in conjunction with the `DRINODE` environment variable to leverage a host video card for GPU accelerated applications. Only **Open Source** drivers are supported IE (Intel,AMDGPU,Radeon,ATI,Nouveau) | + +### Language Support - Internationalization + +The environment variable `LC_ALL` can be used to start this container in a different language than English simply pass for example to launch the Desktop session in French `LC_ALL=fr_FR.UTF-8`. Some languages like Chinese, Japanese, or Korean will be missing fonts needed to render properly known as cjk fonts, but others may exist and not be installed inside the container depending on what underlying distribution you are running. We only ensure fonts for Latin characters are present. Fonts can be installed with a mod on startup. + +To install cjk fonts on startup as an example pass the environment variables (Alpine base): + +``` +-e DOCKER_MODS=linuxserver/mods:universal-package-install +-e INSTALL_PACKAGES=fonts-noto-cjk +-e LC_ALL=zh_CN.UTF-8 +``` + +The web interface has the option for "IME Input Mode" in Settings which will allow non english characters to be used from a non en_US keyboard on the client. Once enabled it will perform the same as a local Linux installation set to your locale. + +### DRI3 GPU Acceleration (KasmVNC interface) + +For accelerated apps or games, render devices can be mounted into the container and leveraged by applications using: + +`--device /dev/dri:/dev/dri` + +This feature only supports **Open Source** GPU drivers: + +| Driver | Description | +| :----: | --- | +| Intel | i965 and i915 drivers for Intel iGPU chipsets | +| AMD | AMDGPU, Radeon, and ATI drivers for AMD dedicated or APU chipsets | +| NVIDIA | nouveau2 drivers only, closed source NVIDIA drivers lack DRI3 support | + +The `DRINODE` environment variable can be used to point to a specific GPU. +Up to date information can be found [here](https://www.kasmweb.com/kasmvnc/docs/master/gpu_acceleration.html) + +### Nvidia GPU Support (KasmVNC interface) + +**Nvidia support is not compatible with Alpine based images as Alpine lacks Nvidia drivers** + +Nvidia support is available by leveraging Zink for OpenGL support. This can be enabled with the following run flags: + +| Variable | Description | +| :----: | --- | +| --gpus all | This can be filtered down but for most setups this will pass the one Nvidia GPU on the system | +| --runtime nvidia | Specify the Nvidia runtime which mounts drivers and tools in from the host | + +The compose syntax is slightly different for this as you will need to set nvidia as the default runtime: + +``` +sudo nvidia-ctk runtime configure --runtime=docker --set-as-default +sudo service docker restart +``` + +And to assign the GPU in compose: + +``` +services: + audacity: + image: lscr.io/linuxserver/audacity:latest + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: 1 + capabilities: [compute,video,graphics,utility] +``` + +### Application management + +#### PRoot Apps + +If you run system native installations of software IE `sudo apt-get install filezilla` and then upgrade or destroy/re-create the container that software will be removed and the container will be at a clean state. For some users that will be acceptable and they can update their system packages as well using system native commands like `apt-get upgrade`. If you want Docker to handle upgrading the container and retain your applications and settings we have created [proot-apps](https://github.com/linuxserver/proot-apps) which allow portable applications to be installed to persistent storage in the user's `$HOME` directory and they will work in a confined Docker environment out of the box. These applications and their settings will persist upgrades of the base container and can be mounted into different flavors of KasmVNC based containers on the fly. This can be achieved from the command line with: + +``` +proot-apps install filezilla +``` + +PRoot Apps is included in all KasmVNC based containers, a list of linuxserver.io supported applications is located [HERE](https://github.com/linuxserver/proot-apps?tab=readme-ov-file#supported-apps). + +#### Native Apps + +It is possible to install extra packages during container start using [universal-package-install](https://github.com/linuxserver/docker-mods/tree/universal-package-install). It might increase starting time significantly. PRoot is preferred. + +```yaml + environment: + - DOCKER_MODS=linuxserver/mods:universal-package-install + - INSTALL_PACKAGES=libfuse2|git|gdb +``` ## Usage -Here are some example snippets to help you get started creating a container. +To help you get started creating a container from this image you can either use docker-compose or the docker cli. -### docker-compose ([recommended](https://docs.linuxserver.io/general/docker-compose)) +>[!NOTE] +>Unless a parameter is flaged as 'optional', it is *mandatory* and a value must be provided. -Compatible with docker-compose v2 schemas. +### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose)) ```yaml --- -version: "2.1" services: audacity: - image: ghcr.io/linuxserver/audacity + image: lscr.io/linuxserver/audacity:latest container_name: audacity environment: - PUID=1000 - PGID=1000 - - TZ=Europe/London + - TZ=Etc/UTC volumes: - - /path/to/config:/config + - /path/to/audacity/config:/config ports: - 3000:3000 + - 3001:3001 restart: unless-stopped ``` -### docker cli +### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/)) ```bash docker run -d \ --name=audacity \ -e PUID=1000 \ -e PGID=1000 \ - -e TZ=Europe/London \ + -e TZ=Etc/UTC \ -p 3000:3000 \ - -v /path/to/config:/config \ + -p 3001:3001 \ + -v /path/to/audacity/config:/config \ --restart unless-stopped \ - ghcr.io/linuxserver/audacity + lscr.io/linuxserver/audacity:latest ``` ## Parameters -Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container. +Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container. | Parameter | Function | | :----: | --- | -| `-p 3000` | Audacity desktop gui. | +| `-p 3000:3000` | Audacity desktop gui. | +| `-p 3001:3001` | Audacity desktop gui HTTPS. | | `-e PUID=1000` | for UserID - see below for explanation | | `-e PGID=1000` | for GroupID - see below for explanation | -| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London. | +| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). | | `-v /config` | Users home directory in the container, stores program settings and images | ## Environment variables from files (Docker secrets) @@ -126,10 +251,10 @@ You can set any environment variable from a file by using a special prepend `FIL As an example: ```bash --e FILE__PASSWORD=/run/secrets/mysecretpassword +-e FILE__MYVAR=/run/secrets/mysecretvariable ``` -Will set the environment variable `PASSWORD` based on the contents of the `/run/secrets/mysecretpassword` file. +Will set the environment variable `MYVAR` based on the contents of the `/run/secrets/mysecretvariable` file. ## Umask for running applications @@ -138,15 +263,20 @@ Keep in mind umask is not chmod it subtracts from permissions based on it's valu ## User / Group Identifiers -When using volumes (`-v` flags) permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`. +When using volumes (`-v` flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic. -In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below: +In this instance `PUID=1000` and `PGID=1000`, to find yours use `id your_user` as below: ```bash - $ id username - uid=1000(dockeruser) gid=1000(dockergroup) groups=1000(dockergroup) +id your_user +``` + +Example output: + +```text +uid=1000(your_user) gid=1000(your_user) groups=1000(your_user) ``` ## Docker Mods @@ -157,53 +287,101 @@ We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to ## Support Info -* Shell access whilst the container is running: `docker exec -it audacity /bin/bash` -* To monitor the logs of the container in realtime: `docker logs -f audacity` -* container version number - * `docker inspect -f '{{ index .Config.Labels "build_version" }}' audacity` -* image version number - * `docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver/audacity` +* Shell access whilst the container is running: + + ```bash + docker exec -it audacity /bin/bash + ``` + +* To monitor the logs of the container in realtime: + + ```bash + docker logs -f audacity + ``` + +* Container version number: + + ```bash + docker inspect -f '{{ index .Config.Labels "build_version" }}' audacity + ``` + +* Image version number: + + ```bash + docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/audacity:latest + ``` ## Updating Info -Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image. +Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image. Below are the instructions for updating containers: ### Via Docker Compose -* Update all images: `docker-compose pull` - * or update a single image: `docker-compose pull audacity` -* Let compose update all containers as necessary: `docker-compose up -d` - * or update a single container: `docker-compose up -d audacity` -* You can also remove the old dangling images: `docker image prune` +* Update images: + * All images: + + ```bash + docker-compose pull + ``` + + * Single image: + + ```bash + docker-compose pull audacity + ``` + +* Update containers: + * All containers: + + ```bash + docker-compose up -d + ``` + + * Single container: + + ```bash + docker-compose up -d audacity + ``` + +* You can also remove the old dangling images: + + ```bash + docker image prune + ``` ### Via Docker Run -* Update the image: `docker pull ghcr.io/linuxserver/audacity` -* Stop the running container: `docker stop audacity` -* Delete the container: `docker rm audacity` +* Update the image: + + ```bash + docker pull lscr.io/linuxserver/audacity:latest + ``` + +* Stop the running container: + + ```bash + docker stop audacity + ``` + +* Delete the container: + + ```bash + docker rm audacity + ``` + * Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved) -* You can also remove the old dangling images: `docker image prune` +* You can also remove the old dangling images: -### Via Watchtower auto-updater (only use if you don't remember the original parameters) - -* Pull the latest image at its tag and replace it with the same env variables in one run: - - ```bash - docker run --rm \ - -v /var/run/docker.sock:/var/run/docker.sock \ - containrrr/watchtower \ - --run-once audacity - ``` - -* You can also remove the old dangling images: `docker image prune` - -**Note:** We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose](https://docs.linuxserver.io/general/docker-compose). + ```bash + docker image prune + ``` ### Image Update Notifications - Diun (Docker Image Update Notifier) -* We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported. +>[!TIP] +>We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported. ## Building locally @@ -215,17 +393,24 @@ cd docker-audacity docker build \ --no-cache \ --pull \ - -t ghcr.io/linuxserver/audacity:latest . + -t lscr.io/linuxserver/audacity:latest . ``` -The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static` +The ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static` ```bash -docker run --rm --privileged multiarch/qemu-user-static:register --reset +docker run --rm --privileged lscr.io/linuxserver/qemu-static --reset ``` Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`. ## Versions +* **31.10.24:** - Fix artifact name. +* **19.08.24:** - Rebase to noble. +* **10.02.24:** - Update Readme with new env vars, ingest proper PWA icon, and pre-extract appimage. +* **05.05.23:** - Start Audacity in full screen. +* **18.03.23:** - Rebase to KasmVNC base image. +* **13.12.22:** - Rebase to Jammy. +* **14.09.21:** - Use the official appimage, switch to single arch (x86_64). Armhf and aarch64 users can remain on version 3.0.2 but there won't be further updates. * **07.04.21:** - Initial release. diff --git a/jenkins-vars.yml b/jenkins-vars.yml index c32f9a4..dac7b03 100644 --- a/jenkins-vars.yml +++ b/jenkins-vars.yml @@ -16,12 +16,12 @@ repo_vars: - DEV_DOCKERHUB_IMAGE = 'lsiodev/audacity' - PR_DOCKERHUB_IMAGE = 'lspipepr/audacity' - DIST_IMAGE = 'ubuntu' - - MULTIARCH = 'true' + - MULTIARCH = 'false' - CI = 'true' - CI_WEB = 'true' - CI_PORT = '3000' - CI_SSL = 'false' - CI_DELAY = '120' - - CI_DOCKERENV = 'TZ=US/Pacific' - - CI_AUTH = 'user:password' + - CI_DOCKERENV = '' + - CI_AUTH = '' - CI_WEBPATH = '' diff --git a/package_versions.txt b/package_versions.txt index bb13562..50407fb 100755 --- a/package_versions.txt +++ b/package_versions.txt @@ -1,486 +1,1273 @@ -adduser3.118ubuntu2 -adwaita-icon-theme3.36.1-2ubuntu0.20.04.2 -apt2.0.5 -apt-transport-https2.0.5 -apt-utils2.0.5 -base-files11ubuntu5.3 -base-passwd3.5.47 -bash5.0-6ubuntu1.1 -bsdmainutils11.1.2ubuntu3 -bsdutils1:2.34-0.1ubuntu9.1 -bzip21.0.8-2 -ca-certificates20210119~20.04.1 -coreutils8.30-3ubuntu2 -cpp4:9.3.0-1ubuntu2 -cpp-99.3.0-17ubuntu1~20.04 -curl7.68.0-1ubuntu2.5 -dash0.5.10.2-6 -dbus1.12.16-2ubuntu2.1 -dbus-x111.12.16-2ubuntu2.1 -dconf-gsettings-backend0.36.0-1 -dconf-service0.36.0-1 -debconf1.5.73 -debianutils4.9.1 -diffutils1:3.7-3 -dirmngr2.2.19-3ubuntu2.1 -distro-info-data0.43ubuntu1.5 -docker-ce-cli5:20.10.6~3-0~ubuntu-bionic -dpkg1.19.7ubuntu3 -e2fsprogs1.45.5-2ubuntu1 -fdisk2.34-0.1ubuntu9.1 -findutils4.7.0-1ubuntu1 -fontconfig2.13.1-2ubuntu3 -fontconfig-config2.13.1-2ubuntu3 -fonts-dejavu-core2.37-1 -gawk1:5.0.1+dfsg-1 -gcc-10-base10.2.0-5ubuntu1~20.04 -gcc-9-base9.3.0-17ubuntu1~20.04 -gir1.2-glib-2.01.64.1-1~ubuntu20.04.1 -gir1.2-packagekitglib-1.01.1.13-2ubuntu1.1 -glib-networking2.64.2-1ubuntu0.1 -glib-networking-common2.64.2-1ubuntu0.1 -glib-networking-services2.64.2-1ubuntu0.1 -gnupg2.2.19-3ubuntu2.1 -gnupg22.2.19-3ubuntu2.1 -gnupg-l10n2.2.19-3ubuntu2.1 -gnupg-utils2.2.19-3ubuntu2.1 -gpg2.2.19-3ubuntu2.1 -gpg-agent2.2.19-3ubuntu2.1 -gpgconf2.2.19-3ubuntu2.1 -gpgsm2.2.19-3ubuntu2.1 -gpgv2.2.19-3ubuntu2.1 -gpg-wks-client2.2.19-3ubuntu2.1 -gpg-wks-server2.2.19-3ubuntu2.1 -grep3.4-1 -groff-base1.22.4-4build1 -gsettings-desktop-schemas3.36.0-1ubuntu1 -gtk-update-icon-cache3.24.20-0ubuntu1 -guacd1.1.0-1 -gzip1.10-0ubuntu4 -hicolor-icon-theme0.17-2 -hostname3.23 -humanity-icon-theme0.6.15 -i965-va-driver2.4.0-0ubuntu1 -init-system-helpers1.57 -intel-media-va-driver20.1.1+dfsg1-1 -iso-codes4.4-1 -keyboard-configuration1.194ubuntu3 -krb5-locales1.17-6ubuntu4.1 -libaacs00.9.0-2 -libacl12.2.53-6 -libaom01.0.0.errata1-3build1 -libapparmor12.13.3-7ubuntu5.1 -libappstream40.12.10-2 -libapt-pkg6.02.0.5 -libargon2-10~20171227-0.2 -libasn1-8-heimdal7.7.0+dfsg-1ubuntu1 -libasound21.2.2-2.1ubuntu2.4 -libasound2-data1.2.2-2.1ubuntu2.4 -libasound2-plugins1.2.2-1ubuntu1 -libassuan02.5.3-7ubuntu2 -libasyncns00.8-6 -libatk1.0-02.35.1-1ubuntu2 -libatk1.0-data2.35.1-1ubuntu2 -libatk-bridge2.0-02.34.2-0ubuntu2~20.04.1 -libatspi2.0-02.36.0-2 -libattr11:2.4.48-5 -libaudit11:2.8.5-2ubuntu6 -libaudit-common1:2.8.5-2ubuntu6 -libavahi-client30.7-4ubuntu7 -libavahi-common30.7-4ubuntu7 -libavahi-common-data0.7-4ubuntu7 -libavcodec587:4.2.4-1ubuntu0.1 -libavformat587:4.2.4-1ubuntu0.1 -libavutil567:4.2.4-1ubuntu0.1 -libbdplus00.1.2-3 -libblkid12.34-0.1ubuntu9.1 -libbluray21:1.2.0-1 -libbrotli11.0.7-6ubuntu0.1 -libbsd00.10.0-1 -libbz2-1.01.0.8-2 -libc62.31-0ubuntu9.2 -libcairo21.16.0-4ubuntu1 -libcairo-gobject21.16.0-4ubuntu1 -libcap21:2.32-1 -libcap2-bin1:2.32-1 -libcap-ng00.7.9-2.1build1 -libc-bin2.31-0ubuntu9.2 -libcbor0.60.6.0-0ubuntu1 -libchromaprint11.4.3-3build1 -libcodec2-0.90.9.2-2 -libcolord21.4.4-2 -libcom-err21.45.5-2ubuntu1 -libcrypt11:4.4.10-10ubuntu4 -libcryptsetup122:2.2.2-3ubuntu2.3 -libcups22.3.1-9ubuntu1.1 -libcurl47.68.0-1ubuntu2.5 -libdatrie10.2.12-3 -libdb5.35.3.28+dfsg1-0.6ubuntu2 -libdbus-1-31.12.16-2ubuntu2.1 -libdconf10.36.0-1 -libdebconfclient00.251ubuntu1 -libdevmapper1.02.12:1.02.167-1ubuntu1 -libdrm22.4.102-1ubuntu1~20.04.1 -libdrm-amdgpu12.4.102-1ubuntu1~20.04.1 -libdrm-common2.4.102-1ubuntu1~20.04.1 -libdrm-intel12.4.102-1ubuntu1~20.04.1 -libdrm-nouveau22.4.102-1ubuntu1~20.04.1 -libdrm-radeon12.4.102-1ubuntu1~20.04.1 -libedit23.1-20191231-1 -libegl11.3.2-1~ubuntu0.20.04.1 -libegl-mesa020.2.6-0ubuntu0.20.04.1 -libelf10.176-1.1build1 -libepoxy01.5.4-1 -libexpat12.2.9-1build1 -libext2fs21.45.5-2ubuntu1 -libfdisk12.34-0.1ubuntu9.1 -libffi73.3-4 -libfido2-11.3.1-1ubuntu2 -libflac81.3.3-1build1 -libfontconfig12.13.1-2ubuntu3 -libfontenc11:1.1.4-0ubuntu1 -libfreerdp2-22.2.0+dfsg1-0ubuntu0.20.04.1 -libfreerdp-client2-22.2.0+dfsg1-0ubuntu0.20.04.1 -libfreetype62.10.1-2ubuntu0.1 -libfribidi01.0.8-2 -libfuse22.9.9-3 -libgail182.24.32-4ubuntu4 -libgail-common2.24.32-4ubuntu4 -libgbm120.2.6-0ubuntu0.20.04.1 -libgcc-s110.2.0-5ubuntu1~20.04 -libgcrypt201.8.5-5ubuntu1 -libgdbm61.18.1-5 -libgdk-pixbuf2.0-02.40.0+dfsg-3ubuntu0.2 -libgdk-pixbuf2.0-common2.40.0+dfsg-3ubuntu0.2 -libgif75.1.9-1 -libgirepository-1.0-11.64.1-1~ubuntu20.04.1 -libgl11.3.2-1~ubuntu0.20.04.1 -libgl1-mesa-dri20.2.6-0ubuntu0.20.04.1 -libglapi-mesa20.2.6-0ubuntu0.20.04.1 -libglib2.0-02.64.6-1~ubuntu20.04.3 -libglib2.0-bin2.64.6-1~ubuntu20.04.3 -libglib2.0-data2.64.6-1~ubuntu20.04.3 -libglvnd01.3.2-1~ubuntu0.20.04.1 -libglx01.3.2-1~ubuntu0.20.04.1 -libglx-mesa020.2.6-0ubuntu0.20.04.1 -libgme00.6.2-1build1 -libgmp102:6.2.0+dfsg-4 -libgnutls303.6.13-2ubuntu1.3 -libgomp110.2.0-5ubuntu1~20.04 -libgpg-error01.37-1 -libgraphite2-31.3.13-11build1 -libgsm11.0.18-2 -libgssapi3-heimdal7.7.0+dfsg-1ubuntu1 -libgssapi-krb5-21.17-6ubuntu4.1 -libgstreamer1.0-01.16.2-2 -libgstreamer-plugins-base1.0-01.16.2-4 -libgtk2.0-02.24.32-4ubuntu4 -libgtk2.0-bin2.24.32-4ubuntu4 -libgtk2.0-common2.24.32-4ubuntu4 -libgtk-3-03.24.20-0ubuntu1 -libgtk-3-common3.24.20-0ubuntu1 -libharfbuzz0b2.6.4-1ubuntu4 -libhcrypto4-heimdal7.7.0+dfsg-1ubuntu1 -libheimbase1-heimdal7.7.0+dfsg-1ubuntu1 -libheimntlm0-heimdal7.7.0+dfsg-1ubuntu1 -libhogweed53.5.1+really3.5.1-2ubuntu0.1 -libhx509-5-heimdal7.7.0+dfsg-1ubuntu1 -libice62:1.0.10-0ubuntu1 -libicu6666.1-2ubuntu2 -libid3tag00.15.1b-14 -libidn2-02.2.0-2 -libigdgmm1120.1.1+ds1-1 -libimlib21.6.1-1 -libip4tc21.8.4-3ubuntu2 -libisl220.22.1-1 -libjack-jackd2-01.9.12~dfsg-2ubuntu2 -libjbig02.1-3.1build1 -libjpeg88c-2ubuntu8 -libjpeg-turbo82.0.3-0ubuntu1.20.04.1 -libjson-c40.13.1+dfsg-7ubuntu0.3 -libjson-glib-1.0-01.4.4-2ubuntu2 -libjson-glib-1.0-common1.4.4-2ubuntu2 -libk5crypto31.17-6ubuntu4.1 -libkeyutils11.6-6ubuntu1 -libkmod227-1ubuntu2 -libkrb5-26-heimdal7.7.0+dfsg-1ubuntu1 -libkrb5-31.17-6ubuntu4.1 -libkrb5support01.17-6ubuntu4.1 -libksba81.3.5-2 -liblcms2-22.9-4 -libldap-2.4-22.4.49+dfsg-2ubuntu1.8 -libldap-common2.4.49+dfsg-2ubuntu1.8 -libllvm111:11.0.0-2~ubuntu20.04.1 -liblmdb00.9.24-1 -liblocale-gettext-perl1.07-4 -libltdl72.4.6-14 -liblz4-11.9.2-2 -liblzma55.2.4-1ubuntu1 -libmount12.34-0.1ubuntu9.1 -libmp3lame03.100-3 -libmpc31.1.0-1 -libmpdec22.4.2-3 -libmpfr64.0.2-1 -libmpg123-01.25.13-1 -libncurses66.2-0ubuntu2 -libncursesw66.2-0ubuntu2 -libnettle73.5.1+really3.5.1-2ubuntu0.1 -libnghttp2-141.40.0-1build1 -libnpth01.6-1 -libnuma12.0.12-1 -libobrender32v53.6.1-9ubuntu0.20.04.1 -libobt2v53.6.1-9ubuntu0.20.04.1 -libogg01.3.4-0ubuntu1 -libopenjp2-72.3.1-1ubuntu4.20.04.1 -libopenmpt00.4.11-1build1 -libopus01.3.1-0ubuntu1 -liborc-0.4-01:0.4.31-1 -libossp-uuid161.6.2-1.5build7 -libp11-kit00.23.20-1ubuntu0.1 -libpackagekit-glib2-181.1.13-2ubuntu1.1 -libpam0g1.3.1-5ubuntu4.1 -libpam-modules1.3.1-5ubuntu4.1 -libpam-modules-bin1.3.1-5ubuntu4.1 -libpam-runtime1.3.1-5ubuntu4.1 -libpam-systemd245.4-4ubuntu3.6 -libpango-1.0-01.44.7-2ubuntu4 -libpangocairo-1.0-01.44.7-2ubuntu4 -libpangoft2-1.0-01.44.7-2ubuntu4 -libpangoxft-1.0-01.44.7-2ubuntu4 -libpciaccess00.16-0ubuntu1 -libpcre2-8-010.34-7 -libpcre32:8.39-12build1 -libpipeline11.5.2-2build1 -libpixman-1-00.38.4-0ubuntu1 -libpng16-161.6.37-2 -libpolkit-agent-1-00.105-26ubuntu1 -libpolkit-gobject-1-00.105-26ubuntu1 -libprocps82:3.3.16-1ubuntu2.1 -libproxy1v50.4.15-10ubuntu1.2 -libpsl50.21.0-1ubuntu1 -libpthread-stubs0-dev0.4-1 -libpulse01:13.99.1-1ubuntu3.10 -libpulsedsp1:13.99.1-1ubuntu3.10 -libpython2.7-minimal2.7.18-1~20.04.1 -libpython2.7-stdlib2.7.18-1~20.04.1 -libpython2-stdlib2.7.17-2ubuntu4 -libpython3.8-minimal3.8.5-1~20.04.2 -libpython3.8-stdlib3.8.5-1~20.04.2 -libpython3-stdlib3.8.2-0ubuntu2 -libreadline88.0-4 -librest-0.7-00.8.1-1 -libroken18-heimdal7.7.0+dfsg-1ubuntu1 -librsvg2-22.48.9-1ubuntu0.20.04.1 -librsvg2-common2.48.9-1ubuntu0.20.04.1 -librtmp12.4+20151223.gitfa8646d.1-2build1 -libsamplerate00.1.9-2 -libsasl2-22.1.27+dfsg-2 -libsasl2-modules2.1.27+dfsg-2 -libsasl2-modules-db2.1.27+dfsg-2 -libseccomp22.5.1-1ubuntu1~20.04.1 -libselinux13.0-1build2 -libsemanage13.0-1build2 -libsemanage-common3.0-1build2 -libsensors51:3.6.0-2ubuntu1 -libsensors-config1:3.6.0-2ubuntu1 -libsepol13.0-1 -libshine33.1.1-2 -libsigsegv22.12-2 -libsm62:1.2.3-1 -libsmartcols12.34-0.1ubuntu9.1 -libsnapd-glib11.58-0ubuntu0.20.04.0 -libsnappy1v51.1.8-1build1 -libsndfile11.0.28-7 -libsoup2.4-12.70.0-1 -libsoup-gnome2.4-12.70.0-1 -libsoxr00.1.3-2build1 -libspeex11.2~rc1.2-1.1ubuntu1 -libspeexdsp11.2~rc1.2-1.1ubuntu1 -libsqlite3-03.31.1-4ubuntu0.2 -libss21.45.5-2ubuntu1 -libssh-40.9.3-2ubuntu2.1 -libssh-gcrypt-40.9.3-2ubuntu2.1 -libssl1.11.1.1f-1ubuntu2.3 -libstartup-notification00.12-6 -libstdc++610.2.0-5ubuntu1~20.04 -libstemmer0d0+svn585-2 -libswresample37:4.2.4-1ubuntu0.1 -libsystemd0245.4-4ubuntu3.6 -libtasn1-64.16.0-2 -libtdb11.4.2-3build1 -libthai00.1.28-3 -libthai-data0.1.28-3 -libtheora01.1.1+dfsg.1-15ubuntu2 -libtiff54.1.0+git191117-2ubuntu0.20.04.1 -libtinfo66.2-0ubuntu2 -libtwolame00.4.0-2 -libuchardet00.0.6-3build1 -libudev1245.4-4ubuntu3.6 -libunistring20.9.10-2 -libunwind81.2.1-9build1 -libusb-1.0-02:1.0.23-2build1 -libutempter01.1.6-4 -libuuid12.34-0.1ubuntu9.1 -libva22.7.0-2 -libva-drm22.7.0-2 -libva-x11-22.7.0-2 -libvdpau11.3-1ubuntu2 -libvorbis0a1.3.6-2ubuntu1 -libvorbisenc21.3.6-2ubuntu1 -libvorbisfile31.3.6-2ubuntu1 -libvpx61.8.2-1build1 -libvulkan11.2.131.2-1 -libwavpack15.2.0-1ubuntu0.1 -libwayland-client01.18.0-1 -libwayland-cursor01.18.0-1 -libwayland-egl11.18.0-1 -libwayland-server01.18.0-1 -libwebp60.6.1-2 -libwebpmux30.6.1-2 -libwebrtc-audio-processing10.3.1-0ubuntu3 -libwind0-heimdal7.7.0+dfsg-1ubuntu1 -libwinpr2-22.2.0+dfsg1-0ubuntu0.20.04.1 -libwrap07.6.q-30 -libx11-62:1.6.9-2ubuntu1.1 -libx11-data2:1.6.9-2ubuntu1.1 -libx11-dev2:1.6.9-2ubuntu1.1 -libx11-xcb12:1.6.9-2ubuntu1.1 -libx264-1552:0.155.2917+git0a84d98-2 -libx265-1793.2.1-1build1 -libxau61:1.0.9-0ubuntu1 -libxau-dev1:1.0.9-0ubuntu1 -libxaw72:1.0.13-1 -libxcb11.14-2 -libxcb1-dev1.14-2 -libxcb-dri2-01.14-2 -libxcb-dri3-01.14-2 -libxcb-glx01.14-2 -libxcb-present01.14-2 -libxcb-render01.14-2 -libxcb-shape01.14-2 -libxcb-shm01.14-2 -libxcb-sync11.14-2 -libxcb-util10.4.0-0ubuntu3 -libxcb-xfixes01.14-2 -libxcomposite11:0.4.5-1 -libxcursor11:1.2.0-2 -libxdamage11:1.1.5-2 -libxdmcp61:1.1.3-0ubuntu1 -libxdmcp-dev1:1.1.3-0ubuntu1 -libxext62:1.3.4-0ubuntu1 -libxfixes31:5.0.3-2 -libxfont21:2.0.3-1 -libxft22.3.3-0ubuntu1 -libxi62:1.7.10-0ubuntu1 -libxinerama12:1.1.4-2 -libxkbcommon00.10.0-1 -libxkbfile11:1.1.0-1 -libxml22.9.10+dfsg-5 -libxmu62:1.1.3-0ubuntu1 -libxmuu12:1.1.3-0ubuntu1 -libxpm41:3.5.12-1 -libxrandr22:1.5.2-0ubuntu1 -libxrender11:0.9.10-1 -libxshmfence11.3-1 -libxt61:1.1.5-1 -libxtst62:1.2.3-1 -libxv12:1.0.11-1 -libxvidcore42:1.3.7-1 -libxxf86dga12:1.1.5-0ubuntu1 -libxxf86vm11:1.1.4-1build1 -libyaml-0-20.2.2-1 -libzstd11.4.4+dfsg-3ubuntu0.1 -libzvbi00.2.35-17 -libzvbi-common0.2.35-17 -locales2.31-0ubuntu9.2 -login1:4.8.1-1ubuntu5.20.04 -logsave1.45.5-2ubuntu1 -lsb-base11.1.0ubuntu2 -lsb-release11.1.0ubuntu2 -man-db2.9.1-1 -mawk1.3.4.20200120-2 -mesa-va-drivers20.2.6-0ubuntu0.20.04.1 -mesa-vdpau-drivers20.2.6-0ubuntu0.20.04.1 -mime-support3.64ubuntu1 -mount2.34-0.1ubuntu9.1 -ncurses-base6.2-0ubuntu2 -ncurses-bin6.2-0ubuntu2 -nodejs14.16.1-deb-1nodesource1 -obconf1:2.0.4+git20150213-2 -ocl-icd-libopencl12.2.11-1ubuntu1 -openbox3.6.1-9ubuntu0.20.04.1 -openssh-client1:8.2p1-4ubuntu0.2 -openssl1.1.1f-1ubuntu2.3 -packagekit1.1.13-2ubuntu1.1 -passwd1:4.8.1-1ubuntu5.20.04 -perl-base5.30.0-9ubuntu0.2 -pinentry-curses1.1.0-3build1 -policykit-10.105-26ubuntu1 -procps2:3.3.16-1ubuntu2.1 -publicsuffix20200303.0012-1 -pulseaudio1:13.99.1-1ubuntu3.10 -pulseaudio-utils1:13.99.1-1ubuntu3.10 -python22.7.17-2ubuntu4 -python2.72.7.18-1~20.04.1 -python2.7-minimal2.7.18-1~20.04.1 -python2-minimal2.7.17-2ubuntu4 -python33.8.2-0ubuntu2 -python3.83.8.5-1~20.04.2 -python3.8-minimal3.8.5-1~20.04.2 -python3-apt2.0.0ubuntu0.20.04.4 -python3-certifi2019.11.28-1 -python3-chardet3.0.4-4build1 -python3-dbus1.2.16-1build1 -python3-gi3.36.0-1 -python3-idna2.8-1 -python3-minimal3.8.2-0ubuntu2 -python3-pkg-resources45.2.0-1 -python3-requests2.22.0-2ubuntu1 -python3-requests-unixsocket0.2.0-2 -python3-six1.14.0-2 -python3-software-properties0.98.9.4 -python3-urllib31.25.8-2ubuntu0.1 -python-apt-common2.0.0ubuntu0.20.04.4 -python-is-python22.7.17-4 -readline-common8.0-4 -sed4.7-1 -sensible-utils0.0.12+nmu1 -shared-mime-info1.15-1 -software-properties-common0.98.9.4 -ssl-cert1.0.39 -sudo1.8.31-1ubuntu1.2 -systemd245.4-4ubuntu3.6 -systemd-sysv245.4-4ubuntu3.6 -systemd-timesyncd245.4-4ubuntu3.6 -sysvinit-utils2.96-2.1ubuntu1 -tar1.30+dfsg-7ubuntu0.20.04.1 -tzdata2021a-0ubuntu0.20.04 -ubuntu-keyring2020.02.11.4 -ubuntu-mono19.04-0ubuntu3 -ucf3.0038+nmu1 -udev245.4-4ubuntu3.6 -util-linux2.34-0.1ubuntu9.1 -va-driver-all2.7.0-2 -vdpau-driver-all1.3-1ubuntu2 -x11-apps7.7+8 -x11-common1:7.7+19ubuntu14 -x11proto-core-dev2019.2-1ubuntu1 -x11proto-dev2019.2-1ubuntu1 -x11-session-utils7.7+4 -x11-utils7.7+5 -x11-xkb-utils7.7+5 -x11-xserver-utils7.7+8 -xbitmaps1.1.1-2 -xfonts-base1:1.0.5 -xfonts-encodings1:1.0.5-0ubuntu1 -xfonts-utils1:7.7+6 -xkb-data2.29-2 -xorg-sgml-doctools1:1.11-1 -xorgxrdp1:0.2.12-1 -xrdp0.9.12-1 -xserver-common2:1.20.9-2ubuntu1.2~20.04.2 -xserver-xorg-core2:1.20.9-2ubuntu1.2~20.04.2 -xterm353-1ubuntu1.20.04.2 -xtrans-dev1.4.0-1 -xutils1:7.7+19ubuntu14 -zlib1g1:1.2.11.dfsg-2ubuntu1.2 +NAME VERSION TYPE +1to2 1.0.0 npm +@fastify/busboy 2.0.0 npm +@kasmtech/novnc 1.3.0 npm +@socket.io/component-emitter 3.1.2 npm +@socket.io/component-emitter UNKNOWN npm (+1 duplicate) +@types/busboy 1.5.0 npm +@types/cors 2.8.18 npm +@types/node 18.18.14 npm +@types/node 22.15.21 npm +accepts 1.3.8 npm +acorn 8.8.1 npm +acorn-bigint 1.0.0 npm +acorn-class-fields 1.0.0 npm +acorn-dynamic-import 4.0.0 npm +acorn-export-ns-from 0.2.0 npm +acorn-globals 6.0.0 npm +acorn-import-assertions 1.8.0 npm +acorn-import-meta 1.1.0 npm +acorn-jsx 5.3.1 npm +acorn-loose 8.3.0 npm +acorn-node 2.0.1 npm +acorn-numeric-separator 0.3.4 npm +acorn-private-class-elements 1.0.0 npm +acorn-private-methods 1.0.0 npm +acorn-static-class-features 1.0.0 npm +acorn-walk 8.2.0 npm +adduser 3.137ubuntu1 deb +ansi-styles 4.3.0 npm +apt 2.7.14build2 deb +apt-utils 2.7.14build2 deb +array-flatten 1.1.1 npm +async 3.2.6 npm +at-spi2-common 2.52.0-1build1 deb +at-spi2-core 2.52.0-1build1 deb +balanced-match 1.0.2 npm +base-files 13ubuntu10.2 deb +base-passwd 3.6.3build1 deb +base64id 2.0.0 npm +bash 5.2.21-2ubuntu4 deb +bc 1.07.1-3ubuntu4 deb +binary-search 1.3.6 npm +bindings 1.5.0 npm +blinker 1.7.0 python +body-parser 1.20.3 npm +brace-expansion 1.1.11 npm +brace-expansion 2.0.1 npm +bsdextrautils 2.39.3-9ubuntu6.2 deb +bsdutils 1:2.39.3-9ubuntu6.2 deb +busboy 1.6.0 npm +bytes 3.1.2 npm +ca-certificates 20240203 deb +call-bind-apply-helpers 1.0.2 npm +call-bound 1.0.4 npm +catatonit 0.1.7-1 deb +chalk 4.1.2 npm +cjs-module-lexer 1.2.3 npm +cloud.google.com/go/compute/metadata v0.5.2 go-module +cloud.google.com/go/logging v1.9.0 go-module +cloud.google.com/go/longrunning v0.5.4 go-module +code.cloudfoundry.org/clock v1.1.0 go-module +color-convert 2.0.1 npm +color-name 1.1.4 npm +concat-map 0.0.1 npm +console-setup 1.226ubuntu1 deb +console-setup-linux 1.226ubuntu1 deb +containerd.io 1.7.27-1 deb +content-disposition 0.5.4 npm +content-type 1.0.5 npm +cookie 0.7.1 npm +cookie 0.7.2 npm +cookie-signature 1.0.6 npm +coreutils 9.4-3ubuntu6 deb +cors 2.8.5 npm +cpp 4:13.2.0-7ubuntu1 deb +cpp-13 13.3.0-6ubuntu2~24.04 deb +cpp-13-x86-64-linux-gnu 13.3.0-6ubuntu2~24.04 deb +cpp-x86-64-linux-gnu 4:13.2.0-7ubuntu1 deb +cron 3.0pl1-184ubuntu2 deb +cron-daemon-common 3.0pl1-184ubuntu2 deb +cryptography 41.0.7 python (+1 duplicate) +cups 2.4.7-1.2ubuntu7.3 deb +cups-client 2.4.7-1.2ubuntu7.3 deb +cups-common 2.4.7-1.2ubuntu7.3 deb +cups-core-drivers 2.4.7-1.2ubuntu7.3 deb +cups-daemon 2.4.7-1.2ubuntu7.3 deb +cups-filters 2.0.0-0ubuntu4 deb +cups-filters-core-drivers 2.0.0-0ubuntu4 deb +cups-ipp-utils 2.4.7-1.2ubuntu7.3 deb +cups-ppdc 2.4.7-1.2ubuntu7.3 deb +cups-server-common 2.4.7-1.2ubuntu7.3 deb +curl 8.5.0-2ubuntu10.6 deb +dario.cat/mergo v1.0.0 go-module +dario.cat/mergo v1.0.1 go-module (+1 duplicate) +dash 0.5.12-6ubuntu5 deb +dbus 1.14.10-4ubuntu4.1 deb +dbus-bin 1.14.10-4ubuntu4.1 deb +dbus-daemon 1.14.10-4ubuntu4.1 deb +dbus-python 1.3.2 python +dbus-session-bus-common 1.14.10-4ubuntu4.1 deb +dbus-system-bus-common 1.14.10-4ubuntu4.1 deb +dbus-x11 1.14.10-4ubuntu4.1 deb +dconf-gsettings-backend 0.40.0-4build2 deb +dconf-service 0.40.0-4build2 deb +debconf 1.5.86ubuntu1 deb +debianutils 5.17build1 deb +debug 2.6.9 npm +debug 4.3.7 npm (+3 duplicates) +depd 2.0.0 npm +destroy 1.2.0 npm +diffutils 1:3.10-1build1 deb +dirmngr 2.4.4-2ubuntu17.2 deb +distro 1.9.0 python +distro-info-data 0.60ubuntu0.3 deb +docker-ce 5:28.1.1-1~ubuntu.24.04~noble deb +docker-ce-cli 5:28.1.1-1~ubuntu.24.04~noble deb +docker-compose-plugin 2.35.1-1~ubuntu.24.04~noble deb +dpkg 1.22.6ubuntu6.1 deb +dunder-proto 1.0.1 npm +dunst 1.9.2-1build2 deb +e2fsprogs 1.47.0-2.4~exp1ubuntu4.1 deb +ee-first 1.1.1 npm +ejs 3.1.10 npm +encodeurl 1.0.2 npm +encodeurl 2.0.0 npm +engine.io 6.6.4 npm +engine.io-parser 5.2.3 npm +engine.io-parser UNKNOWN npm (+1 duplicate) +es-define-property 1.0.1 npm +es-errors 1.3.0 npm +es-object-atoms 1.1.1 npm +escape-html 1.0.3 npm +etag 1.8.1 npm +express 4.21.2 npm +ffmpeg 7:6.1.1-3ubuntu5 deb +file 1:5.45-3build1 deb +file-uri-to-path 1.0.0 npm +filelist 1.0.4 npm +finalhandler 1.3.1 npm +findutils 4.9.0-5build1 deb +fontconfig 2.15.0-1.1ubuntu2 deb +fontconfig-config 2.15.0-1.1ubuntu2 deb +fonts-noto-color-emoji 2.047-0ubuntu0.24.04.1 deb +fonts-noto-core 20201225-2 deb +fonts-noto-mono 20201225-2 deb +fonts-urw-base35 20200910-8 deb +forwarded 0.2.0 npm +fresh 0.5.2 npm +function-bind 1.1.2 npm +fuse-overlayfs 1.13-1 deb +fuse3 3.14.0-5build1 deb +gcc-13-base 13.3.0-6ubuntu2~24.04 deb +gcc-14-base 14.2.0-4ubuntu2~24.04 deb +get-intrinsic 1.3.0 npm +get-proto 1.0.1 npm +ghostscript 10.02.1~dfsg1-0ubuntu7.6 deb +gir1.2-atk-1.0 2.52.0-1build1 deb +gir1.2-atspi-2.0 2.52.0-1build1 deb +gir1.2-freedesktop 1.80.1-1 deb +gir1.2-freedesktop-dev 1.80.1-1 deb +gir1.2-girepository-2.0 1.80.1-1 deb +gir1.2-glib-2.0 2.80.0-6ubuntu3.4 deb +gir1.2-glib-2.0-dev 2.80.0-6ubuntu3.4 deb +gir1.2-packagekitglib-1.0 1.2.8-2ubuntu1.2 deb +github.com/AlecAivazis/survey/v2 v2.3.7 go-module +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.16.0 go-module +github.com/Azure/azure-sdk-for-go/sdk/internal v1.10.0 go-module +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.5.0 go-module +github.com/DefangLabs/secret-detector v0.0.0-20250403165618-22662109213e go-module +github.com/Graylog2/go-gelf v0.0.0-20191017102106-1550ee647df0 go-module +github.com/Masterminds/semver/v3 v3.2.1 go-module +github.com/Microsoft/hcsshim v0.11.7 go-module (+1 duplicate) +github.com/Microsoft/hcsshim v0.12.9 go-module +github.com/RackSec/srslog v0.0.0-20180709174129-a4725f04ec91 go-module +github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d go-module +github.com/agext/levenshtein v1.2.3 go-module +github.com/anchore/go-struct-converter v0.0.0-20221118182256-c68fdcfa2092 go-module +github.com/apparentlymart/go-textseg/v15 v15.0.0 go-module +github.com/armon/circbuf v0.0.0-20190214190532-5111143e8da2 go-module +github.com/armon/go-metrics v0.4.1 go-module +github.com/aws/aws-sdk-go-v2 v1.30.3 go-module (+1 duplicate) +github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.3 go-module +github.com/aws/aws-sdk-go-v2/config v1.27.27 go-module (+1 duplicate) +github.com/aws/aws-sdk-go-v2/credentials v1.17.27 go-module (+1 duplicate) +github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11 go-module (+1 duplicate) +github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 go-module (+1 duplicate) +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 go-module (+1 duplicate) +github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 go-module (+1 duplicate) +github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.32.0 go-module +github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 go-module (+1 duplicate) +github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 go-module (+1 duplicate) +github.com/aws/aws-sdk-go-v2/service/sso v1.22.4 go-module (+1 duplicate) +github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 go-module (+1 duplicate) +github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 go-module (+1 duplicate) +github.com/aws/smithy-go v1.20.3 go-module (+1 duplicate) +github.com/beorn7/perks v1.0.1 go-module (+2 duplicates) +github.com/bits-and-blooms/bitset v1.13.0 go-module +github.com/blang/semver/v4 v4.0.0 go-module +github.com/buger/goterm v1.0.4 go-module +github.com/cenkalti/backoff/v4 v4.2.1 go-module +github.com/cenkalti/backoff/v4 v4.3.0 go-module (+1 duplicate) +github.com/cespare/xxhash/v2 v2.2.0 go-module +github.com/cespare/xxhash/v2 v2.3.0 go-module (+1 duplicate) +github.com/checkpoint-restore/go-criu/v6 v6.3.0 go-module +github.com/cilium/ebpf v0.16.0 go-module +github.com/cilium/ebpf v0.17.3 go-module +github.com/cilium/ebpf v0.9.1 go-module (+3 duplicates) +github.com/cloudflare/cfssl v1.6.4 go-module +github.com/compose-spec/compose-go/v2 v2.6.0 go-module +github.com/container-storage-interface/spec v1.5.0 go-module +github.com/containerd/aufs v1.0.0 go-module +github.com/containerd/btrfs/v2 v2.0.0 go-module +github.com/containerd/cgroups v1.1.0 go-module (+1 duplicate) +github.com/containerd/cgroups/v3 v3.0.2 go-module (+3 duplicates) +github.com/containerd/cgroups/v3 v3.0.5 go-module +github.com/containerd/console v1.0.3 go-module (+4 duplicates) +github.com/containerd/console v1.0.4 go-module (+2 duplicates) +github.com/containerd/containerd v1.7.27 go-module (+4 duplicates) +github.com/containerd/containerd/api v1.8.0 go-module (+6 duplicates) +github.com/containerd/containerd/v2 v2.0.4 go-module +github.com/containerd/containerd/v2 v2.0.5 go-module +github.com/containerd/continuity v0.4.4 go-module (+4 duplicates) +github.com/containerd/continuity v0.4.5 go-module (+1 duplicate) +github.com/containerd/errdefs v0.3.0 go-module (+4 duplicates) +github.com/containerd/errdefs v1.0.0 go-module (+1 duplicate) +github.com/containerd/errdefs/pkg v0.3.0 go-module (+1 duplicate) +github.com/containerd/fifo v1.1.0 go-module (+5 duplicates) +github.com/containerd/go-cni v1.1.12 go-module +github.com/containerd/go-cni v1.1.9 go-module (+1 duplicate) +github.com/containerd/go-runc v1.0.0 go-module (+4 duplicates) +github.com/containerd/go-runc v1.1.0 go-module +github.com/containerd/imgcrypt v1.1.8 go-module +github.com/containerd/log v0.1.0 go-module (+7 duplicates) +github.com/containerd/nri v0.8.0 go-module +github.com/containerd/platforms v0.2.1 go-module (+3 duplicates) +github.com/containerd/platforms v1.0.0-rc.1 go-module (+1 duplicate) +github.com/containerd/plugin v1.0.0 go-module +github.com/containerd/stargz-snapshotter/estargz v0.16.3 go-module +github.com/containerd/ttrpc v1.2.7 go-module (+6 duplicates) +github.com/containerd/typeurl v1.0.2 go-module +github.com/containerd/typeurl/v2 v2.1.1 go-module (+4 duplicates) +github.com/containerd/typeurl/v2 v2.2.3 go-module (+1 duplicate) +github.com/containerd/zfs v1.1.0 go-module +github.com/containernetworking/cni v1.1.2 go-module (+1 duplicate) +github.com/containernetworking/cni v1.2.3 go-module +github.com/containernetworking/plugins v1.2.0 go-module +github.com/containernetworking/plugins v1.6.2 go-module +github.com/containers/ocicrypt v1.1.10 go-module +github.com/coreos/go-systemd/v22 v22.5.0 go-module (+5 duplicates) +github.com/cyphar/filepath-securejoin v0.4.1 go-module (+1 duplicate) +github.com/davecgh/go-spew v1.1.1 go-module (+2 duplicates) +github.com/deckarep/golang-set/v2 v2.3.0 go-module +github.com/dimchansky/utfbom v1.1.1 go-module +github.com/distribution/reference v0.6.0 go-module (+3 duplicates) +github.com/docker/buildx v0.23.0 go-module +github.com/docker/cli v28.1.0+incompatible go-module +github.com/docker/cli-docs-tool v0.9.0 go-module +github.com/docker/cli/cmd/docker UNKNOWN go-module +github.com/docker/compose/v2 UNKNOWN go-module +github.com/docker/distribution v2.8.3+incompatible go-module (+1 duplicate) +github.com/docker/docker v28.1.0+incompatible go-module +github.com/docker/docker v28.1.1 go-module (+1 duplicate) +github.com/docker/docker-credential-helpers v0.9.3 go-module +github.com/docker/go v1.5.1-1.0.20160303222718-d30aec9fd63c go-module +github.com/docker/go-connections v0.5.0 go-module (+1 duplicate) +github.com/docker/go-events v0.0.0-20190806004212-e31b211e4f1c go-module (+4 duplicates) +github.com/docker/go-metrics v0.0.1 go-module (+2 duplicates) +github.com/docker/go-units v0.5.0 go-module (+6 duplicates) +github.com/docker/libtrust v0.0.0-20150526203908-9cbd2a1374f4 go-module +github.com/dustin/go-humanize v1.0.0 go-module +github.com/eiannone/keyboard v0.0.0-20220611211555-0d226195f203 go-module +github.com/emicklei/go-restful/v3 v3.10.1 go-module +github.com/emicklei/go-restful/v3 v3.11.0 go-module +github.com/felixge/httpsnoop v1.0.3 go-module (+1 duplicate) +github.com/felixge/httpsnoop v1.0.4 go-module (+1 duplicate) +github.com/fernet/fernet-go v0.0.0-20211208181803-9f70042a33ee go-module +github.com/fluent/fluent-logger-golang v1.9.0 go-module +github.com/fsnotify/fsnotify v1.6.0 go-module +github.com/fsnotify/fsnotify v1.7.0 go-module +github.com/fvbommel/sortorder v1.1.0 go-module +github.com/fxamacker/cbor/v2 v2.7.0 go-module +github.com/go-jose/go-jose/v3 v3.0.3 go-module +github.com/go-logr/logr v1.4.2 go-module (+3 duplicates) +github.com/go-logr/stdr v1.2.2 go-module (+3 duplicates) +github.com/go-openapi/jsonpointer v0.19.6 go-module +github.com/go-openapi/jsonreference v0.20.2 go-module +github.com/go-openapi/swag v0.22.4 go-module +github.com/go-viper/mapstructure/v2 v2.0.0 go-module +github.com/godbus/dbus/v5 v5.1.0 go-module (+5 duplicates) +github.com/gofrs/flock v0.12.1 go-module (+1 duplicate) +github.com/gogo/protobuf v1.3.2 go-module (+6 duplicates) +github.com/golang-jwt/jwt/v5 v5.2.2 go-module (+1 duplicate) +github.com/golang/gddo v0.0.0-20190904175337-72a348e765d2 go-module +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da go-module +github.com/golang/protobuf v1.5.4 go-module (+6 duplicates) +github.com/google/btree v1.1.2 go-module +github.com/google/certificate-transparency-go v1.1.4 go-module +github.com/google/gnostic-models v0.6.8 go-module +github.com/google/go-cmp v0.6.0 go-module (+4 duplicates) +github.com/google/go-cmp v0.7.0 go-module (+1 duplicate) +github.com/google/gofuzz v1.2.0 go-module (+1 duplicate) +github.com/google/s2a-go v0.1.7 go-module +github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 go-module (+1 duplicate) +github.com/google/uuid v1.4.0 go-module (+1 duplicate) +github.com/google/uuid v1.6.0 go-module (+1 duplicate) +github.com/googleapis/enterprise-certificate-proxy v0.3.2 go-module +github.com/googleapis/gax-go/v2 v2.12.0 go-module +github.com/gorilla/mux v1.8.1 go-module (+1 duplicate) +github.com/gorilla/websocket v1.5.0 go-module +github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 go-module +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 go-module (+1 duplicate) +github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 go-module +github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 go-module (+1 duplicate) +github.com/hashicorp/errwrap v1.1.0 go-module (+1 duplicate) +github.com/hashicorp/go-cleanhttp v0.5.2 go-module +github.com/hashicorp/go-immutable-radix v1.3.1 go-module +github.com/hashicorp/go-immutable-radix/v2 v2.1.0 go-module +github.com/hashicorp/go-memdb v1.3.2 go-module +github.com/hashicorp/go-msgpack v0.5.5 go-module +github.com/hashicorp/go-multierror v1.1.1 go-module (+1 duplicate) +github.com/hashicorp/go-sockaddr v1.0.2 go-module +github.com/hashicorp/go-version v1.7.0 go-module +github.com/hashicorp/golang-lru v0.5.4 go-module +github.com/hashicorp/golang-lru/v2 v2.0.7 go-module +github.com/hashicorp/memberlist v0.4.0 go-module +github.com/hashicorp/serf v0.8.5 go-module +github.com/imdario/mergo v0.3.16 go-module +github.com/in-toto/in-toto-golang v0.5.0 go-module (+1 duplicate) +github.com/inhies/go-bytesize v0.0.0-20220417184213-4913239db9cf go-module +github.com/intel/goresctrl v0.5.0 go-module (+1 duplicate) +github.com/ishidawataru/sctp v0.0.0-20230406120618-7ff4192f6ff2 go-module (+1 duplicate) +github.com/jmoiron/sqlx v1.3.3 go-module +github.com/jonboulle/clockwork v0.5.0 go-module +github.com/josharian/intern v1.0.0 go-module +github.com/json-iterator/go v1.1.12 go-module (+1 duplicate) +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 go-module +github.com/klauspost/compress v1.16.7 go-module (+3 duplicates) +github.com/klauspost/compress v1.18.0 go-module (+1 duplicate) +github.com/klauspost/cpuid/v2 v2.0.4 go-module (+1 duplicate) +github.com/mailru/easyjson v0.7.7 go-module +github.com/mattn/go-colorable v0.1.13 go-module +github.com/mattn/go-isatty v0.0.20 go-module +github.com/mattn/go-runewidth v0.0.15 go-module +github.com/mattn/go-shellwords v1.0.12 go-module +github.com/matttproud/golang_protobuf_extensions v1.0.4 go-module +github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b go-module +github.com/miekg/dns v1.1.61 go-module +github.com/miekg/pkcs11 v1.1.1 go-module +github.com/minio/sha256-simd v1.0.0 go-module (+1 duplicate) +github.com/mistifyio/go-zfs/v3 v3.0.1 go-module (+1 duplicate) +github.com/mitchellh/copystructure v1.2.0 go-module +github.com/mitchellh/hashstructure/v2 v2.0.2 go-module (+1 duplicate) +github.com/mitchellh/mapstructure v1.5.0 go-module +github.com/mitchellh/reflectwalk v1.0.2 go-module +github.com/moby/buildkit v0.21.0 go-module (+1 duplicate) +github.com/moby/docker-image-spec v1.3.1 go-module (+1 duplicate) +github.com/moby/go-archive v0.1.0 go-module (+1 duplicate) +github.com/moby/ipvs v1.1.0 go-module +github.com/moby/locker v1.0.1 go-module (+3 duplicates) +github.com/moby/patternmatcher v0.6.0 go-module (+1 duplicate) +github.com/moby/pubsub v1.0.0 go-module +github.com/moby/spdystream v0.2.0 go-module +github.com/moby/spdystream v0.4.0 go-module +github.com/moby/swarmkit/v2 v2.0.0-20250103191802-8c1959736554 go-module +github.com/moby/sys/atomicwriter v0.1.0 go-module (+1 duplicate) +github.com/moby/sys/capability v0.4.0 go-module +github.com/moby/sys/mount v0.3.4 go-module +github.com/moby/sys/mountinfo v0.6.2 go-module (+4 duplicates) +github.com/moby/sys/mountinfo v0.7.1 go-module +github.com/moby/sys/mountinfo v0.7.2 go-module (+1 duplicate) +github.com/moby/sys/reexec v0.1.0 go-module +github.com/moby/sys/sequential v0.6.0 go-module (+1 duplicate) +github.com/moby/sys/signal v0.7.0 go-module (+1 duplicate) +github.com/moby/sys/signal v0.7.1 go-module (+1 duplicate) +github.com/moby/sys/symlink v0.2.0 go-module +github.com/moby/sys/symlink v0.3.0 go-module (+1 duplicate) +github.com/moby/sys/user v0.3.0 go-module (+4 duplicates) +github.com/moby/sys/user v0.4.0 go-module (+1 duplicate) +github.com/moby/sys/userns v0.1.0 go-module (+7 duplicates) +github.com/moby/term v0.5.2 go-module (+1 duplicate) +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd go-module (+1 duplicate) +github.com/modern-go/reflect2 v1.0.2 go-module (+1 duplicate) +github.com/morikuni/aec v1.0.0 go-module (+1 duplicate) +github.com/mrunalp/fileutils v0.5.1 go-module +github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 go-module (+1 duplicate) +github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f go-module +github.com/opencontainers/cgroups v0.0.1 go-module +github.com/opencontainers/go-digest v1.0.0 go-module (+6 duplicates) +github.com/opencontainers/image-spec v1.1.0 go-module (+4 duplicates) +github.com/opencontainers/image-spec v1.1.1 go-module (+1 duplicate) +github.com/opencontainers/runc v0.0.0-20250213225849-59923ef18c98 go-module +github.com/opencontainers/runtime-spec v1.1.0 go-module (+4 duplicates) +github.com/opencontainers/runtime-spec v1.2.0 go-module (+1 duplicate) +github.com/opencontainers/runtime-tools v0.9.1-0.20221107090550-2e043c6bd626 go-module (+1 duplicate) +github.com/opencontainers/selinux v1.11.0 go-module (+2 duplicates) +github.com/opencontainers/selinux v1.12.0 go-module +github.com/package-url/packageurl-go v0.1.1 go-module +github.com/pelletier/go-toml v1.9.5 go-module (+3 duplicates) +github.com/pelletier/go-toml/v2 v2.2.3 go-module +github.com/philhofer/fwd v1.1.2 go-module +github.com/pkg/errors v0.9.1 go-module (+6 duplicates) +github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 go-module (+1 duplicate) +github.com/pmezard/go-difflib v1.0.0 go-module (+1 duplicate) +github.com/prometheus/client_golang v1.16.0 go-module +github.com/prometheus/client_golang v1.20.5 go-module (+1 duplicate) +github.com/prometheus/client_model v0.3.0 go-module +github.com/prometheus/client_model v0.6.1 go-module (+1 duplicate) +github.com/prometheus/common v0.42.0 go-module +github.com/prometheus/common v0.55.0 go-module (+1 duplicate) +github.com/prometheus/procfs v0.10.1 go-module +github.com/prometheus/procfs v0.15.1 go-module (+1 duplicate) +github.com/r3labs/sse v0.0.0-20210224172625-26fe804710bc go-module +github.com/rivo/uniseg v0.2.0 go-module +github.com/rootless-containers/rootlesskit/v2 v2.3.4 go-module +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 go-module +github.com/seccomp/libseccomp-golang v0.10.0 go-module +github.com/secure-systems-lab/go-securesystemslib v0.4.0 go-module (+1 duplicate) +github.com/serialx/hashring v0.0.0-20200727003509-22c0c7ab6b1b go-module +github.com/shibumi/go-pathspec v1.3.0 go-module (+1 duplicate) +github.com/sirupsen/logrus v1.9.3 go-module (+8 duplicates) +github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 go-module +github.com/spdx/tools-golang v0.5.3 go-module +github.com/spf13/cobra v1.8.1 go-module +github.com/spf13/cobra v1.9.1 go-module +github.com/spf13/pflag v1.0.5 go-module +github.com/spf13/pflag v1.0.6 go-module (+1 duplicate) +github.com/stefanberger/go-pkcs11uri v0.0.0-20230803200340-78284954bff6 go-module +github.com/stretchr/testify v1.10.0 go-module (+1 duplicate) +github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 go-module (+2 duplicates) +github.com/tchap/go-patricia/v2 v2.3.1 go-module +github.com/theupdateframework/notary v0.7.0 go-module +github.com/tilt-dev/fsnotify v1.4.8-0.20220602155310-fff9c274a375 go-module +github.com/tinylib/msgp v1.1.8 go-module +github.com/tonistiigi/dchapes-mode v0.0.0-20250318174251-73d941a28323 go-module (+1 duplicate) +github.com/tonistiigi/fsutil v0.0.0-20250410151801-5b74a7ad7583 go-module (+1 duplicate) +github.com/tonistiigi/go-actions-cache v0.0.0-20250228231703-3e9a6642607f go-module +github.com/tonistiigi/go-archvariant v1.0.0 go-module +github.com/tonistiigi/go-csvvalue v0.0.0-20240710180619-ddb21b71c0b4 go-module (+1 duplicate) +github.com/tonistiigi/units v0.0.0-20180711220420-6950e57a87ea go-module (+1 duplicate) +github.com/tonistiigi/vt100 v0.0.0-20240514184818-90bafcd6abab go-module +github.com/urfave/cli v1.22.12 go-module (+1 duplicate) +github.com/urfave/cli v1.22.14 go-module +github.com/vbatts/tar-split v0.11.6 go-module +github.com/vishvananda/netlink v1.1.0 go-module +github.com/vishvananda/netlink v1.2.1-beta.2 go-module +github.com/vishvananda/netlink v1.3.1-0.20250209162617-655392bc778a go-module +github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df go-module +github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f go-module +github.com/vishvananda/netns v0.0.5 go-module +github.com/weppos/publicsuffix-go v0.15.1-0.20210511084619-b1f36a2d6c0b go-module +github.com/x448/float16 v0.8.4 go-module +github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb go-module +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 go-module +github.com/xeipuuv/gojsonschema v1.2.0 go-module +github.com/xhit/go-str2duration/v2 v2.1.0 go-module +github.com/zclconf/go-cty v1.16.0 go-module +github.com/zmap/zcrypto v0.0.0-20210511125630-18f1e0152cfc go-module +github.com/zmap/zlint/v3 v3.1.0 go-module +glib-networking 2.80.0-1build1 deb +glib-networking-common 2.80.0-1build1 deb +glib-networking-services 2.80.0-1build1 deb +gnupg 2.4.4-2ubuntu17.2 deb +gnupg-l10n 2.4.4-2ubuntu17.2 deb +gnupg-utils 2.4.4-2ubuntu17.2 deb +go.etcd.io/bbolt v1.3.10 go-module +go.etcd.io/bbolt v1.3.11 go-module +go.etcd.io/etcd/client/pkg/v3 v3.5.16 go-module +go.etcd.io/etcd/pkg/v3 v3.5.16 go-module +go.etcd.io/etcd/raft/v3 v3.5.16 go-module +go.etcd.io/etcd/server/v3 v3.5.16 go-module +go.mozilla.org/pkcs7 v0.0.0-20200128120323-432b2356ecb1 go-module +go.opencensus.io v0.24.0 go-module +go.opentelemetry.io/auto/sdk v1.1.0 go-module +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 go-module +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.56.0 go-module (+1 duplicate) +go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.56.0 go-module (+1 duplicate) +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0 go-module (+1 duplicate) +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.56.0 go-module (+1 duplicate) +go.opentelemetry.io/contrib/processors/baggagecopy v0.4.0 go-module +go.opentelemetry.io/otel v1.21.0 go-module (+1 duplicate) +go.opentelemetry.io/otel v1.31.0 go-module +go.opentelemetry.io/otel v1.34.0 go-module +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.31.0 go-module (+1 duplicate) +go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.31.0 go-module (+1 duplicate) +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 go-module +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.31.0 go-module (+1 duplicate) +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.19.0 go-module +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.31.0 go-module (+1 duplicate) +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.19.0 go-module +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.31.0 go-module (+1 duplicate) +go.opentelemetry.io/otel/metric v1.21.0 go-module (+1 duplicate) +go.opentelemetry.io/otel/metric v1.31.0 go-module +go.opentelemetry.io/otel/metric v1.34.0 go-module +go.opentelemetry.io/otel/sdk v1.21.0 go-module +go.opentelemetry.io/otel/sdk v1.31.0 go-module +go.opentelemetry.io/otel/sdk v1.34.0 go-module +go.opentelemetry.io/otel/sdk/metric v1.31.0 go-module +go.opentelemetry.io/otel/sdk/metric v1.34.0 go-module +go.opentelemetry.io/otel/trace v1.21.0 go-module (+1 duplicate) +go.opentelemetry.io/otel/trace v1.31.0 go-module +go.opentelemetry.io/otel/trace v1.34.0 go-module +go.opentelemetry.io/proto/otlp v1.0.0 go-module +go.opentelemetry.io/proto/otlp v1.3.1 go-module (+1 duplicate) +go.uber.org/atomic v1.9.0 go-module +go.uber.org/mock v0.5.1 go-module +go.uber.org/multierr v1.8.0 go-module +go.uber.org/zap v1.21.0 go-module +golang.org/x/crypto v0.31.0 go-module +golang.org/x/crypto v0.37.0 go-module (+1 duplicate) +golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2 go-module +golang.org/x/exp v0.0.0-20250408133849-7e4ce0ab07d0 go-module +golang.org/x/mod v0.17.0 go-module +golang.org/x/mod v0.24.0 go-module +golang.org/x/net v0.33.0 go-module (+3 duplicates) +golang.org/x/net v0.39.0 go-module (+2 duplicates) +golang.org/x/oauth2 v0.11.0 go-module +golang.org/x/oauth2 v0.25.0 go-module +golang.org/x/oauth2 v0.29.0 go-module +golang.org/x/sync v0.10.0 go-module (+4 duplicates) +golang.org/x/sync v0.13.0 go-module (+1 duplicate) +golang.org/x/sys v0.28.0 go-module (+5 duplicates) +golang.org/x/sys v0.32.0 go-module (+2 duplicates) +golang.org/x/term v0.27.0 go-module +golang.org/x/term v0.31.0 go-module +golang.org/x/text v0.21.0 go-module (+2 duplicates) +golang.org/x/text v0.24.0 go-module (+1 duplicate) +golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 go-module +golang.org/x/time v0.11.0 go-module (+1 duplicate) +google.golang.org/api v0.155.0 go-module +google.golang.org/genproto v0.0.0-20231211222908-989df2bf70f3 go-module (+4 duplicates) +google.golang.org/genproto v0.0.0-20240123012728-ef4313101c80 go-module +google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f go-module +google.golang.org/genproto/googleapis/api v0.0.0-20241021214115-324edc3d5d38 go-module +google.golang.org/genproto/googleapis/api v0.0.0-20250106144421-5f5ef82da422 go-module +google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda go-module (+4 duplicates) +google.golang.org/genproto/googleapis/rpc v0.0.0-20241021214115-324edc3d5d38 go-module +google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f go-module +google.golang.org/grpc v1.59.0 go-module (+4 duplicates) +google.golang.org/grpc v1.69.4 go-module +google.golang.org/grpc v1.71.1 go-module +google.golang.org/protobuf v1.33.0 go-module +google.golang.org/protobuf v1.35.2 go-module (+5 duplicates) +google.golang.org/protobuf v1.36.4 go-module +gopd 1.2.0 npm +gopkg.in/cenkalti/backoff.v1 v1.1.0 go-module +gopkg.in/inf.v0 v0.9.1 go-module (+2 duplicates) +gopkg.in/ini.v1 v1.67.0 go-module +gopkg.in/yaml.v2 v2.4.0 go-module (+2 duplicates) +gopkg.in/yaml.v3 v3.0.1 go-module (+2 duplicates) +gpg 2.4.4-2ubuntu17.2 deb +gpg-agent 2.4.4-2ubuntu17.2 deb +gpg-wks-client 2.4.4-2ubuntu17.2 deb +gpgconf 2.4.4-2ubuntu17.2 deb +gpgsm 2.4.4-2ubuntu17.2 deb +gpgv 2.4.4-2ubuntu17.2 deb +grep 3.11-4build1 deb +groff-base 1.23.0-3build2 deb +gsettings-desktop-schemas 46.1-0ubuntu1 deb +gzip 1.12-1ubuntu3 deb +has-flag 4.0.0 npm +has-symbols 1.1.0 npm +hasown 2.0.2 npm +hostname 3.23+nmu2ubuntu2 deb +http-errors 2.0.0 npm +httplib2 0.20.4 python +iconv-lite 0.4.24 npm +inherits 2.0.4 npm +init-system-helpers 1.66ubuntu1 deb +intel-media-va-driver 24.1.0+dfsg1-1 deb +ipaddr.js 1.9.1 npm +iproute2 6.1.0-1ubuntu6 deb +iptables 1.8.10-3ubuntu2 deb +iso-codes 4.16.0-1 deb +jake 10.9.2 npm +jq 1.7.1 binary +jq 1.7.1-3build1 deb +k8s.io/api v0.26.2 go-module +k8s.io/api v0.31.2 go-module +k8s.io/apimachinery v0.27.4 go-module (+1 duplicate) +k8s.io/apimachinery v0.31.2 go-module +k8s.io/apiserver v0.26.2 go-module +k8s.io/client-go v0.26.2 go-module +k8s.io/client-go v0.31.2 go-module +k8s.io/component-base v0.26.2 go-module +k8s.io/cri-api v0.27.1 go-module +k8s.io/klog/v2 v2.130.1 go-module (+1 duplicate) +k8s.io/klog/v2 v2.90.1 go-module +k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 go-module +k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 go-module +k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 go-module +kbd 2.6.4-2ubuntu2 deb +kclient 0.4.1 npm +keyboard-configuration 1.226ubuntu1 deb +keyboxd 2.4.4-2ubuntu17.2 deb +krb5-locales 1.20.1-6ubuntu2.5 deb +launchpadlib 1.11.0 python +lazr-restfulclient 0.14.6 python +lazr-uri 1.0.6 python +libacl1 2.3.2-1build1.1 deb +libalgorithm-c3-perl 0.11-2 deb +libaom3 3.8.2-2ubuntu0.1 deb +libapparmor1 4.0.1really4.0.1-0ubuntu0.24.04.4 deb +libappstream5 1.0.2-1build6 deb +libapt-pkg6.0t64 2.7.14build2 deb +libargon2-1 0~20190702+dfsg-4build1 deb +libasound2-data 1.2.11-1build2 deb +libasound2-plugins 1.2.7.1-1ubuntu5 deb +libasound2t64 1.2.11-1build2 deb +libass9 1:0.17.1-2build1 deb +libassuan0 2.5.6-1build1 deb +libasyncns0 0.8-6build4 deb +libatk-bridge2.0-0t64 2.52.0-1build1 deb +libatk-bridge2.0-dev 2.52.0-1build1 deb +libatk1.0-0t64 2.52.0-1build1 deb +libatk1.0-dev 2.52.0-1build1 deb +libatk1.0-doc 2.52.0-1build1 deb +libatspi2.0-0t64 2.52.0-1build1 deb +libatspi2.0-dev 2.52.0-1build1 deb +libattr1 1:2.5.2-1build1.1 deb +libaudit-common 1:3.1.2-2.1build1.1 deb +libaudit1 1:3.1.2-2.1build1.1 deb +libavahi-client3 0.8-13ubuntu6 deb +libavahi-common-data 0.8-13ubuntu6 deb +libavahi-common3 0.8-13ubuntu6 deb +libavc1394-0 0.5.4-5build3 deb +libavcodec60 7:6.1.1-3ubuntu5 deb +libavdevice60 7:6.1.1-3ubuntu5 deb +libavfilter9 7:6.1.1-3ubuntu5 deb +libavformat60 7:6.1.1-3ubuntu5 deb +libavutil58 7:6.1.1-3ubuntu5 deb +libb-hooks-endofscope-perl 0.28-1 deb +libb-hooks-op-check-perl 0.22-3build1 deb +libblas3 3.12.0-3build1.1 deb +libblkid-dev 2.39.3-9ubuntu6.2 deb +libblkid1 2.39.3-9ubuntu6.2 deb +libbluray2 1:1.3.4-1build1 deb +libbpf1 1:1.3.0-2build2 deb +libbrotli1 1.1.0-2build2 deb +libbs2b0 3.1.0+dfsg-7build1 deb +libbsd0 0.12.1-1build1.1 deb +libbz2-1.0 1.0.8-5.1build0.1 deb +libc-bin 2.39-0ubuntu8.4 deb +libc-dev-bin 2.39-0ubuntu8.4 deb +libc-devtools 2.39-0ubuntu8.4 deb +libc6 2.39-0ubuntu8.4 deb +libc6-dev 2.39-0ubuntu8.4 deb +libcaca0 0.99.beta20-4build2 deb +libcairo-gobject2 1.18.0-3build1 deb +libcairo2 1.18.0-3build1 deb +libcap-ng0 0.8.4-2build2 deb +libcap2 1:2.66-5ubuntu2.2 deb +libcap2-bin 1:2.66-5ubuntu2.2 deb +libcares2 1.27.0-1.0ubuntu1 deb +libcbor0.10 0.10.2-1.2ubuntu2 deb +libcdio-cdda2t64 10.2+2.0.1-1.1build2 deb +libcdio-paranoia2t64 10.2+2.0.1-1.1build2 deb +libcdio19t64 2.1.0-4.1ubuntu1.2 deb +libchromaprint1 1.5.1-5 deb +libcjson1 1.7.17-1 deb +libclass-c3-perl 0.35-2 deb +libclass-data-inheritable-perl 0.08-3 deb +libclass-inspector-perl 1.36-3 deb +libclass-method-modifiers-perl 2.15-1 deb +libclass-singleton-perl 1.6-2 deb +libcodec2-1.2 1.2.0-2build1 deb +libcom-err2 1.47.0-2.4~exp1ubuntu4.1 deb +libcrypt-dev 1:4.4.36-4build1 deb +libcrypt1 1:4.4.36-4build1 deb +libcryptsetup12 2:2.7.0-1ubuntu4.2 deb +libcups2t64 2.4.7-1.2ubuntu7.3 deb +libcupsfilters2-common 2.0.0-0ubuntu7.1 deb +libcupsfilters2t64 2.0.0-0ubuntu7.1 deb +libcurl3t64-gnutls 8.5.0-2ubuntu10.6 deb +libcurl4t64 8.5.0-2ubuntu10.6 deb +libdata-optlist-perl 0.114-1 deb +libdatetime-locale-perl 1:1.37-1 deb +libdatetime-perl 2:1.65-1build2 deb +libdatetime-timezone-perl 1:2.62-1+2024a deb +libdatrie1 0.2.13-3build1 deb +libdav1d7 1.4.1-1build1 deb +libdb5.3t64 5.3.28+dfsg2-7 deb +libdbus-1-3 1.14.10-4ubuntu4.1 deb +libdbus-1-dev 1.14.10-4ubuntu4.1 deb +libdc1394-25 2.2.6-4build1 deb +libdconf1 0.40.0-4build2 deb +libde265-0 1.0.15-1build3 deb +libdebconfclient0 0.271ubuntu3 deb +libdecor-0-0 0.2.2-1build2 deb +libdeflate0 1.19-1build1.1 deb +libdevel-callchecker-perl 0.008-2build3 deb +libdevel-stacktrace-perl 2.0500-1 deb +libdevmapper1.02.1 2:1.02.185-3ubuntu3.2 deb +libdrm-amdgpu1 2.4.122-1~ubuntu0.24.04.1 deb +libdrm-common 2.4.122-1~ubuntu0.24.04.1 deb +libdrm-intel1 2.4.122-1~ubuntu0.24.04.1 deb +libdrm-nouveau2 2.4.122-1~ubuntu0.24.04.1 deb +libdrm-radeon1 2.4.122-1~ubuntu0.24.04.1 deb +libdrm2 2.4.122-1~ubuntu0.24.04.1 deb +libduktape207 2.7.0+tests-0ubuntu3 deb +libdw1t64 0.190-1.1ubuntu0.1 deb +libdynaloader-functions-perl 0.003-3 deb +libedit2 3.1-20230828-1build1 deb +libegl-mesa0 24.2.8-1ubuntu1~24.04.1 deb +libegl1 1.7.0-1build1 deb +libelf1t64 0.190-1.1ubuntu0.1 deb +libepoxy0 1.5.10-1build1 deb +libeval-closure-perl 0.14-3 deb +libexception-class-perl 1.45-1 deb +libexif12 0.6.24-1build2 deb +libexpat1 2.6.1-2ubuntu0.3 deb +libexporter-tiny-perl 1.006002-1 deb +libext2fs2t64 1.47.0-2.4~exp1ubuntu4.1 deb +libfdisk1 2.39.3-9ubuntu6.2 deb +libffi-dev 3.4.6-1build1 deb +libffi8 3.4.6-1build1 deb +libfftw3-double3 3.3.10-1ubuntu3 deb +libfftw3-single3 3.3.10-1ubuntu3 deb +libfido2-1 1.14.0-1build3 deb +libfile-sharedir-perl 1.118-3 deb +libflac12t64 1.4.3+ds-2.1ubuntu2 deb +libflite1 2.2-6build3 deb +libfontconfig1 2.15.0-1.1ubuntu2 deb +libfontenc1 1:1.1.8-1build1 deb +libfreetype6 2.13.2+dfsg-1build3 deb +libfribidi0 1.0.13-3build1 deb +libfuse3-3 3.14.0-5build1 deb +libgbm1 24.2.8-1ubuntu1~24.04.1 deb +libgcc-s1 14.2.0-4ubuntu2~24.04 deb +libgcrypt20 1.10.3-2build1 deb +libgd3 2.3.3-9ubuntu5 deb +libgdbm-compat4t64 1.23-5.1build1 deb +libgdbm6t64 1.23-5.1build1 deb +libgdk-pixbuf-2.0-0 2.42.10+dfsg-3ubuntu3.1 deb +libgdk-pixbuf2.0-common 2.42.10+dfsg-3ubuntu3.1 deb +libgfortran5 14.2.0-4ubuntu2~24.04 deb +libgif7 5.2.2-1ubuntu1 deb +libgirepository-1.0-1 1.80.1-1 deb +libgirepository-2.0-0 2.80.0-6ubuntu3.4 deb +libgl1 1.7.0-1build1 deb +libgl1-mesa-dri 24.2.8-1ubuntu1~24.04.1 deb +libglapi-mesa 24.2.8-1ubuntu1~24.04.1 deb +libglib2.0-0t64 2.80.0-6ubuntu3.4 deb +libglib2.0-bin 2.80.0-6ubuntu3.4 deb +libglib2.0-data 2.80.0-6ubuntu3.4 deb +libglib2.0-dev 2.80.0-6ubuntu3.4 deb +libglib2.0-dev-bin 2.80.0-6ubuntu3.4 deb +libglu1-mesa 9.0.2-1.1build1 deb +libglvnd0 1.7.0-1build1 deb +libglx-mesa0 24.2.8-1ubuntu1~24.04.1 deb +libglx0 1.7.0-1build1 deb +libgme0 0.6.3-7build1 deb +libgmp10 2:6.3.0+dfsg-2ubuntu6.1 deb +libgnutls30t64 3.8.3-1.1ubuntu3.3 deb +libgomp1 14.2.0-4ubuntu2~24.04 deb +libgpg-error0 1.47-3build2.1 deb +libgraphite2-3 1.3.14-2build1 deb +libgs-common 10.02.1~dfsg1-0ubuntu7.6 deb +libgs10 10.02.1~dfsg1-0ubuntu7.6 deb +libgs10-common 10.02.1~dfsg1-0ubuntu7.6 deb +libgsm1 1.0.22-1build1 deb +libgssapi-krb5-2 1.20.1-6ubuntu2.5 deb +libgstreamer-plugins-base1.0-0 1.24.2-1ubuntu0.2 deb +libgstreamer1.0-0 1.24.2-1ubuntu0.1 deb +libharfbuzz0b 8.3.0-2build2 deb +libhash-merge-simple-perl 0.051-3 deb +libheif-plugin-aomdec 1.17.6-1ubuntu4.1 deb +libheif-plugin-libde265 1.17.6-1ubuntu4.1 deb +libheif1 1.17.6-1ubuntu4.1 deb +libhogweed6t64 3.9.1-2.2build1.1 deb +libhwy1t64 1.0.7-8.1build1 deb +libice6 2:1.0.10-1build3 deb +libicu74 74.2-1ubuntu3.1 deb +libid3tag0 0.15.1b-14build1 deb +libidn12 1.42-1build1 deb +libidn2-0 2.3.7-2build1.1 deb +libiec61883-0 1.2.0-6build1 deb +libigdgmm12 22.3.17+ds1-1 deb +libijs-0.35 0.35-15.1build1 deb +libimlib2t64 1.12.1-1.1build2 deb +libip4tc2 1.8.10-3ubuntu2 deb +libip6tc2 1.8.10-3ubuntu2 deb +libisl23 0.26-3build1.1 deb +libjack-jackd2-0 1.9.21~dfsg-3ubuntu3 deb +libjbig0 2.1-6.1ubuntu2 deb +libjbig2dec0 0.20-1build3 deb +libjpeg-turbo8 2.1.5-2ubuntu2 deb +libjpeg8 8c-2ubuntu11 deb +libjq1 1.7.1-3build1 deb +libjson-c5 0.17-1build1 deb +libjson-glib-1.0-0 1.8.0-2build2 deb +libjson-glib-1.0-common 1.8.0-2build2 deb +libjxl0.7 0.7.0-10.2ubuntu6 deb +libk5crypto3 1.20.1-6ubuntu2.5 deb +libkeyutils1 1.6.3-3build1 deb +libkmod2 31+20240202-2ubuntu7.1 deb +libkrb5-3 1.20.1-6ubuntu2.5 deb +libkrb5support0 1.20.1-6ubuntu2.5 deb +libksba8 1.6.6-1build1 deb +liblapack3 3.12.0-3build1.1 deb +liblcms2-2 2.14-2build1 deb +libldap-common 2.6.7+dfsg-1~exp1ubuntu8.2 deb +libldap2 2.6.7+dfsg-1~exp1ubuntu8.2 deb +liblerc4 4.0.0+ds-4ubuntu2 deb +liblilv-0-0 0.24.22-1build1 deb +liblist-moreutils-perl 0.430-2 deb +liblist-moreutils-xs-perl 0.430-3build5 deb +libllvm19 1:19.1.1-1ubuntu1~24.04.2 deb +liblocale-gettext-perl 1.07-6ubuntu5 deb +libltdl7 2.4.7-7build1 deb +liblz4-1 1.9.4-1build1.1 deb +liblzma5 5.6.1+really5.4.5-1ubuntu0.2 deb +libmagic-mgc 1:5.45-3build1 deb +libmagic1t64 1:5.45-3build1 deb +libmbedcrypto7t64 2.28.8-1 deb +libmd0 1.1.0-2build1.1 deb +libmnl0 1.0.5-2build1 deb +libmodule-implementation-perl 0.09-2 deb +libmodule-runtime-perl 0.016-2 deb +libmount-dev 2.39.3-9ubuntu6.2 deb +libmount1 2.39.3-9ubuntu6.2 deb +libmp3lame0 3.100-6build1 deb +libmpc3 1.3.1-1build1.1 deb +libmpfr6 4.2.1-1build1.1 deb +libmpg123-0t64 1.32.5-1ubuntu1.1 deb +libmro-compat-perl 0.15-2 deb +libmysofa1 1.3.2+dfsg-2ubuntu2 deb +libnamespace-autoclean-perl 0.29-2 deb +libnamespace-clean-perl 0.27-2 deb +libncursesw6 6.4+20240113-1ubuntu2 deb +libnetfilter-conntrack3 1.0.9-6build1 deb +libnettle8t64 3.9.1-2.2build1.1 deb +libnfnetlink0 1.0.2-2build1 deb +libnftnl11 1.2.6-2build1 deb +libnghttp2-14 1.59.0-1ubuntu0.2 deb +libnode109 18.19.1+dfsg-6ubuntu5 deb +libnorm1t64 1.5.9+dfsg-3.1build1 deb +libnotify-bin 0.8.3-1build2 deb +libnotify4 0.8.3-1build2 deb +libnpth0t64 1.6-3.1build1 deb +libnspr4 2:4.35-1.1build1 deb +libnss3 2:3.98-1build1 deb +libnuma1 2.0.18-1build1 deb +libobrender32v5 3.6.1-12build5 deb +libobt2v5 3.6.1-12build5 deb +libogg0 1.3.5-3build1 deb +libonig5 6.9.9-1build1 deb +libopenal-data 1:1.23.1-4build1 deb +libopenal1 1:1.23.1-4build1 deb +libopengl0 1.7.0-1build1 deb +libopenjp2-7 2.5.0-2ubuntu0.3 deb +libopenmpt0t64 0.7.3-1.1build3 deb +libopus0 1.4-1build1 deb +liborc-0.4-0t64 1:0.4.38-1ubuntu0.1 deb +libp11-kit0 0.25.3-4ubuntu2.1 deb +libpackage-stash-perl 0.40-1 deb +libpackagekit-glib2-18 1.2.8-2ubuntu1.2 deb +libpam-modules 1.5.3-5ubuntu5.1 deb +libpam-modules-bin 1.5.3-5ubuntu5.1 deb +libpam-runtime 1.5.3-5ubuntu5.1 deb +libpam-systemd 255.4-1ubuntu8.6 deb +libpam0g 1.5.3-5ubuntu5.1 deb +libpango-1.0-0 1.52.1+ds-1build1 deb +libpangocairo-1.0-0 1.52.1+ds-1build1 deb +libpangoft2-1.0-0 1.52.1+ds-1build1 deb +libpangoxft-1.0-0 1.52.1+ds-1build1 deb +libpaper-utils 1.1.29build1 deb +libpaper1 1.1.29build1 deb +libparams-classify-perl 0.015-2build5 deb +libparams-util-perl 1.102-2build3 deb +libparams-validationcompiler-perl 0.31-1 deb +libpci3 1:3.10.0-2build1 deb +libpciaccess0 0.17-3build1 deb +libpcre2-16-0 10.42-4ubuntu2.1 deb +libpcre2-32-0 10.42-4ubuntu2.1 deb +libpcre2-8-0 10.42-4ubuntu2.1 deb +libpcre2-dev 10.42-4ubuntu2.1 deb +libpcre2-posix3 10.42-4ubuntu2.1 deb +libperl5.38t64 5.38.2-3.2ubuntu0.1 deb +libpgm-5.3-0t64 5.3.128~dfsg-2.1build1 deb +libpipeline1 1.5.7-2 deb +libpixman-1-0 0.42.2-1build1 deb +libpkgconf3 1.8.1-2build1 deb +libplacebo338 6.338.2-2build1 deb +libpng16-16t64 1.6.43-5build1 deb +libpocketsphinx3 0.8.0+real5prealpha+1-15ubuntu5 deb +libpolkit-agent-1-0 124-2ubuntu1.24.04.2 deb +libpolkit-gobject-1-0 124-2ubuntu1.24.04.2 deb +libpoppler-cpp0t64 24.02.0-1ubuntu9.4 deb +libpoppler134 24.02.0-1ubuntu9.4 deb +libportaudio2 19.6.0-1.2build3 deb +libpostproc57 7:6.1.1-3ubuntu5 deb +libppd2 2:2.0.0-0ubuntu4.1 deb +libppd2-common 2:2.0.0-0ubuntu4.1 deb +libproc2-0 2:4.0.4-4ubuntu3.2 deb +libproxy1v5 0.5.4-4build1 deb +libpsl5t64 0.21.2-1.1build1 deb +libpthread-stubs0-dev 0.4-1build3 deb +libpulse0 1:16.1+dfsg1-2ubuntu10.1 deb +libpython3-stdlib 3.12.3-0ubuntu2 deb +libpython3.12-minimal 3.12.3-1ubuntu0.5 deb +libpython3.12-stdlib 3.12.3-1ubuntu0.5 deb +libqpdf29t64 11.9.0-1.1build1 deb +librabbitmq4 0.11.0-1build2 deb +librav1e0 0.7.1-2 deb +libraw1394-11 2.1.2-2build3 deb +libreadline8t64 8.2-4build1 deb +librist4 0.2.10+dfsg-2 deb +librole-tiny-perl 2.002004-1 deb +librsvg2-2 2.58.0+dfsg-1build1 deb +librtmp1 2.4+20151223.gitfa8646d.1-2build7 deb +librubberband2 3.3.0+dfsg-2build1 deb +libsamplerate0 0.2.2-4build1 deb +libsasl2-2 2.1.28+dfsg1-5ubuntu3.1 deb +libsasl2-modules 2.1.28+dfsg1-5ubuntu3.1 deb +libsasl2-modules-db 2.1.28+dfsg1-5ubuntu3.1 deb +libscalar-list-utils-perl 1:1.63-1build3 deb +libsdl2-2.0-0 2.30.0+dfsg-1ubuntu3.1 deb +libseccomp2 2.5.5-1ubuntu3.1 deb +libselinux1 3.5-2ubuntu2.1 deb +libselinux1-dev 3.5-2ubuntu2.1 deb +libsemanage-common 3.5-1build5 deb +libsemanage2 3.5-1build5 deb +libsensors-config 1:3.6.0-9build1 deb +libsensors5 1:3.6.0-9build1 deb +libsepol-dev 3.5-2build1 deb +libsepol2 3.5-2build1 deb +libserd-0-0 0.32.2-1 deb +libsharpyuv0 1.3.2-0.4build3 deb +libshine3 3.1.1-2build1 deb +libslang2 2.3.3-3build2 deb +libsm6 2:1.2.3-1build3 deb +libsmartcols1 2.39.3-9ubuntu6.2 deb +libsnapd-glib-2-1 1.64-0ubuntu5 deb +libsnappy1v5 1.1.10-1build1 deb +libsndfile1 1.2.2-1ubuntu5.24.04.1 deb +libsndio7.0 1.9.0-0.3build3 deb +libsodium23 1.0.18-1build3 deb +libsord-0-0 0.16.16-2build1 deb +libsoup-3.0-0 3.4.4-5ubuntu0.3 deb +libsoup-3.0-common 3.4.4-5ubuntu0.3 deb +libsoxr0 0.1.3-4build3 deb +libspecio-perl 0.48-1 deb +libspectre1 0.2.12-1build2 deb +libspeex1 1.2.1-2ubuntu2.24.04.1 deb +libspeexdsp1 1.2.1-1ubuntu3 deb +libsphinxbase3t64 0.8+5prealpha+1-17build2 deb +libsqlite3-0 3.45.1-1ubuntu2.1 deb +libsratom-0-0 0.6.16-1build1 deb +libsrt1.5-gnutls 1.5.3-1build2 deb +libss2 1.47.0-2.4~exp1ubuntu4.1 deb +libssh-4 0.10.6-2build2 deb +libssh-gcrypt-4 0.10.6-2build2 deb +libssl3t64 3.0.13-0ubuntu3.5 deb +libstartup-notification0 0.12-6build3 deb +libstdc++6 14.2.0-4ubuntu2~24.04 deb +libstemmer0d 2.2.0-4build1 deb +libsub-exporter-perl 0.990-1 deb +libsub-exporter-progressive-perl 0.001013-3 deb +libsub-identify-perl 0.14-3build3 deb +libsub-install-perl 0.929-1 deb +libsub-name-perl 0.27-1build3 deb +libsub-quote-perl 2.006008-1ubuntu1 deb +libsvtav1enc1d1 1.7.0+dfsg-2build1 deb +libswitch-perl 2.17-3 deb +libswresample4 7:6.1.1-3ubuntu5 deb +libswscale7 7:6.1.1-3ubuntu5 deb +libsystemd-shared 255.4-1ubuntu8.6 deb +libsystemd0 255.4-1ubuntu8.6 deb +libtasn1-6 4.19.0-3ubuntu0.24.04.1 deb +libtdb1 1.4.10-1build1 deb +libthai-data 0.1.29-2build1 deb +libthai0 0.1.29-2build1 deb +libtheora0 1.1.1+dfsg.1-16.1build3 deb +libtiff6 4.5.1+git230720-4ubuntu2.2 deb +libtinfo6 6.4+20240113-1ubuntu2 deb +libtirpc-common 1.3.4+ds-1.1build1 deb +libtirpc3t64 1.3.4+ds-1.1build1 deb +libtry-tiny-perl 0.31-2 deb +libtwolame0 0.4.0-2build3 deb +libuchardet0 0.0.8-1build1 deb +libudev1 255.4-1ubuntu8.6 deb +libudfread0 1.1.2-1build1 deb +libunibreak5 5.1-2build1 deb +libunistring5 1.1-2build1.1 deb +libunwind8 1.6.2-3build1.1 deb +libusb-1.0-0 2:1.0.27-1 deb +libutempter0 1.2.1-3build1 deb +libuuid1 2.39.3-9ubuntu6.2 deb +libuv1t64 1.48.0-1.1build1 deb +libva-drm2 2.20.0-2build1 deb +libva-x11-2 2.20.0-2build1 deb +libva2 2.20.0-2build1 deb +libvariable-magic-perl 0.63-1build3 deb +libvdpau1 1.5-2build1 deb +libvidstab1.1 1.1.0-2build1 deb +libvorbis0a 1.3.7-1build3 deb +libvorbisenc2 1.3.7-1build3 deb +libvorbisfile3 1.3.7-1build3 deb +libvpl2 2023.3.0-1build1 deb +libvpx9 1.14.0-1ubuntu2.1 deb +libvulkan1 1.3.275.0-1build1 deb +libwayland-client0 1.22.0-2.1build1 deb +libwayland-cursor0 1.22.0-2.1build1 deb +libwayland-egl1 1.22.0-2.1build1 deb +libwayland-server0 1.22.0-2.1build1 deb +libwebp7 1.3.2-0.4build3 deb +libwebpdemux2 1.3.2-0.4build3 deb +libwebpmux3 1.3.2-0.4build3 deb +libwebrtc-audio-processing1 0.3.1-0ubuntu6 deb +libwrap0 7.6.q-33 deb +libx11-6 2:1.8.7-1build1 deb +libx11-data 2:1.8.7-1build1 deb +libx11-dev 2:1.8.7-1build1 deb +libx11-xcb1 2:1.8.7-1build1 deb +libx264-164 2:0.164.3108+git31e19f9-1 deb +libx265-199 3.5-2build1 deb +libxau-dev 1:1.0.9-1build6 deb +libxau6 1:1.0.9-1build6 deb +libxaw7 2:1.0.14-1build2 deb +libxcb-damage0 1.15-1ubuntu2 deb +libxcb-dri2-0 1.15-1ubuntu2 deb +libxcb-dri3-0 1.15-1ubuntu2 deb +libxcb-glx0 1.15-1ubuntu2 deb +libxcb-present0 1.15-1ubuntu2 deb +libxcb-randr0 1.15-1ubuntu2 deb +libxcb-render0 1.15-1ubuntu2 deb +libxcb-shape0 1.15-1ubuntu2 deb +libxcb-shm0 1.15-1ubuntu2 deb +libxcb-sync1 1.15-1ubuntu2 deb +libxcb-util1 0.4.0-1build3 deb +libxcb-xfixes0 1.15-1ubuntu2 deb +libxcb1 1.15-1ubuntu2 deb +libxcb1-dev 1.15-1ubuntu2 deb +libxcomposite1 1:0.4.5-1build3 deb +libxcursor1 1:1.2.1-1build1 deb +libxcvt0 0.1.2-1build1 deb +libxdamage1 1:1.1.6-1build1 deb +libxdmcp-dev 1:1.1.3-0ubuntu6 deb +libxdmcp6 1:1.1.3-0ubuntu6 deb +libxext-dev 2:1.3.4-1build2 deb +libxext6 2:1.3.4-1build2 deb +libxfixes-dev 1:6.0.0-2build1 deb +libxfixes3 1:6.0.0-2build1 deb +libxfont2 1:2.0.6-1build1 deb +libxft2 2.3.6-1build1 deb +libxi-dev 2:1.8.1-1build1 deb +libxi6 2:1.8.1-1build1 deb +libxinerama1 2:1.1.4-3build1 deb +libxkbcommon0 1.6.0-1build1 deb +libxkbfile1 1:1.1.0-1build4 deb +libxml2 2.9.14+dfsg-1.3ubuntu3.3 deb +libxmlb2 0.3.18-1 deb +libxmu6 2:1.1.3-3build2 deb +libxmuu1 2:1.1.3-3build2 deb +libxpm4 1:3.5.17-1build2 deb +libxrandr2 2:1.5.2-2build1 deb +libxrender1 1:0.9.10-1.1build1 deb +libxshmfence1 1.3-1build5 deb +libxss1 1:1.2.3-1build3 deb +libxstring-perl 0.005-2build3 deb +libxt6t64 1:1.2.1-1.2build1 deb +libxtables12 1.8.10-3ubuntu2 deb +libxtst-dev 2:1.2.3-1.1build1 deb +libxtst6 2:1.2.3-1.1build1 deb +libxv1 2:1.0.11-1.1build1 deb +libxvidcore4 2:1.3.7-1build1 deb +libxvmc1 2:1.0.12-2build3 deb +libxxf86dga1 2:1.1.5-1build1 deb +libxxf86vm1 1:1.1.4-1build4 deb +libxxhash0 0.8.2-2build1 deb +libyaml-0-2 0.2.5-1build1 deb +libyaml-tiny-perl 1.74-1 deb +libzimg2 3.0.5+ds1-1build1 deb +libzix-0-0 0.4.2-2build1 deb +libzmq5 4.3.5-1build2 deb +libzstd1 1.5.5+dfsg2-2build1.1 deb +libzvbi-common 0.2.42-2 deb +libzvbi0t64 0.2.42-2 deb +linux-libc-dev 6.8.0-60.63 deb +locales 2.39-0ubuntu8.4 deb +locales-all 2.39-0ubuntu8.4 deb +login 1:4.13+dfsg1-4ubuntu3.2 deb +logsave 1.47.0-2.4~exp1ubuntu4.1 deb +lsb-release 12.0-2 deb +man-db 2.12.0-4build2 deb +manpages 6.7-2 deb +manpages-dev 6.7-2 deb +math-intrinsics 1.1.0 npm +mawk 1.3.4.20240123-1build1 deb +media-typer 0.3.0 npm +media-types 10.1.0 deb +merge-descriptors 1.0.3 npm +mesa-libgallium 24.2.8-1ubuntu1~24.04.1 deb +mesa-va-drivers 24.2.8-1ubuntu1~24.04.1 deb +mesa-vulkan-drivers 24.2.8-1ubuntu1~24.04.1 deb +methods 1.1.2 npm +mime 1.6.0 npm +mime-db 1.52.0 npm +mime-types 2.1.35 npm +minimatch 3.1.2 npm +minimatch 5.1.6 npm +mount 2.39.3-9ubuntu6.2 deb +ms 2.0.0 npm +ms 2.1.3 npm (+4 duplicates) +nan 2.22.2 npm +ncurses-base 6.4+20240113-1ubuntu2 deb +ncurses-bin 6.4+20240113-1ubuntu2 deb +negotiator 0.6.3 npm +netbase 6.4 deb +netcat-openbsd 1.226-1ubuntu2 deb +nginx 1.24.0-2ubuntu7.3 deb +nginx-common 1.24.0-2ubuntu7.3 deb +node-acorn 8.8.1+ds+~cs25.17.7-2 deb +node-busboy 1.6.0+~cs2.6.0-2 deb +node-cjs-module-lexer 1.2.3+dfsg-1 deb +node-undici 5.26.3+dfsg1+~cs23.10.12-2 deb +node-xtend 4.0.2-3 deb +nodejs 18.19.1+dfsg-6ubuntu5 deb +oauthlib 3.2.2 python +object-assign 4.1.1 npm +object-inspect 1.13.4 npm +ocl-icd-libopencl1 2.3.2-1build1 deb +on-finished 2.4.1 npm +openbox 3.6.1-12build5 deb +openssh-client 1:9.6p1-3ubuntu13.11 deb +openssl 3.0.13-0ubuntu3.5 deb +packagekit 1.2.8-2ubuntu1.2 deb +packaging 24.0 python +parseurl 1.3.3 npm +passwd 1:4.13+dfsg1-4ubuntu3.2 deb +path-to-regexp 0.1.12 npm +pci.ids 0.0~2024.03.31-1ubuntu0.1 deb +pciutils 1:3.10.0-2build1 deb +perl 5.38.2-3.2ubuntu0.1 deb +perl-base 5.38.2-3.2ubuntu0.1 deb +perl-modules-5.38 5.38.2-3.2ubuntu0.1 deb +pinentry-curses 1.2.1-3ubuntu5 deb +pkgconf 1.8.1-2build1 deb +pkgconf-bin 1.8.1-2build1 deb +polkitd 124-2ubuntu1.24.04.2 deb +poppler-data 0.4.12-1 deb +poppler-utils 24.02.0-1ubuntu9.4 deb +printer-driver-cups-pdf 3.0.1-14build2 deb +procps 2:4.0.4-4ubuntu3.2 deb +proxy-addr 2.0.7 npm +publicsuffix 20231001.0357-0.1 deb +pulseaudio 1:16.1+dfsg1-2ubuntu10.1 deb +pulseaudio-utils 1:16.1+dfsg1-2ubuntu10.1 deb +pulseaudio2 0.5.5 npm +pygobject 3.48.2 python +pyjwt 2.7.0 python +pyparsing 3.1.1 python +python-apt 2.7.7+ubuntu4 python +python-apt-common 2.7.7ubuntu4 deb +python3 3.12.3-0ubuntu2 deb +python3-apt 2.7.7ubuntu4 deb +python3-blinker 1.7.0-1 deb +python3-cffi-backend 1.16.0-2build1 deb +python3-cryptography 41.0.7-4ubuntu0.1 deb +python3-dbus 1.3.2-5build3 deb +python3-distro 1.9.0-1 deb +python3-gi 3.48.2-1 deb +python3-httplib2 0.20.4-3 deb +python3-jwt 2.7.0-1 deb +python3-launchpadlib 1.11.0-6 deb +python3-lazr.restfulclient 0.14.6-1 deb +python3-lazr.uri 1.0.6-3 deb +python3-minimal 3.12.3-0ubuntu2 deb +python3-oauthlib 3.2.2-1 deb +python3-packaging 24.0-1 deb +python3-pkg-resources 68.1.2-2ubuntu1.1 deb +python3-pyparsing 3.1.1-1 deb +python3-six 1.16.0-4 deb +python3-software-properties 0.99.49.2 deb +python3-wadllib 1.3.6-5 deb +python3-xdg 0.28-2 deb +python3.12 3.12.3-1ubuntu0.5 deb +python3.12-minimal 3.12.3-1ubuntu0.5 deb +pyxdg 0.28 python +qs 6.13.0 npm +range-parser 1.2.1 npm +raw-body 2.5.2 npm +readline-common 8.2-4build1 deb +resenje.org/singleflight v0.4.3 go-module +rpcsvc-proto 1.4.2-0ubuntu7 deb +safe-buffer 5.2.1 npm +safer-buffer 2.1.2 npm +sed 4.9-2build1 deb +send 0.19.0 npm +sensible-utils 0.0.22 deb +serve-static 1.16.2 npm +session-migration 0.3.9build1 deb +setprototypeof 1.2.0 npm +sgml-base 1.31 deb +shared-mime-info 2.4-4 deb +side-channel 1.1.0 npm +side-channel-list 1.0.0 npm +side-channel-map 1.0.1 npm +side-channel-weakmap 1.0.2 npm +sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd go-module (+1 duplicate) +sigs.k8s.io/structured-merge-diff/v4 v4.2.3 go-module +sigs.k8s.io/structured-merge-diff/v4 v4.4.1 go-module +sigs.k8s.io/yaml v1.3.0 go-module (+1 duplicate) +sigs.k8s.io/yaml v1.4.0 go-module (+1 duplicate) +six 1.16.0 python +socket.io 4.8.1 npm +socket.io-adapter 2.5.5 npm +socket.io-parser 4.2.4 npm +software-properties-common 0.99.49.2 deb +ssl-cert 1.1.2ubuntu1 deb +statuses 2.0.1 npm +stdlib go1.23.7 go-module (+5 duplicates) +stdlib go1.23.8 go-module (+3 duplicates) +streamsearch 1.1.0 npm +sudo 1.9.15p5-3ubuntu5 deb +supports-color 7.2.0 npm +systemd 255.4-1ubuntu8.6 deb +systemd-dev 255.4-1ubuntu8.6 deb +systemd-sysv 255.4-1ubuntu8.6 deb +sysvinit-utils 3.08-6ubuntu3 deb +tags.cncf.io/container-device-interface v0.8.1 go-module +tags.cncf.io/container-device-interface v1.0.1 go-module (+1 duplicate) +tags.cncf.io/container-device-interface/specs-go v0.8.0 go-module +tags.cncf.io/container-device-interface/specs-go v1.0.0 go-module +tar 1.35+dfsg-3build1 deb +toidentifier 1.0.1 npm +type-is 1.6.18 npm +tzdata 2025b-0ubuntu0.24.04 deb +ubuntu-keyring 2023.11.28.1 deb +ucf 3.0043+nmu1 deb +udev 255.4-1ubuntu8.6 deb +undici 5.26.3 npm +undici-types 6.21.0 npm +unminimize 0.2.1 deb +unpipe 1.0.0 npm +util-linux 2.39.3-9ubuntu6.2 deb +utils-merge 1.0.1 npm +uuid-dev 2.39.3-9ubuntu6.2 deb +vary 1.1.2 npm +vulkan-tools 1.3.275.0+dfsg1-1 deb +wadllib 1.3.6 python +ws 8.17.1 npm +x11-apps 7.7+11build3 deb +x11-common 1:7.7+23ubuntu3 deb +x11-session-utils 7.7+6build2 deb +x11-utils 7.7+6build2 deb +x11-xkb-utils 7.7+8build2 deb +x11-xserver-utils 7.7+10build2 deb +x11proto-dev 2023.2-1 deb +xauth 1:1.1.2-1build1 deb +xbitmaps 1.1.1-2.2 deb +xdg 5 python +xdg-utils 1.1.3-4.1ubuntu3 deb +xfonts-base 1:1.0.5+nmu1 deb +xfonts-encodings 1:1.0.5-0ubuntu2 deb +xfonts-utils 1:7.7+6build3 deb +xkb-data 2.41-2ubuntu1.1 deb +xml-core 0.19 deb +xorg-sgml-doctools 1:1.11-1.1 deb +xserver-common 2:21.1.12-1ubuntu1.3 deb +xserver-xorg-core 2:21.1.12-1ubuntu1.3 deb +xserver-xorg-video-amdgpu 23.0.0-1build1 deb +xserver-xorg-video-ati 1:22.0.0-1build1 deb +xserver-xorg-video-intel 2:2.99.917+git20210115-1build1 deb +xserver-xorg-video-nouveau 1:1.0.17-2build1 deb +xserver-xorg-video-qxl 0.1.6-1build1 deb +xserver-xorg-video-radeon 1:22.0.0-1build1 deb +xtend 4.0.2 npm +xterm 390-1ubuntu3 deb +xtrans-dev 1.4.0-1 deb +xutils 1:7.7+23ubuntu3 deb +zlib1g 1:1.3.dfsg-3.1ubuntu2.1 deb +zlib1g-dev 1:1.3.dfsg-3.1ubuntu2.1 deb diff --git a/readme-vars.yml b/readme-vars.yml index 6ddeb9e..f86f10e 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -6,41 +6,103 @@ project_url: "https://www.audacityteam.org/" project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/audacity-logo.png" project_blurb: "[Audacity]({{ project_url }}) is an easy-to-use, multi-track audio editor and recorder. Developed by a group of volunteers as open source." project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}" +project_categories: "Audio Processing" project_blurb_optional_extras_enabled: false - # supported architectures available_architectures: - - { arch: "{{ arch_x86_64 }}", tag: "latest"} - - { arch: "{{ arch_arm64 }}", tag: "arm64v8-latest"} - - { arch: "{{ arch_armhf }}", tag: "arm32v7-latest"} - + - {arch: "{{ arch_x86_64 }}", tag: "latest"} # development version development_versions: false - # container parameters common_param_env_vars_enabled: true param_container_name: "{{ project_name }}" -param_usage_include_env: true -param_env_vars: - - { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London." } param_usage_include_vols: true param_volumes: - - { vol_path: "/config", vol_host_path: "/path/to/config", desc: "Users home directory in the container, stores program settings and images" } + - {vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Users home directory in the container, stores program settings and images"} param_usage_include_ports: true param_ports: - - { external_port: "3000", internal_port: "3000", port_desc: "Audacity desktop gui." } - + - {external_port: "3000", internal_port: "3000", port_desc: "Audacity desktop gui."} + - {external_port: "3001", internal_port: "3001", port_desc: "Audacity desktop gui HTTPS."} +# Kasm blurb settings +kasm_blurb: true +show_nvidia: true +external_http_port: "3000" +external_https_port: "3001" +noto_fonts: "fonts-noto-cjk" # application setup block app_setup_block_enabled: true app_setup_block: | The application can be accessed at: - - * http://yourhost:3000/ - - By default the user/pass is abc/abc, if you change your password or want to login manually to the GUI session for any reason use the following link: - - * http://yourhost:3000/?login=true + * http://yourhost:3000/ + * https://yourhost:3001/ +# init diagram +init_diagram: | + "audacity:latest": { + docker-mods + base { + fix-attr +\nlegacy cont-init + } + docker-mods -> base + legacy-services + custom services + init-services -> legacy-services + init-services -> custom services + custom services -> legacy-services + legacy-services -> ci-service-check + init-migrations -> init-adduser + init-kasmvnc-end -> init-config + init-os-end -> init-config + init-config -> init-config-end + init-crontab-config -> init-config-end + init-config -> init-crontab-config + init-mods-end -> init-custom-files + init-adduser -> init-device-perms + base -> init-envfile + init-os-end -> init-kasmvnc + init-nginx -> init-kasmvnc-config + init-video -> init-kasmvnc-end + base -> init-migrations + init-config-end -> init-mods + init-mods-package-install -> init-mods-end + init-mods -> init-mods-package-install + init-kasmvnc -> init-nginx + init-adduser -> init-os-end + init-device-perms -> init-os-end + init-envfile -> init-os-end + init-custom-files -> init-services + init-kasmvnc-config -> init-video + init-services -> svc-cron + svc-cron -> legacy-services + init-services -> svc-de + svc-nginx -> svc-de + svc-de -> legacy-services + init-services -> svc-docker + svc-de -> svc-docker + svc-docker -> legacy-services + init-services -> svc-kasmvnc + svc-pulseaudio -> svc-kasmvnc + svc-kasmvnc -> legacy-services + init-services -> svc-kclient + svc-kasmvnc -> svc-kclient + svc-kclient -> legacy-services + init-services -> svc-nginx + svc-kclient -> svc-nginx + svc-nginx -> legacy-services + init-services -> svc-pulseaudio + svc-pulseaudio -> legacy-services + } + Base Images: { + "baseimage-kasmvnc:ubuntunoble" <- "baseimage-ubuntu:noble" + } + "audacity:latest" <- Base Images # changelog changelogs: - - { date: "07.04.21:", desc: "Initial release." } + - {date: "31.10.24:", desc: "Fix artifact name."} + - {date: "19.08.24:", desc: "Rebase to noble."} + - {date: "10.02.24:", desc: "Update Readme with new env vars, ingest proper PWA icon, and pre-extract appimage."} + - {date: "05.05.23:", desc: "Start Audacity in full screen."} + - {date: "18.03.23:", desc: "Rebase to KasmVNC base image."} + - {date: "13.12.22:", desc: "Rebase to Jammy."} + - {date: "14.09.21:", desc: "Use the official appimage, switch to single arch (x86_64). Armhf and aarch64 users can remain on version 3.0.2 but there won't be further updates."} + - {date: "07.04.21:", desc: "Initial release."} diff --git a/root/defaults/autostart b/root/defaults/autostart index e598a38..982bdb9 100644 --- a/root/defaults/autostart +++ b/root/defaults/autostart @@ -1 +1 @@ -LD_LIBRARY_PATH="/usr/local/lib/audacity" audacity +/opt/audacity/AppRun diff --git a/root/defaults/menu.xml b/root/defaults/menu.xml new file mode 100644 index 0000000..9bd798f --- /dev/null +++ b/root/defaults/menu.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<openbox_menu xmlns="http://openbox.org/3.4/menu"> +<menu id="root-menu" label="MENU"> +<item label="xterm" icon="/usr/share/pixmaps/xterm-color_48x48.xpm"><action name="Execute"><command>/usr/bin/xterm</command></action></item> +<item label="Audacity" icon="/opt/audacity/share/icons/hicolor/scalable/apps/audacity.svg"><action name="Execute"><command>/opt/audacity/AppRun</command></action></item> +</menu> +</openbox_menu>