Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32159555
localstack_down.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
556 B
Referenced Files
None
Subscribers
None
localstack_down.sh
View Options
#!/usr/bin/env bash
set
-euo
pipefail
# Since docker is installed outside of nix, need to ensure that it was
# installed impurely
if
!
command
-v
docker
>
/dev/null
;
then
echo
"Please install docker"
>
&
2
exit
1
fi
# The 'localstack status' command will poll foever if you have a newer
# docker cli, so instead use docker ps + grep to determine running container
if
docker
ps
|
grep
localstack
&
>
/dev/null
;
then
echo
"Stopping localstack..."
>
&
2
docker
stop
localstack-main
>
/dev/null
else
echo
"No localstack instance found, skipping..."
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sun, Dec 7, 4:33 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5270156
Default Alt Text
localstack_down.sh (556 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment