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
openmole
Commits
0c1075b1
Commit
0c1075b1
authored
May 29, 2019
by
Romain Reuillon
Browse files
[Build] enh: fix docker
parent
c1bb780e
Pipeline
#270
passed with stage
in 16 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
openmole/build.sbt
View file @
0c1075b1
...
...
@@ -1055,8 +1055,9 @@ lazy val dockerBin = Project("docker", binDir / "docker") enablePlugins (sbtdock
"""chmod +x /openmole/openmole && \
|ln -s /openmole/openmole /usr/bin/openmole"""
.
stripMargin
)
runRaw
(
"""echo 'mkdir -p /var/openmole/ && chown openmole:openmole /var/openmole && sudo -u openmole openmole --http --mem 2G --port 8443 --remote $@' >/usr/bin/openmole-docker && \
|chmod +x /usr/bin/openmole-docker"""
.
stripMargin
)
"""echo '#!/bin/bash' > /usr/bin/openmole-docker && \
|echo 'mkdir -p /var/openmole/ && chown openmole:openmole /var/openmole && sudo -u openmole openmole --http --mem 2G --port 8443 --remote $@' >>/usr/bin/openmole-docker && \
|chmod +x /usr/bin/openmole-docker"""
.
stripMargin
)
volume
(
"/var/openmole"
)
expose
(
8443
)
cmdShell
(
"openmole-docker"
)
...
...
Write
Preview
Markdown
is supported
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