Skip to content

Commit

Permalink
chore: Update devcontainer feature versions for Alpine-Docker-Outside…
Browse files Browse the repository at this point in the history
…-of-Docker
  • Loading branch information
cirolosapio committed Apr 23, 2024
1 parent fc95901 commit 1e9daf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/alpine-docker-outside-of-docker/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "alpine-docker-outside-of-docker",
"id": "alpine-docker-outside-of-docker",
"version": "0.0.12",
"version": "0.0.13",
"description": "Re-use the host docker socket, adding the Docker CLI to alpine container",
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-docker-outside-of-docker",
"installsAfter": [
Expand All @@ -17,7 +17,7 @@
"description": "Install Docker Compose?"
}
},
"entrypoint": "/usr/local/share/docker-init.sh",
"postStartCommand": "/usr/local/share/docker-init.sh",
"mounts": [
{
"source": "/var/run/docker.sock",
Expand Down
9 changes: 5 additions & 4 deletions src/alpine-docker-outside-of-docker/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -e

echo "Activating feature 'alpine-docker-outside-of-docker'"

# If init file already exists, exit
if [ -f "/usr/local/share/docker-init.sh" ]; then
exit 0
fi

apk add --no-cache docker

CURRENT_USER=$(getent passwd 1000 | cut -d: -f1)
Expand All @@ -19,10 +24,6 @@ else
tee /usr/local/share/docker-init.sh > /dev/null \
<< EOF
#!/bin/sh
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
set -e
Expand Down

0 comments on commit 1e9daf4

Please sign in to comment.