Skip to content

Instantly share code, notes, and snippets.

@dimaspivak
Created October 27, 2020 14:49
Show Gist options
  • Save dimaspivak/f8c1851fb9cd44d04df874df3f8fb1b0 to your computer and use it in GitHub Desktop.
Save dimaspivak/f8c1851fb9cd44d04df874df3f8fb1b0 to your computer and use it in GitHub Desktop.
ARG SDC_VERSION=3.17.0
# Set up stage libs here. Naming allows you to refer to them by name instead of by integer.
FROM streamsets/datacollector-libs:streamsets-datacollector-jdbc-lib-${SDC_VERSION} as jdbc-lib
# Using build args for the directories just makes things easier to read. These can be found in the image layers
# page on Docker Hub.
ARG JDBC_LIB_DIR=/opt/streamsets-datacollector-${SDC_VERSION}/streamsets-libs/streamsets-datacollector-jdbc-lib
FROM streamsets/datacollector:${SDC_VERSION}
COPY --from=jdbc-lib ${JDBC_LIB_DIR} ${JDBC_LIB_DIR}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment