Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit d93de46

Browse files
authored
Update dev container for swift (#1238)
1 parent a52980a commit d93de46

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

containers/swift/.devcontainer/Dockerfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,8 @@ ARG USER_GID=$USER_UID
1414
COPY library-scripts/common-debian.sh /tmp/library-scripts/
1515
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
1616
&& /bin/bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true" \
17-
&& apt-get -y install --no-install-recommends lldb python3-minimal libpython3.7 \
1817
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* && rm -rf /tmp/library-scripts
1918

20-
# Install SourceKite, see https://github.com/vknabel/vscode-swift-development-environment/blob/master/README.md#installation
21-
RUN git clone https://github.com/vknabel/sourcekite \
22-
&& export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/swift:/usr/lib \
23-
&& ln -s /usr/lib/libsourcekitdInProc.so /usr/lib/sourcekitdInProc \
24-
&& cd sourcekite && make install PREFIX=/usr/local -j2
25-
2619
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
2720
ARG NODE_VERSION="none"
2821
ENV NVM_DIR=/usr/local/share/nvm

containers/swift/.devcontainer/devcontainer.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,19 @@
1717

1818
// Set *default* container specific settings.json values on container create.
1919
"settings": {
20-
"lldb.adapterType": "bundled",
21-
"lldb.executable": "/usr/bin/lldb",
22-
"sde.languageservermode": "sourcekite",
23-
"swift.path.sourcekite": "/usr/local/bin/sourcekite"
24-
},
20+
"lldb.library": "/usr/lib/liblldb.so",
21+
},
2522

2623
// Add the IDs of extensions you want installed when the container is created.
2724
"extensions": [
28-
"vknabel.vscode-swift-development-environment",
29-
"vadimcn.vscode-lldb"
25+
"sswg.swift-lang",
3026
],
3127

3228
// Use 'forwardPorts' to make a list of ports inside the container available locally.
3329
// "forwardPorts": [],
3430

3531
// Use 'postCreateCommand' to run commands after the container is created.
36-
// "postCreateCommand": "swiftc --version",
32+
// "postCreateCommand": "",
3733

3834
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
3935
"remoteUser": "vscode"

containers/swift/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
| Metadata | Value |
88
|----------|-------|
9-
| *Contributors* | [cloudnull](https://github.com/cloudnull) |
9+
| *Contributors* | [0xTim](https://github.com/0xTim), [adam-fowler](https://github.com/adam-fowler), [cloudnull](https://github.com/cloudnull) |
1010
| *Categories* | Community, Languages |
1111
| *Definition type* | Dockerfile |
1212
| *Supported architecture(s)* | x86-64 |
@@ -62,4 +62,4 @@ This definition includes some test code that will help you verify it is working
6262

6363
Copyright (c) Microsoft Corporation. All rights reserved.
6464

65-
Licensed under the MIT License. See [LICENSE](https://github.com/microsoft/vscode-dev-containers/blob/main/LICENSE).
65+
Licensed under the MIT License. See [LICENSE](https://github.com/microsoft/vscode-dev-containers/blob/main/LICENSE).

0 commit comments

Comments
 (0)