-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add alpine-fswatch devcontainer feature
- Loading branch information
1 parent
89ed886
commit 035cb59
Showing
4 changed files
with
49 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
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,25 @@ | ||
|
||
# alpine-fswatch (alpine-fswatch) | ||
|
||
Create a fswatch on alpine | ||
|
||
## Example Usage | ||
|
||
```json | ||
"features": { | ||
"ghcr.io/cirolosapio/devcontainers-features/alpine-fswatch:0": {} | ||
} | ||
``` | ||
|
||
## Options | ||
|
||
| Options Id | Description | Type | Default Value | | ||
|-----|-----|-----|-----| | ||
| fswatch | The name of the fswatch to create | string | vscode | | ||
| uid | The uid of the fswatch to create | string | 1000 | | ||
|
||
|
||
|
||
--- | ||
|
||
_Note: This file was auto-generated from the [devcontainer-feature.json](https://github.com/cirolosapio/devcontainers-features/blob/main/src/alpine-fswatch/devcontainer-feature.json). Add additional notes to a `NOTES.md`._ |
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,7 @@ | ||
{ | ||
"name": "alpine-fswatch", | ||
"id": "alpine-fswatch", | ||
"version": "0.0.1", | ||
"description": "Installs fswatch on alpine", | ||
"documentationURL": "https://github.com/cirolosapio/devcontainers-features/tree/main/src/alpine-fswatch" | ||
} |
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,16 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
echo "Activating feature 'alpine-fswatch'" | ||
|
||
apk add --no-cache autoconf alpine-sdk | ||
|
||
rm /usr/include/sys/inotify.h | ||
|
||
wget https://github.com/emcrisostomo/fswatch/releases/download/1.17.1/fswatch-1.17.1.tar.gz \ | ||
&& tar -xzvf fswatch-1.17.1.tar.gz \ | ||
&& cd fswatch-1.17.1 \ | ||
&& ./configure \ | ||
&& make \ | ||
&& make install |