Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11722839
arc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
700 B
Referenced Files
None
Subscribers
None
arc
View Options
#!/bin/sh
if
[
-t
0
]
;
then
FLAGS
=
-it
fi
PRINT_LOG
=
0
if
[
"
$1
"
=
"shell"
]
;
then
shift
COMMAND
=
bash
else
mkdir -p ~/.arc
COMMAND
=
arc
if
[
"
$1
"
=
"call-conduit"
]
;
then
PRINT_LOG
=
1
INSTANCE
=
`
openssl rand -hex
21
`
FLAGS
=
"-i -a=stdin --name=
$INSTANCE
"
fi
fi
if
[
-d ~/.arc/ssh
]
;
then
VOLUME_SSH
=
"-v
$HOME
/.arc/ssh:/root/.ssh"
else
VOLUME_SSH
=
""
fi
if
[
$PRINT_LOG
-eq
0
]
;
then
docker run
$FLAGS
--rm -v ~/.arc:/opt/config -v
$PWD
:/opt/workspace
$VOLUME_SSH
nasqueron/arcanist
$COMMAND
$*
else
docker run
$FLAGS
-v ~/.arc:/opt/config -v
$PWD
:/opt/workspace
$VOLUME_SSH
nasqueron/arcanist
$COMMAND
$*
> /dev/null
sleep
3
docker logs
$INSTANCE
docker rm
$INSTANCE
>/dev/null
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Thu, Sep 18, 06:03 (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2990077
Default Alt Text
arc (700 B)
Attached To
Mode
rDARC nasqueron/arcanist Docker image
Attached
Detach File
Event Timeline
Log In to Comment