Stéphane Burwash
06/10/2022, 4:27 PMdouwe_maan
06/10/2022, 5:04 PMStéphane Burwash
06/10/2022, 5:32 PMdouwe_maan
06/10/2022, 5:45 PMStéphane Burwash
06/10/2022, 6:04 PMdouwe_maan
06/10/2022, 6:57 PMStéphane Burwash
06/10/2022, 7:02 PMStéphane Burwash
06/10/2022, 7:02 PMdouwe_maan
06/10/2022, 7:04 PMStéphane Burwash
06/10/2022, 7:06 PMStéphane Burwash
06/10/2022, 7:06 PMdouwe_maan
06/10/2022, 7:09 PMdouwe_maan
06/10/2022, 7:10 PMStéphane Burwash
06/10/2022, 7:30 PMdouwe_maan
06/10/2022, 7:38 PMStéphane Burwash
06/10/2022, 7:40 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 .
COPY ./extract ./extract
COPY ./load ./load
RUN meltano install --clean
# 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 . .
# # Run command to generate dbt documentation
# RUN meltano invoke dbt docs generate
# Expose default port used by `meltano ui`
EXPOSE 5000
# Create airflow user
# RUN meltano invoke airflow users create \
# --username potloc \
# --firstname potloc \
# --lastname potloc \
# --role Admin \
# --email <mailto:spiderman@superhero.org|spiderman@superhero.org> \
# --password potloc
ENTRYPOINT ["meltano"]
Which we use in prod, with an added docker-compose (only local)
version: '3.8'
x-meltano-image: &meltano-image
image: meltano-potloc:dev
build: .
volumes:
- .:/project
services:
meltano-ui:
<<: *meltano-image
command: ui
env_file:
- .env
expose:
- 5000
ports:
- 5000:5000
restart: unless-stopped
airflow-scheduler:
<<: *meltano-image
command: invoke airflow scheduler
expose:
- 8793
ports:
- 8793:8793
restart: unless-stopped
airflow-webserver:
<<: *meltano-image
command: invoke airflow webserver
expose:
- 8080
ports:
- 8080:8080
restart: unless-stopped
dbt-docs:
<<: *meltano-image
command: invoke dbt docs serve --port 8081
expose:
- 8081
ports:
- 8081:8081
restart: unless-stopped
douwe_maan
06/10/2022, 7:41 PMdouwe_maan
06/10/2022, 7:42 PMStéphane Burwash
06/10/2022, 7:43 PMStéphane Burwash
06/10/2022, 7:43 PMStéphane Burwash
06/10/2022, 7:44 PMStéphane Burwash
06/10/2022, 7:44 PMdouwe_maan
06/10/2022, 7:45 PMdouwe_maan
06/10/2022, 7:45 PMStéphane Burwash
06/10/2022, 7:46 PMdouwe_maan
06/10/2022, 7:47 PMStéphane Burwash
06/10/2022, 7:49 PMmeltano run tap target
and we get a stream of all the records being extracted, which service would be generating those logs?douwe_maan
06/10/2022, 7:51 PMStéphane Burwash
06/10/2022, 7:52 PMdouwe_maan
06/10/2022, 8:03 PMmeltano run tap target
, is that managed by some automation or manually in an (ssh) terminal?douwe_maan
06/10/2022, 8:05 PMmeltano run
doesn’t store its own logs if you just run it by itself instead of managed by Airflow. I’m not totally sure. meltano elt
definitely does,t hough.Stéphane Burwash
06/10/2022, 8:11 PMdouwe_maan
06/10/2022, 8:56 PMdouwe_maan
06/10/2022, 8:56 PMBy default, logs are placed in theThedirectory.AIRFLOW_HOME
AIRFLOW_HOME
folder is .meltano/orchestrators/airflow
or .meltano/run/airflow
if I’m not mistakenStéphane Burwash
06/10/2022, 8:58 PMStéphane Burwash
06/13/2022, 5:04 PMproject/.meltano
. I'm only trying to use the volume as ephermeral storage (while the container is running), so I'm guessing it's just wipping my .meltano
post install because I'm getting issues of orchestrator airflow not installed
douwe_maan
06/13/2022, 5:22 PMStéphane Burwash
06/13/2022, 5:28 PMStéphane Burwash
06/13/2022, 5:29 PMproject/.meltano/run
(or project/.meltano/airflow
in my case)
This should allow you to view logs in the airflow-webserver uibraulio_gonzalez
08/09/2022, 1:01 AM