Netflix / dispatch-docker

Apache License 2.0
204 stars 87 forks source link

Has anyone installed Dispatch successfully lately? I get build errors #153

Open thomas-workaccount opened 1 week ago

thomas-workaccount commented 1 week ago

Describe the bug install.sh run fails with buster-pgdg Release error

$ ./install.sh Checking minimum requirements...

./.env already exists, skipped creation. ./requirements.txt already exists, skipped creation.

Creating volumes for persistent storage... Created dispatch-postgres.

Leaving existing SECRET_KEY... Leaving existing DISPATCH_JWT_SECRET...

Pulling, building, and tagging Docker images...

[+] Pulling 1/1 ✔ postgres Pulled 0.7s [+] Building 92.8s (14/16)
=> [core internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 4.51kB 0.0s => WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) 0.0s => [core internal] load metadata for docker.io/library/python:3.11.4-slim-buster 0.6s => [core internal] load .dockerignore 0.0s => => transferring context: 400B 0.0s => [core internal] load build context 0.2s => => transferring context: 120.94kB 0.2s => [core sdist 1/6] FROM docker.io/library/python:3.11.4-slim-buster@sha256:c46b0ae5728c2247b99903098ade3176a58e274d9c7d2efeaaab3e0621 0.0s => CACHED [core stage-1 2/7] RUN groupadd -r dispatch && useradd -r -m -g dispatch dispatch 0.0s => CACHED [core stage-1 3/7] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates wget gnupg & 0.0s => CACHED [core stage-1 4/7] RUN echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.li 0.0s => ERROR [core stage-1 5/7] RUN wget --quiet -O - https://deb.nodesource.com/setup_12.x
bash - 87.3s => CACHED [core sdist 2/6] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates wget && rm -rf 0.0s => CACHED [core sdist 3/6] RUN wget --quiet -O - https://deb.nodesource.com/setup_16.x bash - && apt-get install -y nodejs --no- 0.0s => CACHED [core sdist 4/6] RUN echo "DISPATCH_LIGHT_BUILD=" 0.0s => [core sdist 5/6] COPY . /usr/src/dispatch/ 0.4s => CANCELED [core sdist 6/6] RUN YARN_CACHE_FOLDER="$(mktemp -d)" && export YARN_CACHE_FOLDER && pushd /usr/src/dispatch 89.3s
> [core stage-1 5/7] RUN wget --quiet -O - https://deb.nodesource.com/setup_12.x bash -:

0.518
0.518 ================================================================================
0.518 ================================================================================
0.518
0.518 DEPRECATION WARNING
0.519
0.519 Node.js 12.x is no longer actively supported!
0.519
0.519 You will not receive security or critical stability updates for this version.
0.519
0.519 You should migrate to a supported version of Node.js as soon as possible. 0.519 Use the installation script that corresponds to the version of Node.js you 0.519 wish to install. e.g. 0.519 0.519 https://deb.nodesource.com/setup_16.x — Node.js 16 "Gallium" 0.519 https://deb.nodesource.com/setup_18.x — Node.js 18 LTS "Hydrogen" (recommended) 0.519 https://deb.nodesource.com/setup_19.x — Node.js 19 "Nineteen" 0.519 https://deb.nodesource.com/setup_20.x — Node.js 20 "Iron" (current) 0.519 0.519 Please see https://github.com/nodejs/Release for details about which 0.519 version may be appropriate for you. 0.519 0.519 The NodeSource Node.js distributions repository contains 0.519 information both about supported versions of Node.js and supported Linux 0.519 distributions. To learn more about usage, see the repository: 0.519 https://github.com/nodesource/distributions 0.519 0.519 ================================================================================ 0.519 ================================================================================ 0.519 0.519 Continuing in 20 seconds ... 0.519 20.52 20.52 ================================================================================ 20.52 ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 20.52 ================================================================================ 20.52 20.52 SCRIPT DEPRECATION WARNING
20.52 20.52
20.52 This script, located at https://deb.nodesource.com/setup_X, used to 20.52 install Node.js is deprecated now and will eventually be made inactive. 20.52 20.52 Please visit the NodeSource distributions Github and follow the 20.52 instructions to migrate your repo. 20.52 https://github.com/nodesource/distributions 20.52 20.52 The NodeSource Node.js Linux distributions GitHub repository contains 20.52 information about which versions of Node.js and which Linux distributions 20.52 are supported and how to install it. 20.52 https://github.com/nodesource/distributions 20.52 20.52 20.52 SCRIPT DEPRECATION WARNING 20.52 20.52 ================================================================================ 20.52 ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 20.52 ================================================================================ 20.52 20.52 TO AVOID THIS WAIT MIGRATE THE SCRIPT 20.52 Continuing in 60 seconds (press Ctrl-C to abort) ... 20.52 80.53 80.53 ## Installing the NodeSource Node.js 12.x repo... 80.53 80.54 80.54 ## Populating apt-get cache... 80.54 80.54 + apt-get update 80.65 Get:1 http://deb.debian.org/debian buster InRelease [122 kB] 80.70 Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB] 80.70 Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB] 80.91 Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB] 80.97 Ign:5 http://apt.postgresql.org/pub/repos/apt buster-pgdg InRelease 81.13 Err:6 http://apt.postgresql.org/pub/repos/apt buster-pgdg Release 81.13 404 Not Found [IP: 147.75.85.69 80] 81.28 Get:7 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [610 kB] 81.91 Get:8 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B] 84.16 Reading package lists... 85.52 E: The repository 'http://apt.postgresql.org/pub/repos/apt buster-pgdg Release' does not have a Release file. 85.52 Error executing command, exiting

failed to solve: process "/bin/bash -o pipefail -o errexit -c wget --quiet -O - https://deb.nodesource.com/setup_12.x | bash -" did not complete successfully: exit code: 1 Cleaning up...

To Reproduce Steps to reproduce the behavior:

  1. Run install.sh as directed in the install steps.

Expected behavior Dispatch is deployed

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Tried this on a Amazon Linux 2 host also and got the similar results.

Nereis commented 1 day ago

Same issue. Is there an already built docker image or helm chart? I didn't found any and this would be handy (trying to do a kube deploy)

thomas-workaccount commented 1 day ago

Same issue. Is there an already built docker image or helm chart? I didn't found any and this would be handy (trying to do a kube deploy)

Considering the complex build steps involved I wish Dispatch is released in Docker image form as well. The users don't gain anything by building it locally.

I could build and deploy it somehow after making few changes to the docker resource files but not sure if that's the right way.