mirror of
https://github.com/apple/container.git
synced 2026-09-27 01:55:43 +00:00
Devcontainer for vminitd development. (#482)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
FROM swift:6.2
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install make \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN swift sdk install https://download.swift.org/swift-6.2.3-release/static-sdk/swift-6.2.3-RELEASE/swift-6.2.3-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz --checksum f30ec724d824ef43b5546e02ca06a8682dafab4b26a99fbb0e858c347e507a2c
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"features": {},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"swiftlang.swift-vscode"
|
||||
],
|
||||
"settings": {
|
||||
}
|
||||
}
|
||||
},
|
||||
"runArgs": [],
|
||||
"mounts": []
|
||||
}
|
||||
@@ -26,9 +26,12 @@ SWIFTLY_FILENAME := $(notdir $(SWIFTLY_URL))
|
||||
SWIFTLY_BIN_DIR ?= ~/.swiftly/bin
|
||||
BUILD_BIN_DIR := $(shell swift build -c $(BUILD_CONFIGURATION) $(SWIFT_CONFIGURATION) --show-bin-path)
|
||||
|
||||
SYSTEM_TYPE := $(shell uname -s)
|
||||
ifeq ($(SYSTEM_TYPE),Darwin)
|
||||
MACOS_VERSION := $(shell sw_vers -productVersion)
|
||||
MACOS_MAJOR := $(shell echo $(MACOS_VERSION) | cut -d. -f1)
|
||||
MACOS_RELEASE_TYPE := $(shell sw_vers | grep ReleaseType)
|
||||
endif
|
||||
|
||||
.DEFAULT_GOAL := all
|
||||
|
||||
|
||||
Reference in New Issue
Block a user