giancarlo_perrone
06/15/2022, 5:16 AMRUN meltano install step working since installing the tap from the private repo requires ssh keys to be set in the image. Would appreciate any tips or feedback on how to get around this, thanks!visch
06/15/2022, 2:23 PMgiancarlo_perrone
06/15/2022, 3:30 PM# <http://registry.gitlab.com/meltano/meltano:latest|registry.gitlab.com/meltano/meltano:latest> is also available in GitLab Registry
ARG MELTANO_IMAGE=meltano/meltano:latest
ARG SSH_KEY
FROM $MELTANO_IMAGE
WORKDIR /classy/dasa-etl
# Install any additional requirements
COPY ./requirements.txt .
RUN pip install -r requirements.txt
# TMP add github keys
RUN mkdir /root/.ssh
RUN ssh-keyscan -t rsa <http://bitbucket.org|bitbucket.org> >> /root/.ssh/known_hosts
RUN echo "$SSH_KEY" > /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
RUN ssh -v <mailto:git@bitbucket.org|git@bitbucket.org>
# 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 default port used by `meltano ui`
EXPOSE 5000
ENTRYPOINT ["meltano"]giancarlo_perrone
06/15/2022, 3:32 PMgiancarlo_perrone
06/15/2022, 3:33 PMdocker build --no-cache --build-arg SSH_KEY=$SSH_KEY -t test/etl .visch
06/16/2022, 4:53 PM