Skip to content

scripts: add setup-scratch-imaginator for local imaginator+imageserver#282

Open
Vikramarjuna wants to merge 1 commit into
Cloud-Foundations:masterfrom
Vikramarjuna:scratch-imaginator-setup
Open

scripts: add setup-scratch-imaginator for local imaginator+imageserver#282
Vikramarjuna wants to merge 1 commit into
Cloud-Foundations:masterfrom
Vikramarjuna:scratch-imaginator-setup

Conversation

@Vikramarjuna

Copy link
Copy Markdown
Contributor

Adds a single helper script under scripts/ that stands up an isolated imaginator + imageserver on the local host, so image-manifest changes can be validated end-to-end without touching a shared instance.

"$SCRATCH_DIR/bin" \
"$SCRATCH_DIR/tls" \
"$SCRATCH_DIR/etc" \
"$SCRATCH_DIR/var/imaginator/state" \

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not put this and the follow two under a var/lb directory rather than just a var directory?

need_tool tar "install: sudo apt-get install -y tar"
need_tool python3 "install: sudo apt-get install -y python3"
need_tool openssl "install: sudo apt-get install -y openssl"
need_tool umoci "install: sudo apt-get install -y umoci"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed?

EOF
chmod +x "$run"
echo "[+] starting imaginator (sudo) on :$IMAGINATOR_PORT"
# sudo -b + setsid + explicit redirects fully detach from the invoking

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would be clearer:

# sudo -b + setsid + explicit redirects standard I/O and fully detaches from the invoking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants