Skip to content

Commit

Permalink
Merge pull request rundeck#28 from rundeck/sqlserver-update
Browse files Browse the repository at this point in the history
Update sqlserver example
  • Loading branch information
gschueler authored May 25, 2022
2 parents 5edf7be + 09467e9 commit 49f3d74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sqlserver/.env.dist
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
## Set pro options if applicable
# RUNDECK_IMAGE=rundeckpro/team:SNAPSHOT
# RUNDECK_IMAGE=rundeckpro/enterprise:SNAPSHOT
# RUNDECK_LICENSE_FILE=
5 changes: 5 additions & 0 deletions sqlserver/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
links:
- sqlserver
environment:
RUNDECK_GRAILS_URL: http://localhost:4440
RUNDECK_DATABASE_DRIVER: com.microsoft.sqlserver.jdbc.SQLServerDriver
RUNDECK_DATABASE_USERNAME: sa
RUNDECK_DATABASE_PASSWORD: RundeckPassw0rd
Expand All @@ -15,11 +16,15 @@ services:
- ${RUNDECK_LICENSE_FILE:-/dev/null}:/home/rundeck/etc/rundeckpro-license.key
ports:
- 4440:4440
depends_on:
- sqlserver
sqlserver:
build:
context: ./sqlserver
expose:
- 1433
ports:
- 1433:1433
environment:
- ACCEPT_EULA=Y
- MSSQL_PID=Express
Expand Down
4 changes: 3 additions & 1 deletion sqlserver/sqlserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FROM microsoft/mssql-server-linux
FROM mcr.microsoft.com/mssql/server

USER root
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
Expand All @@ -10,4 +11,5 @@ COPY . /usr/src/app
# Grant permissions for the import-data script to be executable
RUN chmod +x /usr/src/app/import-data.sh

USER mssql
CMD /bin/bash ./entrypoint.sh

0 comments on commit 49f3d74

Please sign in to comment.