Skip to content

Commit 83e84ae

Browse files
Merge branch 'main' into rootless_socket
2 parents dd731b4 + 20aa81f commit 83e84ae

8 files changed

Lines changed: 43 additions & 28 deletions

File tree

‎src/aws-cli/devcontainer-feature.json‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "aws-cli",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"name": "AWS CLI",
55
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/aws-cli",
66
"description": "Installs the AWS CLI along with needed dependencies. Useful for base Dockerfiles that often are missing required install dependencies like gpg.",
@@ -12,6 +12,11 @@
1212
],
1313
"default": "latest",
1414
"description": "Select or enter an AWS CLI version."
15+
},
16+
"verbose": {
17+
"type": "boolean",
18+
"default": true,
19+
"description": "Suppress verbose output."
1520
}
1621
},
1722
"customizations": {

‎src/aws-cli/install.sh‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ set -e
1313
rm -rf /var/lib/apt/lists/*
1414

1515
VERSION=${VERSION:-"latest"}
16+
VERBOSE=${VERBOSE:-"true"}
1617

1718
AWSCLI_GPG_KEY=FB5DB77FD5C118B80511ADA8A6310ACC4672475C
1819
AWSCLI_GPG_KEY_MATERIAL="-----BEGIN PGP PUBLIC KEY BLOCK-----
@@ -110,7 +111,12 @@ install() {
110111
exit 1
111112
fi
112113

113-
unzip "${scriptZipFile}"
114+
if [ "${VERBOSE}" = "false" ]; then
115+
unzip -q "${scriptZipFile}"
116+
else
117+
unzip "${scriptZipFile}"
118+
fi
119+
114120
./aws/install
115121

116122
# kubectl bash completion

‎src/docker-outside-of-docker/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Re-use the host docker socket, adding the Docker CLI to a container. Feature inv
2020
| version | Select or enter a Docker/Moby CLI version. (Availability can vary by OS version.) | string | latest |
2121
| moby | Install OSS Moby build instead of Docker CE | boolean | true |
2222
| mobyBuildxVersion | Install a specific version of moby-buildx when using Moby | string | latest |
23-
| dockerDashComposeVersion | Compose version to use for docker-compose (v1 or v2 or none) | string | v2 |
23+
| dockerDashComposeVersion | Compose version to use for docker-compose (v1 or v2 or none or latest) | string | latest |
2424
| installDockerBuildx | Install Docker Buildx | boolean | true |
2525
| installDockerComposeSwitch | Install Compose Switch (provided docker compose is available) which is a replacement to the Compose V1 docker-compose (python) executable. It translates the command line into Compose V2 docker compose then runs the latter. | boolean | true |
2626
| socketPath | Path where the Docker socket is mounted inside the container. For rootless Docker, override the mount in devcontainer.json to map your host socket to this path. | string | /var/run/docker-host.sock |

‎src/docker-outside-of-docker/devcontainer-feature.json‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2+
23
"id": "docker-outside-of-docker",
3-
"version": "1.9.0",
4+
"version": "1.9.1",
45
"name": "Docker (docker-outside-of-docker)",
56
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker",
67
"description": "Re-use the host docker socket, adding the Docker CLI to a container. Feature invokes a script to enable using a forwarded Docker socket within a container to run Docker commands.",
@@ -29,11 +30,12 @@
2930
"type": "string",
3031
"enum": [
3132
"none",
33+
"latest",
3234
"v1",
3335
"v2"
3436
],
35-
"default": "v2",
36-
"description": "Compose version to use for docker-compose (v1 or v2 or none)"
37+
"default": "latest",
38+
"description": "Compose version to use for docker-compose (v1 or v2 or none or latest)"
3739
},
3840
"installDockerBuildx": {
3941
"type": "boolean",

‎src/docker-outside-of-docker/install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
DOCKER_VERSION="${VERSION:-"latest"}"
1111
USE_MOBY="${MOBY:-"true"}"
1212
MOBY_BUILDX_VERSION="${MOBYBUILDXVERSION:-"latest"}"
13-
DOCKER_DASH_COMPOSE_VERSION="${DOCKERDASHCOMPOSEVERSION:-"v2"}" # v1 or v2 or none
13+
DOCKER_DASH_COMPOSE_VERSION="${DOCKERDASHCOMPOSEVERSION:-"latest"}" # v1 or v2 or none or latest
1414

1515
ENABLE_NONROOT_DOCKER="${ENABLE_NONROOT_DOCKER:-"true"}"
1616
SOCKET_PATH="${SOCKETPATH:-"/var/run/docker-host.sock"}" # From feature option
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker_dash_compose_latest_no_moby.sh
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# Optional: Import test library
6+
source dev-container-features-test-lib
7+
8+
# Definition specific tests
9+
check "docker compose" bash -c "docker compose version | grep -E '5.[0-9]+.[0-9]+'"
10+
check "docker-compose" bash -c "docker-compose --version | grep -E '5.[0-9]+.[0-9]+'"
11+
check "installs compose-switch as docker-compose" bash -c "[[ -f /usr/local/bin/docker-compose ]]"
12+
13+
# Report result
14+
reportResults

‎test/docker-outside-of-docker/scenarios.json‎

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -203,42 +203,29 @@
203203
"features": {
204204
"docker-outside-of-docker": {
205205
"moby": false
206-
}
206+
}
207207
},
208208
"containerUser": "vscode"
209209
},
210-
"custom_rootless_socket_path": {
210+
"docker_dash_compose_latest_moby": {
211211
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
212212
"features": {
213213
"docker-outside-of-docker": {
214-
"moby": false,
215-
"socketPath": "/custom/docker/rootless.sock"
214+
"moby": true,
215+
"dockerDashComposeVersion": "latest"
216216
}
217217
},
218-
"mounts": [
219-
{
220-
"source": "/var/run/docker.sock",
221-
"target": "/custom/docker/rootless.sock",
222-
"type": "bind"
223-
}
224-
],
225218
"containerUser": "vscode"
226219
},
227-
"xdg_runtime_dir_socket": {
220+
"docker_dash_compose_latest_no_moby": {
228221
"image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
229222
"features": {
230223
"docker-outside-of-docker": {
231224
"moby": false,
232-
"socketPath": "/var/run/user-docker.sock"
225+
"dockerDashComposeVersion": "latest"
233226
}
234227
},
235-
"mounts": [
236-
{
237-
"source": "/var/run/docker.sock",
238-
"target": "/var/run/user-docker.sock",
239-
"type": "bind"
240-
}
241-
],
242228
"containerUser": "vscode"
243229
}
244-
}
230+
231+

0 commit comments

Comments
 (0)