{"id":45607650,"url":"https://github.com/storageos/init","last_synced_at":"2026-02-23T16:27:37.972Z","repository":{"id":42992423,"uuid":"134576631","full_name":"storageos/init","owner":"storageos","description":"Init container to prepare the environment for StorageOS","archived":false,"fork":false,"pushed_at":"2023-02-16T10:02:08.000Z","size":24778,"stargazers_count":1,"open_issues_count":6,"forks_count":4,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-08-15T11:50:02.041Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/storageos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-23T13:49:57.000Z","updated_at":"2023-07-21T01:59:55.000Z","dependencies_parsed_at":"2024-06-19T23:37:07.573Z","dependency_job_id":"5e1d15a9-a859-4c98-81be-5cfa9aa5ed8c","html_url":"https://github.com/storageos/init","commit_stats":{"total_commits":47,"total_committers":11,"mean_commits":"4.2727272727272725","dds":0.7659574468085106,"last_synced_commit":"d82b652082c2e6067945955302f9d19502aeda50"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/storageos/init","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storageos%2Finit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storageos%2Finit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storageos%2Finit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storageos%2Finit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/storageos","download_url":"https://codeload.github.com/storageos/init/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storageos%2Finit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29748120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-23T16:27:37.278Z","updated_at":"2026-02-23T16:27:37.960Z","avatar_url":"https://github.com/storageos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Init Container for StorageOS\n\n[![Test and build image](https://github.com/storageos/init/workflows/Test%20and%20build%20image/badge.svg)](https://github.com/storageos/init/actions?query=workflow%3A%22Test+and+build+image%22) [![Build Status](https://travis-ci.com/storageos/init.svg?branch=master)](https://travis-ci.com/storageos/init) \n\nInit container to prepare the environment for StorageOS.\n\n## Options\n\n* `-scripts` - absolute path of the scripts directory.\n* `-nodeImage` - StorageOS Node container image that the init container runs along. This should be used when running out of k8s.\n* `-dsName` - StorageOS k8s DaemonSet name. Use when running within a k8s cluster.\n* `-dsNamespace` - StorageOS k8s DaemonSet namespace. Use when running within a k8s cluster.\n\n## Environment Variables\n\n* `NODE_IMAGE` - StorageOS Node container image.\n* `DAEMONSET_NAME` - StorageOS DaemonSet name.\n* `DAEMONSET_NAMESPACE` - StorageOS DaemonSet namespace.\n\n## Test\n\n```console\nmake test\n```\n\n## Build\n\n```console\nmake docker-build IMAGE=storageos/init:test\n```\n\n## Release\n\nThe version must be set in the `Dockerfile`.  To set it, run:\n\n```console\nNEW_VERSION=\u003cversion\u003e make release\n```\n\n## Run it on host\n\nBuild the init container with `make docker-build` and run it on the host with\n`make run`.\n\nPass a StorageOS Node image and scripts directory as:\n\n```console\nmake run SCRIPTS_PATH=scripts/ NODE_IMAGE=storageos/node:1.4.0\n```\n\n## Script Framework\n\nThe script framework executes a set of scripts, performing any checks and\nrunning the necessary script based on the host environment. The script's stdout\nand stderr are written to the stdout and stderr of the init app. Container logs\nshould show all the logs of the individual scripts that ran. The exit status of\nthe scripts are used to determine initialization failure or success. Any\nnon-zero exit status are also logged as an event in the k8s pod events.\n\nThe scripts should be placed in the `scripts/` dir. The scripts are sorted for\nexecution based on their name and their parent directory name in lexical order.\nThe scripts must start with shebang (`#!/bin/bash` for bash scripts) and must\nhave executable permission(`chmod +x`).\n\nExample scripts dir:\n\n```console\nscripts\n├── 01-script.sh\n├── 05-foo\n│   └── scriptx.sh\n│   └── README.md\n├── 07-scriptz.sh\n└── 10-baz\n    └── scripty.sh\n    └── README.md\n```\n\nIn the above example, the script execution order will be\n\n```console\n01-script.sh, scriptx.sh, 07-scriptz.sh, scripty.sh\n```\n\nFor documenting each script, they can be placed in a subdirectory along with a\nmarkdown(.md) or a text file(.txt). These docs files are ignored.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstorageos%2Finit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstorageos%2Finit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstorageos%2Finit/lists"}