Commit 0c1075b1 authored by Romain Reuillon's avatar Romain Reuillon
Browse files

[Build] enh: fix docker

parent c1bb780e
Pipeline #270 passed with stage
in 16 minutes and 47 seconds
......@@ -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")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment