Skip to content

Commit

Permalink
move labels to bottom of dockerfiles for better caching (airbytehq#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhizor authored Sep 11, 2020
1 parent 3a0e104 commit c87cfd3
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions dataline-integrations/singer/bigquery/destination/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM python:3.7-alpine

LABEL io.dataline.version=0.1.1

WORKDIR /singer

ENV VIRTUAL_ENV=/singer/env
Expand All @@ -18,3 +16,5 @@ RUN python -m pip install --upgrade pip && \
COPY bigquery-destination.sh /singer/bigquery-destination.sh

ENTRYPOINT ["sh", "/singer/bigquery-destination.sh"]

LABEL io.dataline.version=0.1.1
4 changes: 2 additions & 2 deletions dataline-integrations/singer/csv/destination/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM python:3.7-slim

LABEL io.dataline.version=0.1.1

WORKDIR /singer

ENV VIRTUAL_ENV=/singer/env
Expand All @@ -14,3 +12,5 @@ RUN python -m pip install --upgrade pip && \
pip install -r requirements.txt

ENTRYPOINT ["target-csv"]

LABEL io.dataline.version=0.1.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM python:3.7-slim

LABEL io.dataline.version=0.1.1

WORKDIR /singer

ENV VIRTUAL_ENV=/singer/env
Expand All @@ -14,3 +12,5 @@ RUN python -m pip install --upgrade pip && \
pip install -r requirements.txt

ENTRYPOINT ["tap-exchangeratesapi"]

LABEL io.dataline.version=0.1.1
4 changes: 2 additions & 2 deletions dataline-integrations/singer/postgres/destination/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM python:3.7-slim

LABEL io.dataline.version=0.1.1

WORKDIR /singer

ENV VIRTUAL_ENV=/singer/env
Expand All @@ -22,3 +20,5 @@ RUN apt-get update && \
pip install -r requirements.txt

ENTRYPOINT ["/run.sh"]

LABEL io.dataline.version=0.1.1
4 changes: 2 additions & 2 deletions dataline-integrations/singer/postgres/source/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM python:3.7-slim

LABEL io.dataline.version=0.1.0

WORKDIR /singer

ENV VIRTUAL_ENV=/singer/env
Expand All @@ -20,3 +18,5 @@ RUN python -m pip install --upgrade pip && \
RUN apt-get autoremove -y gcc

ENTRYPOINT ["tap-postgres"]

LABEL io.dataline.version=0.1.0
7 changes: 4 additions & 3 deletions tools/build/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
#####################
FROM ubuntu:20.04

LABEL io.dataline.image=dataline/build-base
LABEL io.dataline.version=1.0.0

WORKDIR /code

ENV DEBIAN_FRONTEND noninteractive
Expand All @@ -18,3 +15,7 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get update && apt-get -y install \
nodejs \
openjdk-14-jdk


LABEL io.dataline.image=dataline/build-base
LABEL io.dataline.version=1.0.0

0 comments on commit c87cfd3

Please sign in to comment.