As part of the exploration into building production JHS apps, I
figured the community needs an inexpensive place for hosting. I do not
have any affiliation with the provider. This docker image can be run
locally or anywhere. Based upon research, Hyper.sh seemed the least
expensive and simplest option.

I've built a proof of concept JHS docker image that can be run for as
little as $2.55/month on Hyper.sh. The link below provides $30 in
credit.

DISCLAIMER: I have only been using this for a day but based upon their
pricing it should come out to be $1/mo for the IP address and $1.55/mo
for the S2 instance

It probably deserves a wiki page but figured I'd share here first:

Docker Image: https://hub.docker.com/r/joebo/tinycore-jhs/
Dockerfile: https://github.com/joebo/docker-tinycore-jhs/blob/master/Dockerfile

This can be run locally or on a cloud provider (e.g. Hyper.sh --
https://www.hyper.sh/pricing.html)

Hyper.sh instructions:

1. Register an account on hyper.sh

Using this link on hyper.sh will get you $30 in credit $20 in credit +
$10 for the referral
https://console.hyper.sh/register/invite/QmaYJkkPbLIkn36P5ygbtaxxLxj6l4iL

I tested it with another email address and it worked

2. Install the client tool

https://console.hyper.sh/cli/download

3. Follow the instructions to create your API credentials

https://docs.hyper.sh/GettingStarted/generate_api_credential.html

4. Follow the instructions to install the CLI and log in

https://docs.hyper.sh/GettingStarted/install.html

hyper config

5. Pull image

hyper pull joebo/tinycore-jhs

6. Allocate IP (only need to do this once)

hyper fip allocate 1

7. Start image

hyper run -d -p 80:65001 --size s2 --name jhs -e CONFIG="BIND=:''any''
[ USER=:''joe'' [ PASS=:''test'' [ OKURL=:''jdemo1''" -e RUN="load
'~addons/ide/jhs/demo/jdemo1.ijs'" joebo/tinycore-jhs


NOTE: In the command above, we are loading jdemo1.ijs with the RUN
environment variable and adding it to the OKURL list

note: email may have created weird line feeds. Grab the command from
here if it doesn't work
https://hub.docker.com/r/joebo/tinycore-jhs/

This will bind to port 80 with a s2 size instance


8. Attach IP

NOTE: replace with the IP you got from step #6

hyper fip attach 209.177.92.233 jhs

9. Browse to the demo

NOTE: Replace with the IP you got from step #6

http://209.177.92.233/jdemo1


10. Browse to jijx

NOTE: Replace with the IP you got from step #6
NOTE: Use the username and password from #7

http://209.177.92.233/jijx

11. Get a shell on the container

hyper exec -it jhs sh

The shell can be used to upload new files

Let me know how it goes!

Joe
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to