Skip to content

Commit

Permalink
fixup! modernize big RUN blocks with <<'EOF' notation
Browse files Browse the repository at this point in the history
  • Loading branch information
thanodnl committed Jul 11, 2024
1 parent df99671 commit b9f5f67
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
5 changes: 1 addition & 4 deletions circleci/images/citusupgradetester/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ EOF
ENV PATH=/usr/lib/postgresql/$PG_MAJOR/bin/:$PATH

# setup /var/run/postgresql for use with circleci
# RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql

##############################################################################
FROM base AS builder
Expand Down Expand Up @@ -123,6 +123,3 @@ ENV CITUS_VERSIONS=$CITUS_VERSIONS

# copy compiled citus versions
COPY --from=builder /build/ /

USER circleci
WORKDIR /home/circleci
3 changes: 1 addition & 2 deletions circleci/images/exttester/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,9 @@ EOF
ENV PATH=/usr/lib/postgresql/$PG_MAJOR/bin/:$PATH

# setup /var/run/postgresql for use with circleci
# RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql

# copy the collected files from the collection container at once into the final container
COPY --from=dev-tools-collection /collect/ /

USER circleci
WORKDIR /home/circleci
1 change: 0 additions & 1 deletion circleci/images/failtester/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,4 @@ RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgres
COPY ./files/etc/requirements.txt /tmp/etc/
RUN pip3 install -Ir /tmp/etc/requirements.txt

USER circleci
WORKDIR /home/circleci
5 changes: 1 addition & 4 deletions circleci/images/pgupgradetester/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ rm -rf /var/lib/apt/lists/*
EOF

# setup /var/run/postgresql for use with circleci
# RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql
RUN mkdir -p /var/run/postgresql && chown -R postgres:postgres /var/run/postgresql && chmod 2777 /var/run/postgresql

COPY ./files/etc/requirements.txt /tmp/etc/
RUN pip3 install -Ir /tmp/etc/requirements.txt

USER circleci
WORKDIR /home/circleci

0 comments on commit b9f5f67

Please sign in to comment.