Skip to content

Commit

Permalink
chore: Add alpine-fswatch devcontainer feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cirolosapio committed Jul 15, 2024
1 parent 89ed886 commit 035cb59
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [alpine-curl](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-curl)
- [alpine-deno](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-deno)
- [alpine-docker-outside-of-docker](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-docker-outside-of-docker)
- [alpine-fswatch](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-fswatch)
- [alpine-gh-cli](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-gh-cli)
- [alpine-git](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-git)
- [alpine-gpg](https://github.com/cirolosapio/devcontainers-features/pkgs/container/devcontainers-features%2Falpine-gpg)
Expand Down
25 changes: 25 additions & 0 deletions src/alpine-fswatch/README.md
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`._
7 changes: 7 additions & 0 deletions src/alpine-fswatch/devcontainer-feature.json
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"
}
16 changes: 16 additions & 0 deletions src/alpine-fswatch/install.sh
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

0 comments on commit 035cb59

Please sign in to comment.