matt_arderne
11/07/2021, 4:36 PMERROR: (gcloud.run.deploy) Cloud Run error: Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable. Logs for this revision might contain more information.
matt_arderne
11/07/2021, 4:39 PMARG MELTANO_IMAGE=meltano/meltano:latest
FROM $MELTANO_IMAGE
WORKDIR /project
# Install any additional requirements
COPY ./requirements.txt .
RUN pip install -r requirements.txt
# Install all plugins into the `.meltano` directory
COPY ./meltano.yml .
RUN meltano install
# Pin `discovery.yml` manifest by copying cached version to project root
RUN cp -n .meltano/cache/discovery.yml . 2>/dev/null || :
# Don't allow changes to containerized project files
ENV MELTANO_PROJECT_READONLY 1
# Copy over remaining project files
COPY . .
EXPOSE 8080
CMD meltano ui --bind-port=8080 --bind=0.0.0.0
fred_reimer
11/07/2021, 6:37 PMmatt_arderne
11/07/2021, 9:07 PMmatt_arderne
11/07/2021, 9:34 PM--timeout=
setting didn't help. No idea
https://cloud.google.com/run/docs/reference/container-contractfred_reimer
11/07/2021, 10:02 PMreadiness_probes = [{
exec = []
http_get = [{
path = "/"
port = 5000
scheme = "HTTP"
}]
tcp_socket = []
failure_threshold = 3
initial_delay_seconds = 10
period_seconds = 30
success_threshold = 1
timeout_seconds = 15
}]
startup_probes = [{
exec = []
http_get = [{
path = "/"
port = 5000
scheme = "HTTP"
}]
tcp_socket = []
failure_threshold = 30
initial_delay_seconds = 0
period_seconds = 5
success_threshold = 1
timeout_seconds = 15
}]
liveness_probes = [{
exec = []
http_get = [{
path = "/"
port = 5000
scheme = "HTTP"
}]
tcp_socket = []
failure_threshold = 3
initial_delay_seconds = 10
period_seconds = 30
success_threshold = 1
timeout_seconds = 15
}]
I'm just using:
command = ["meltano", "ui"]
We are using the airflow orchestrator, and the web pod for airflow runs on port 8080. Not that Meltano couldn't either, but we use the default port of 5000.matt_arderne
11/09/2021, 8:18 AMCMD
part clashing with the ENTRYPOINT
or something, as often the logs display the help text.
Usage: meltano [OPTIONS] COMMAND [ARGS]...
Get help at <https://www.meltano.com/docs/command-line-interface.html>
Options:
--log-level [debug|info|warning|error|critical]
-v, --verbose
--environment TEXT Meltano environment name
--version Show the version and exit.
--help Show this message and exit.