mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-13 17:49:25 +00:00
move docker files to root
This commit is contained in:
1 parent
5c7636e4c7
commit
c619c0235d
8 files changed
+20
-10
No files matched your search
@@ -0,0 +1,23 @@
|
||||
FROM postgres:12.1 as base
|
||||
WORKDIR /app
|
||||
|
||||
ENV PGHOST=localhost
|
||||
ENV PGDATABASE=kata
|
||||
ENV PGPASSWORD=admin
|
||||
ENV PGUSER=postgres
|
||||
ENV POSTGRES_PASSWORD=admin
|
||||
ENV PGDATA /var/lib/postgresql/data_local
|
||||
|
||||
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA" && chmod 777 "$PGDATA"
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates wget \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ADD ./*.sh /app/
|
||||
ADD ./src /app/src
|
||||
|
||||
ADD ./pgunit/initialize.sh /app/
|
||||
ADD ./pgunit/*.sql /app/
|
||||
RUN chmod +x ./*.sh \
|
||||
&& ./initializeDocker.sh
|
||||
Reference in new issue
Block a user