db.dockerfile 977 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM nexus.globalprocessing.net/dbbuild AS build
  2. USER root
  3. ARG TZ=Europe/London
  4. ARG SA_PASSWORD=yW2S6KXdY8
  5. ARG ACCEPT_EULA=Y
  6. ARG HOST=localhost
  7. ARG DATA_SERVER=10.220.3.109
  8. ARG DACPAC1
  9. ARG DACPAC2
  10. ARG DACPAC3
  11. ARG DACPAC4
  12. ARG DACPAC5
  13. ARG DACPAC6
  14. ARG DACPAC7
  15. ARG DACPAC8
  16. ARG DACPAC9
  17. ARG SEEDDIR
  18. ARG BCPDIR
  19. WORKDIR /root
  20. COPY ./res/altersqlproj.sh /tmp/
  21. COPY ./res/id_rsa /root/.ssh/
  22. COPY ./res/dacpacentrypoint.sh /entrypoint.sh
  23. COPY $SEEDDIR /SeedData/
  24. COPY $BCPDIR /bcp/
  25. RUN touch /root/.ssh/known_hosts \
  26. && ssh-keyscan -T 60 bitbucket.org >> /root/.ssh/known_hosts \
  27. && chmod 600 /root/.ssh/*
  28. RUN (/opt/mssql/bin/sqlservr --accept-eula & ) | grep -q "Service Broker manager has started" \
  29. && bash /entrypoint.sh args
  30. FROM mcr.microsoft.com/mssql/server
  31. ARG TZ=Europe/London
  32. COPY --from=build --chown=mssql:root /var/opt/mssql/data /var/opt/mssql/data/
  33. USER root
  34. RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime \
  35. && echo $TZ > /etc/timezone
  36. USER mssql