Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
openmole
skuber-openmole
Commits
4d8c3f92
Commit
4d8c3f92
authored
Sep 26, 2019
by
Mathieu Leclaire
Browse files
Add pod name info
parent
6c774fb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/skuberopenmole/DeploymentOpenmole.scala
View file @
4d8c3f92
...
...
@@ -17,6 +17,7 @@ import util.{Success, Failure}
object
DeploymentOpenmole
extends
App
{
//deployement name. Must contain the user uuid. Ex: "openmole-foo-123-456-789"
val
openmoleDeploymentName
=
"openmole-scaladepl"
implicit
val
system
=
ActorSystem
()
...
...
@@ -42,7 +43,7 @@ object DeploymentOpenmole extends App {
def
deployOpenmole
()
:
Future
[
Deployment
]
=
{
val
openmoleLabel
=
"app"
->
"openmole"
val
openmoleContainer
=
Container
(
name
=
"openmole"
,
image
=
"openmole/openmole"
,
command
=
List
(
"bin/bash"
,
"-c"
,
"openmole --port
20002
--password password --http --remote"
)).
exposePort
(
20002
)
val
openmoleContainer
=
Container
(
name
=
"openmole"
,
image
=
"openmole/openmole"
,
command
=
List
(
"bin/bash"
,
"-c"
,
"openmole --port
80
--password password --http --remote"
)).
exposePort
(
80
)
val
openmoleTemplate
=
Pod
.
Template
.
Spec
.
named
(
"openmole"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment