Merge pull request #103 from jkaninda/fix-Dockerfile
fix: backup, restore, migrate script since the migration of base imag…
This commit is contained in:
@@ -53,7 +53,7 @@ ENV VERSION=${appVersion}
|
|||||||
LABEL author="Jonas Kaninda"
|
LABEL author="Jonas Kaninda"
|
||||||
LABEL version=${appVersion}
|
LABEL version=${appVersion}
|
||||||
|
|
||||||
RUN apk --update add --no-cache postgresql-client tzdata
|
RUN apk --update add --no-cache postgresql-client tzdata ca-certificates
|
||||||
RUN mkdir $WORKDIR
|
RUN mkdir $WORKDIR
|
||||||
RUN mkdir $BACKUPDIR
|
RUN mkdir $BACKUPDIR
|
||||||
RUN mkdir $TEMPLATES_DIR
|
RUN mkdir $TEMPLATES_DIR
|
||||||
@@ -69,14 +69,14 @@ RUN chmod +x /usr/local/bin/pg-bkup
|
|||||||
RUN ln -s /usr/local/bin/pg-bkup /usr/local/bin/bkup
|
RUN ln -s /usr/local/bin/pg-bkup /usr/local/bin/bkup
|
||||||
|
|
||||||
# Create the backup script and make it executable
|
# Create the backup script and make it executable
|
||||||
RUN echo '#!/bin/sh\n/usr/local/bin/pg-bkup backup "$@"' > /usr/local/bin/backup && \
|
RUN printf '#!/bin/sh\n/usr/local/bin/pg-bkup backup "$@"' > /usr/local/bin/backup && \
|
||||||
chmod +x /usr/local/bin/backup
|
chmod +x /usr/local/bin/backup
|
||||||
|
|
||||||
# Create the restore script and make it executable
|
# Create the restore script and make it executable
|
||||||
RUN echo '#!/bin/sh\n/usr/local/bin/pg-bkup restore "$@"' > /usr/local/bin/restore && \
|
RUN printf '#!/bin/sh\n/usr/local/bin/pg-bkup restore "$@"' > /usr/local/bin/restore && \
|
||||||
chmod +x /usr/local/bin/restore
|
chmod +x /usr/local/bin/restore
|
||||||
# Create the migrate script and make it executable
|
# Create the migrate script and make it executable
|
||||||
RUN echo '#!/bin/sh\n/usr/local/bin/pg-bkup migrate "$@"' > /usr/local/bin/migrate && \
|
RUN printf '#!/bin/sh\n/usr/local/bin/pg-bkup migrate "$@"' > /usr/local/bin/migrate && \
|
||||||
chmod +x /usr/local/bin/migrate
|
chmod +x /usr/local/bin/migrate
|
||||||
|
|
||||||
WORKDIR $WORKDIR
|
WORKDIR $WORKDIR
|
||||||
|
|||||||
Reference in New Issue
Block a user