Skip to content

Adding a Dockerfile and starting publishing node9 runtime#14

Open
rvs wants to merge 1 commit intojvburnes:masterfrom
rvs:docker
Open

Adding a Dockerfile and starting publishing node9 runtime#14
rvs wants to merge 1 commit intojvburnes:masterfrom
rvs:docker

Conversation

@rvs
Copy link
Copy Markdown
Contributor

@rvs rvs commented Dec 29, 2020

This PR is a rough cut of publishing Node9 into Dockerhub under the name node9/runtime. This will happen on every push into the master and will enable us to do things like:

$ docker run -it node9/runtime
node9 First Edition (20150610), build: 1609207059  main (pid=1)
Tue Dec 29 02:26:23 2020  node9/kernel: initializing terminal
Tue Dec 29 02:26:23 2020  node9/kernel: loading
Tue Dec 29 02:26:23 2020  node9/kernel: initializing namespace
Tue Dec 29 02:26:23 2020  node9/kernel: binding standard streams
Tue Dec 29 02:26:23 2020  node9/kernel: initializing host environment
Tue Dec 29 02:26:23 2020  node9/kernel: accepting requests
Tue Dec 29 02:26:23 2020  node9/kernel: starting luaspace ...
Tue Dec 29 02:26:23 2020  signals set
(/appl/sh): started
[the time on the console is Tue Dec 29 02:26:23 2020]
;

Or, more interestingly, things like:

$ docker run -it -v `pwd`/fs/appl:/fs/user node9/runtime
node9 First Edition (20150610), build: 1609207059  main (pid=1)
Tue Dec 29 02:26:23 2020  node9/kernel: initializing terminal
Tue Dec 29 02:26:23 2020  node9/kernel: loading
Tue Dec 29 02:26:23 2020  node9/kernel: initializing namespace
Tue Dec 29 02:26:23 2020  node9/kernel: binding standard streams
Tue Dec 29 02:26:23 2020  node9/kernel: initializing host environment
Tue Dec 29 02:26:23 2020  node9/kernel: accepting requests
Tue Dec 29 02:26:23 2020  node9/kernel: starting luaspace ...
Tue Dec 29 02:26:23 2020  signals set
(/appl/sh): started
[the time on the console is Tue Dec 29 02:26:23 2020]
; ls /user
--rw-r--r--         root         root         2193   Fri Dec 25 03:24:23 2020 apptest.lua
--rw-r--r--         root         root         2761   Fri Dec 25 03:24:23 2020 export.lua
--rw-r--r--         root         root         5910   Fri Dec 25 03:24:23 2020 listen.lua
--rw-r--r--         root         root          758   Fri Dec 25 03:24:22 2020 ls.lua
--rw-r--r--         root         root         8664   Fri Dec 25 03:24:22 2020 mount.lua
--rw-r--r--         root         root        10715   Sat Dec 26 02:08:46 2020 sh.lua
--rw-r--r--         root         root         6128   Fri Dec 25 03:24:22 2020 styxlisten.lua
--rw-r--r--         root         root        13668   Fri Dec 25 03:24:22 2020 syscall.lua
--rw-r--r--         root         root        23730   Fri Dec 25 03:24:22 2020 test.lua
--rw-r--r--         root         root          849   Fri Dec 25 03:24:22 2020 unmount.lua

Note that the usual docker run -it node9/runtime -h will work as expected as well and will print help message (and the same applies to all the other command line arguments that one would pass to node9 like -t for example).

Signed-off-by: Roman Shaposhnik <rvs@zededa.com>
@rvs
Copy link
Copy Markdown
Contributor Author

rvs commented Dec 29, 2020

Btw, @jvburnes if you're curious how our first test run went -- please take a look here https://github.com/rvs/node9/runs/1619959043

If you like it -- you'll have to add two secrets to your GitHub repo so that action can push to DockerHUB as shown above. Please respond with your public GPG key so I can send those to you privately.

@rvs
Copy link
Copy Markdown
Contributor Author

rvs commented Jan 4, 2021

Happy New Year @jvburnes! Any thoughts on whether this could be merged (I also still need your DockerHUB ID for the org).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant