Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stefansundin/bottlerocket-bootstrap-exec-user-data
A bootstrap container for Bottlerocket that executes whatever you put in its user data.
https://github.com/stefansundin/bottlerocket-bootstrap-exec-user-data
bottlerocket
Last synced: 2 days ago
JSON representation
A bootstrap container for Bottlerocket that executes whatever you put in its user data.
- Host: GitHub
- URL: https://github.com/stefansundin/bottlerocket-bootstrap-exec-user-data
- Owner: stefansundin
- License: apache-2.0
- Created: 2022-10-31T05:34:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-17T07:29:04.000Z (11 months ago)
- Last Synced: 2024-11-02T00:26:15.856Z (about 2 months ago)
- Topics: bottlerocket
- Language: Shell
- Homepage: https://gallery.ecr.aws/stefansundin/bottlerocket-bootstrap-exec-user-data
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a bootstrap container for Bottlerocket that you can use to easily run arbitrary scripts. It executes whatever you put in the user-data so you don't have to make a custom docker image for every particular thing.
The docker image is [super](Dockerfile) [simple](main.sh) and based on `debian:bookworm-slim`.
Here's an example of how to use it in your Bottlerocket user data:
```toml
[settings.bootstrap-containers.hello]
source = "public.ecr.aws/stefansundin/bottlerocket-bootstrap-exec-user-data:latest"
mode = "always"
essential = false
user-data = "IyEvYmluL2Jhc2gKZWNobyAiSGVsbG8gV29ybGQhIgo="
```The `user-data` contains the data of file to execute (usually a bash script), encoded using base64. You can generate it like this:
```shell
cat << 'EOF' | base64
#!/bin/bash
echo "Hello World!"
EOF
```## Troubleshooting
You can get the output from the script by running: (you may need to edit `hello` to whatever you named your bootstrap container)
```shell
enter-admin-container
sheltie
journalctl -u [email protected]
```