Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F49507235
deploy-container
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
531 B
Referenced Files
None
Subscribers
None
deploy-container
View Options
#!/bin/sh
if
[
$#
-eq
0
]
;
then
echo
"Usage: deploy-container <container name>"
exit
1
fi
SALT_OPS_REPO
=
/opt/salt/nasqueron-operations
SALT
=
"salt-wrapper salt"
PAAS_DOCKER_SERVER
=
"docker-001"
CONTAINER
=
$1
CONTAINER_SLS
=
"
$SALT_OPS_REPO
/roles/paas-docker/containers/
$CONTAINER
.sls"
if
[
!
-f
"
$CONTAINER_SLS
"
]
;
then
echo
"No state found for container
$CONTAINER
:
$CONTAINER_SLS
"
exit
2
fi
cd
/opt/salt/nasqueron-operations
||
exit
4
$SALT
$PAAS_DOCKER_SERVER
state.sls
"roles/paas-docker/containers/
$CONTAINER
"
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Mon, Sep 14, 16:09 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4083763
Default Alt Text
deploy-container (531 B)
Attached To
Mode
rOPS Nasqueron Operations
Attached
Detach File
Event Timeline
Log In to Comment