mirror of
https://github.com/Maks1mS/devcontainers-features.git
synced 2024-12-24 00:02:58 +03:00
add wine
This commit is contained in:
parent
07e55c1006
commit
c6cd9d3a88
21
src/wine/devcontainer-feature.json
Normal file
21
src/wine/devcontainer-feature.json
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"name": "Wine",
|
||||||
|
"id": "wine",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "A feature to remind you of your favorite color",
|
||||||
|
"options": {
|
||||||
|
"favorite": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"red",
|
||||||
|
"gold",
|
||||||
|
"green"
|
||||||
|
],
|
||||||
|
"default": "red",
|
||||||
|
"description": "Choose your favorite color."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"installsAfter": [
|
||||||
|
"ghcr.io/devcontainers/features/common-utils"
|
||||||
|
]
|
||||||
|
}
|
26
src/wine/install.sh
Normal file
26
src/wine/install.sh
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "Activating feature 'color'"
|
||||||
|
echo "The provided favorite color is: ${FAVORITE}"
|
||||||
|
|
||||||
|
|
||||||
|
# The 'install.sh' entrypoint script is always executed as the root user.
|
||||||
|
#
|
||||||
|
# These following environment variables are passed in by the dev container CLI.
|
||||||
|
# These may be useful in instances where the context of the final
|
||||||
|
# remoteUser or containerUser is useful.
|
||||||
|
# For more details, see https://containers.dev/implementors/features#user-env-var
|
||||||
|
echo "The effective dev container remoteUser is '$_REMOTE_USER'"
|
||||||
|
echo "The effective dev container remoteUser's home directory is '$_REMOTE_USER_HOME'"
|
||||||
|
|
||||||
|
echo "The effective dev container containerUser is '$_CONTAINER_USER'"
|
||||||
|
echo "The effective dev container containerUser's home directory is '$_CONTAINER_USER_HOME'"
|
||||||
|
|
||||||
|
cat > /usr/local/bin/color \
|
||||||
|
<< EOF
|
||||||
|
#!/bin/sh
|
||||||
|
echo "my favorite color is ${FAVORITE}"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
chmod +x /usr/local/bin/color
|
Loading…
Reference in New Issue
Block a user