Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
j2gg0s committed Nov 22, 2024
1 parent 6cebe86 commit e8593ad
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/dbtest/mssql-docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
FROM mcr.microsoft.com/mssql/server:2019-CU29-ubuntu-20.04

RUN openssl req -x509 -nodes -newkey rsa:2048 -subj '/CN=mssql' -addext "subjectAltName = DNS:mssql" -keyout /etc/ssl/private/mssql.key -out /etc/ssl/certs/mssql.pem -days 7 -set_serial 01
RUN chmod 400 /etc/ssl/private/mssql.key
RUN chmod 400 /etc/ssl/certs/mssql.pem
RUN openssl req -x509 -nodes -newkey rsa:2048 -subj '/CN=mssql' -addext "subjectAltName = DNS:mssql" -keyout /tmp/mssql.key -out /tmp/mssql.pem -days 7 -set_serial 01
RUN mv /tmp/mssql.key /etc/ssl/private/mssql.key && \
chmod 400 /etc/ssl/private/mssql.key && \
mv /tmp/mssql.pem /etc/ssl/certs/mssql.pem & \
chmod 400 /etc/ssl/certs/mssql.pem
RUN mkdir -p /var/opt/mssql
COPY mssql.conf /var/opt/mssql/mssql.conf

Expand All @@ -15,3 +17,4 @@ WORKDIR /usr/config
COPY . /usr/config

ENTRYPOINT ["./entrypoint.sh"]

0 comments on commit e8593ad

Please sign in to comment.