Skip to content

Commit eef4bd6

Browse files
authored
Add launch.json for VSCode + fix default build for Ubuntu (#7)
* Add launch.json for VSCode + fix default build for Ubuntu * Add .vscode/ to .dockerignore
1 parent b12b43d commit eef4bd6

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
licences/
22
.github/
3+
.vscode/
34
LICENSE.md
45
README.md

.vscode/launch.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "dockerfile",
9+
"request": "launch",
10+
"name": "Docker: Build Alpine",
11+
"dockerfile": "${workspaceFolder}/alpine/Dockerfile",
12+
"contextPath": "${workspaceFolder}/alpine",
13+
"args": ["-t", "docker-sqlcmd:alpine"]
14+
},
15+
{
16+
"type": "dockerfile",
17+
"request": "launch",
18+
"name": "Docker: Build Ubuntu",
19+
"dockerfile": "${workspaceFolder}/ubuntu/Dockerfile",
20+
"contextPath": "${workspaceFolder}/ubuntu",
21+
"args": ["-t", "docker-sqlcmd:ubuntu"]
22+
}
23+
]
24+
}

ubuntu/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
ARG UBUNTU_VERSION=22.04
1+
ARG UBUNTU_VERSION=24.04
22
FROM ubuntu:$UBUNTU_VERSION
33

4-
ARG MSSQLTOOLS_VERSION=18.2.1.1
4+
# Check latest published version here: https://packages.microsoft.com/ubuntu/24.04/prod/pool/main/m/mssql-tools18/
5+
ARG MSSQLTOOLS_VERSION=18.4.1.1-1
56
# Microsoft decided to have a suffix for newer versions of mssql-tools, e.g. mssql-tools18
67
ARG MSSQLTOOLS_SUFFIX=18
78
# and also the path changed on newer versions. It's a mess.

0 commit comments

Comments
 (0)