Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[DOCKER-COMPOSE] - Fix manual update ([#546](https://github.com/getwud/wud/issues/546)) #574

Merged
merged 1 commit into from
Jan 21, 2025

:fire: Fix default healthcheck when http server is disabled ([#562](h…

336f2d4
Select commit
Loading
Failed to load commit list.
Merged

[DOCKER-COMPOSE] - Fix manual update ([#546](https://github.com/getwud/wud/issues/546)) #574

:fire: Fix default healthcheck when http server is disabled ([#562](h…
336f2d4
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Branch cancelled Jan 21, 2025 in 35s

Build Canceled

The build canceled. This is a change from the previous build, which failed.

Details

This is a normal build for the fix/#546_compose_manual_update branch. You should be able to reproduce it by checking out the branch locally.

Jobs and Stages

This build only has a single job.
You can use jobs to test against multiple versions of your runtime or dependencies, or to speed up your build.

Build Configuration

Build Option Setting
Language Shell
Operating System Linux (Jammy)
Build Configuration
{
  "language": "shell",
  "os": [
    "linux"
  ],
  "dist": "jammy",
  "env": [
    "global={:CC_TEST_REPORTER_ID=>\"46ef31dae5b656e0f4be410a86bd83bdcf73e7d27ab33a704c197e6fe4bf02a0\"}={:DOCKER_PLATFORMS=>\"linux/arm/v7,linux/arm64/v8,linux/amd64\"}={:IMAGE_NAME=>\"wud\"}={:NODE_VERSION=>\"23\"}"
  ],
  "before_install": [
    "export IMAGE_VERSION=${TRAVIS_BRANCH//\\//\\_}",
    "export IMAGE_VERSION=${IMAGE_VERSION//\\#/\\_}",
    "sudo install -m 0755 -d /etc/apt/keyrings",
    "sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc",
    "sudo chmod a+r /etc/apt/keyrings/docker.asc",
    "echo \"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo \"$VERSION_CODENAME\") stable\" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null",
    "sudo apt-get update",
    "sudo apt-get install -y docker-buildx-plugin",
    "docker version",
    "nvm install $NODE_VERSION",
    "curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./app/cc-test-reporter",
    "(cd app && chmod +x ./cc-test-reporter)",
    "(cd app && ./cc-test-reporter before-build)"
  ],
  "install": [
    "(cd app && npm ci)",
    "(cd e2e && npm ci)",
    "(cd ui && npm ci)"
  ],
  "script": [
    "set -e",
    "(cd app && npm run lint)",
    "(cd e2e && npm run lint)",
    "(cd ui && npm run lint)",
    "(cd app && npm test)",
    "(cd app && ./cc-test-reporter after-build -t lcov --debug --exit-code $TRAVIS_TEST_RESULT)",
    "(cd ui && npm run build)",
    "docker build -t wud --build-arg WUD_VERSION=$IMAGE_VERSION .",
    "docker login registry.gitlab.com -u \"$GITLAB_USERNAME\" -p \"$GITLAB_TOKEN\"",
    "docker pull nginx:1.10-alpine",
    "docker pull nginx:1.20-alpine",
    "docker tag nginx:1.10-alpine nginx:latest",
    "docker tag nginx:1.10-alpine fmartinou/test:1.0.0",
    "docker tag nginx:1.10-alpine 229211676173.dkr.ecr.eu-west-1.amazonaws.com/test:1.0.0",
    "docker tag nginx:1.10-alpine 229211676173.dkr.ecr.eu-west-1.amazonaws.com/sub/test:1.0.0",
    "docker tag nginx:1.10-alpine 229211676173.dkr.ecr.eu-west-1.amazonaws.com/sub/sub/test:1.0.0",
    "docker pull homeassistant/home-assistant",
    "docker pull homeassistant/home-assistant:2021.6.1",
    "docker pull omnidbteam/omnidb",
    "docker pull pihole/pihole",
    "docker pull pihole/pihole:v5.7",
    "docker pull writl/pyload",
    "docker pull traefik",
    "docker pull traefik:2.4.5",
    "docker pull vaultwarden/server",
    "docker pull vaultwarden/server:1.32.7-alpine",
    "docker pull jeeaaasustest/youtube-dl",
    "docker run -d --name ecr_sub_sub_test --label 'wud.watch=true' 229211676173.dkr.ecr.eu-west-1.amazonaws.com/sub/sub/test:1.0.0",
    "docker run -d --name ecr_sub_test     --label 'wud.watch=true' 229211676173.dkr.ecr.eu-west-1.amazonaws.com/sub/test:1.0.0",
    "docker run -d --name ecr_test         --label 'wud.watch=true' 229211676173.dkr.ecr.eu-west-1.amazonaws.com/test:1.0.0",
    "docker run -d --name ghcr_radarr              --label 'wud.watch=true' --label 'wud.tag.include=^\\d+\\.\\d+\\.\\d+\\.\\d+-ls\\d+$'               ghcr.io/linuxserver/radarr:5.14.0.9383-ls245",
    "docker run -d --name gitlab_test              --label 'wud.watch=true' --label 'wud.tag.include=^\\d+\\.\\d+\\.\\d+$'                         registry.gitlab.com/manfred-martin/docker-registry-test:1.0.0",
    "docker run -d --name hub_homeassistant_202161 --label 'wud.watch=true' --label 'wud.tag.include=^\\d+\\.\\d+.\\d+$' --label 'wud.link.template=https://github.com/home-assistant/core/releases/tag/${major}.${minor}.${patch}' homeassistant/home-assistant:2021.6.1",
    "docker run -d --name hub_homeassistant_latest --label 'wud.watch=true' --label 'wud.watch.digest=true' --label 'wud.tag.include=^latest$' homeassistant/home-assistant",
    "docker run -d --name hub_nginx_120            --label 'wud.watch=true' --label 'wud.tag.include=^\\d+\\.\\d+-alpine$'                        nginx:1.20-alpine",
    "docker run -d --name hub_nginx_latest         --label 'wud.watch=true' --label 'wud.watch.digest=true' --label 'wud.tag.include=^latest$' nginx",
    "docker run -d --name hub_omnidb_latest        --label 'wud.watch=true' --label 'wud.watch.digest=true' --label 'wud.tag.include=^latest$' omnidbteam/omnidb",
    "docker run -d --name hub_pihole_57            --label 'wud.watch=true' --label 'wud.tag.include=^v\\d+\\.\\d+.\\d+$'                          pihole/pihole:v5.7",
    "docker run -d --name hub_pihole_latest        --label 'wud.watch=true' --label 'wud.watch.digest=true' --label 'wud.tag.include=^latest$' pihole/pihole",
    "docker run -d --name hub_pyload_latest        --label 'wud.watch=true' --label 'wud.watch.digest=true' --label 'wud.tag.include=^latest$' writl/pyload",
    "docker run -d --name hub_traefik_245          --label 'wud.watch=true' --label 'wud.tag.include=^\\d+\\.\\d+.\\d+$'                           traefik:2.4.5",
    "docker run -d --name hub_traefik_latest       --label 'wud.watch=true' --label 'wud.watch.digest=true' --label 'wud.tag.include=^latest$' traefik",
    "docker run -d --name hub_vaultwarden_1222     --label 'wud.watch=true' --label 'wud.tag.include=^\\d+\\.\\d+.\\d+-alpine$'                    -e I_REALLY_WANT_VOLATILE_STORAGE=true vaultwarden/server:1.32.7-alpine",
    "docker run -d --name hub_vaultwarden_latest   --label 'wud.watch=true' --label 'wud.watch.digest=true' --label 'wud.tag.include=^latest$' -e I_REALLY_WANT_VOLATILE_STORAGE=true vaultwarden/server",
    "docker run -d --name hub_youtubedb_latest     --label 'wud.watch=true' --label 'wud.watch.digest=true' --label 'wud.tag.include=^latest$' jeeaaasustest/youtube-dl",
    "docker run -d --name lscr_radarr              --label 'wud.watch=true' --label 'wud.tag.include=^\\d+\\.\\d+\\.\\d+\\.\\d+-ls\\d+$'               lscr.io/linuxserver/radarr:5.14.0.9383-ls245",
    "docker run -d --name quay_prometheus          --label 'wud.watch=true' --label 'wud.tag.include=^v\\d+\\.\\d+\\.\\d+$'                         quay.io/prometheus/prometheus:v2.52.0",
    "docker run -d --name wud --publish 3000:3000 --volume /var/run/docker.sock:/var/run/docker.sock --env WUD_TRIGGER_MOCK_EXAMPLE_MOCK=mock --env WUD_WATCHER_LOCAL_WATCHBYDEFAULT=false --env WUD_REGISTRY_ACR_PRIVATE_CLIENTID=\"$ACR_CLIENT_ID\" --env WUD_REGISTRY_ACR_PRIVATE_CLIENTSECRET=\"$ACR_CLIENT_SECRET\" --env WUD_REGISTRY_ECR_PRIVATE_ACCESSKEYID=\"$AWS_ACCESSKEY_ID\" --env WUD_REGISTRY_ECR_PRIVATE_SECRETACCESSKEY=\"$AWS_SECRET_ACCESSKEY\" --env WUD_REGISTRY_ECR_PRIVATE_REGION=eu-west-1 --env WUD_REGISTRY_GCR_PRIVATE_CLIENTEMAIL=\"$GCR_CLIENT_EMAIL\" --env WUD_REGISTRY_GCR_PRIVATE_PRIVATEKEY=\"$GCR_PRIVATE_KEY\" --env WUD_REGISTRY_GHCR_PRIVATE_USERNAME=\"$GITHUB_USERNAME\" --env WUD_REGISTRY_GHCR_PRIVATE_TOKEN=\"$GITHUB_TOKEN\" --env WUD_REGISTRY_GITLAB_PRIVATE_TOKEN=\"$GITLAB_TOKEN\" --env WUD_REGISTRY_LSCR_PRIVATE_USERNAME=\"$GITHUB_USERNAME\" --env WUD_REGISTRY_LSCR_PRIVATE_TOKEN=\"$GITHUB_TOKEN\" --env WUD_AUTH_BASIC_JOHN_USER=\"john\" --env WUD_AUTH_BASIC_JOHN_HASH='$apr1$8zDVtSAY$62WBh9DspNbUKMZXYRsjS/' wud\n",
    "sleep 20",
    "(cd e2e && npm run cucumber)",
    "export DOCKER_TAGS=\"-t ${DOCKER_USERNAME}/${IMAGE_NAME}:${IMAGE_VERSION} -t ghcr.io/${GITHUB_USERNAME}/${IMAGE_NAME}:${IMAGE_VERSION}\"",
    "if [ ! -z \"$TRAVIS_TAG\" ]\nthen\n  export DOCKER_TAGS=\"${DOCKER_TAGS} -t ${DOCKER_USERNAME}/${IMAGE_NAME}:latest -t ghcr.io/${GITHUB_USERNAME}/${IMAGE_NAME}:latest\"\nfi\n",
    "docker login         -u \"$DOCKER_USERNAME\" -p \"$DOCKER_PASSWORD\"",
    "docker login ghcr.io -u \"$GITHUB_USERNAME\" -p \"$GITHUB_TOKEN\"",
    "docker buildx create --use",
    "echo \"Building & pushing ${DOCKER_TAGS}\"",
    "docker buildx build --push --platform ${DOCKER_PLATFORMS} --build-arg WUD_VERSION=${IMAGE_VERSION} ${DOCKER_TAGS} ."
  ]
}