This repository has been archived by the owner on Nov 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"dockerFile": "dev-container.dockerfile", | ||
"extensions": [ | ||
"vknabel.vscode-swift-development-environment" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"swift.path.sourcekite": "/sourcekite/.build/x86_64-unknown-linux/release/sourcekite" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM swift:4.2.1 | ||
|
||
# Install git | ||
RUN apt-get update && apt-get -y install git | ||
|
||
# Install SourceKite, see https://github.com/vknabel/vscode-swift-development-environment/blob/master/README.md#installation | ||
RUN git clone https://github.com/jinmingjian/sourcekite.git | ||
RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/swift:/usr/lib | ||
RUN ln -s /usr/lib/libsourcekitdInProc.so /usr/lib/sourcekitdInProc | ||
RUN cd sourcekite && swift build -Xlinker -l:sourcekitdInProc -c release | ||
|
||
# cleanup | ||
RUN rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
func say() { | ||
print("Hello, world!"); | ||
} | ||
|
||
say(); |