Fwd: Re: Docker images for NetRexx

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Fwd: Re: Docker images for NetRexx

Terry Fuller
-------- Forwarded Message --------
Subject: Re: [Ibm-netrexx] Docker images for NetRexx
Date: Wed, 29 Aug 2018 11:35:30 -0700
From: taf [hidden email]
To: IBM Netrexx [hidden email]




On 2018-08-29 04:31, René Jansen wrote:

Skip to end of metadataDear NetRexx users,


A suitable command line would be:

docker run --rm -it -v "$PWD":/nrx -w /nrx rvjansen/netrexx:3.07 zsh

The available tools within the image are being worked on, and documentation will be produced later. (Note: do not substitute your own userid for ‘rvjansen’ - that would be needed most of the time in examples, but this time it is in a (public) docker hub repository called rvjansen - we will make this a bit more ‘official’ going forward).

2) Compile or exec from a shell on your host machine

The term 'host machine' is used here to indicate the fact that the docker image runs a guest OS. 

A suitable command line would be: (assuming you want to compile a class called RSAnrx in the local directory)

docker run --rm -v "$PWD":/nrx -w /nrx rvjansen/netrexx:3.07 nrc RSAnrx

Here, --rm will make sure the container is not kept, the -v tells docker to bind mount the current directory to a directory /nrx within the container, and -w sets this as the working directory. The rvjansen/netrexx:3.07 will be downloaded once from the docker hub, when it is not on the local machine yet. It will know it has been downloaded the next time you start this image. Of course, in most shells is it possible to alias this command, or start a batchfile, c.q. a shell script containing this.

The docker images will be updated from time to time, but the basic workings will stay the same.


I would appreciate it very much if someone could test this with docker for windows.

best regards,

René Jansen.


_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/

Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Re: Docker images for NetRexx

rvjansen
Hi Terry,

this seems to work; when the prompt changes to a uuid-like name (here:5d9b .. etc) you are already in the container. 
In the container, there is no ‘docker’ command - until you run docker-in-docker. 

You could type ‘nrc’ to run the NetRexx translator, and cd /nrx to go to your mapped windows directory. 
You probably don’t have the RSAnrx.nrx program, but you can go to the /examples directory to compile the files therein.
For example:

cd /examples/new-3.07
nrc -exec pushpop

will give you the output:

d2a2600c99f4# nrc -exec pushpop
NetRexx portable processor 3.07-BETA build 447-20180803-1523
Copyright (c) RexxLA, 2011,2018.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program pushpop.nrx
===== Exec: pushpop =====
this is stdout
stout and stderr
stout and stderr
only stdout
only stdout
Processing of 'pushpop.nrx' complete


You can see the source with:

nano pushpop.nrx

Type ‘exit’ to exit to windows if you want to run docker commands again, for example to test a compile that writes into your mapped current directory.
Thanks for the feedback!

best regards,

René. 

On 29 Aug 2018, at 21:21, Terry Fuller <[hidden email]> wrote:

-------- Forwarded Message --------
Subject: Re: [Ibm-netrexx] Docker images for NetRexx
Date: Wed, 29 Aug 2018 11:35:30 -0700
From: taf [hidden email]
To: IBM Netrexx [hidden email]




On 2018-08-29 04:31, René Jansen wrote:

Skip to end of metadataDear NetRexx users,


A suitable command line would be:

docker run --rm -it -v "$PWD":/nrx -w /nrx rvjansen/netrexx:3.07 zsh

The available tools within the image are being worked on, and documentation will be produced later. (Note: do not substitute your own userid for ‘rvjansen’ - that would be needed most of the time in examples, but this time it is in a (public) docker hub repository called rvjansen - we will make this a bit more ‘official’ going forward).

2) Compile or exec from a shell on your host machine

The term 'host machine' is used here to indicate the fact that the docker image runs a guest OS. 

A suitable command line would be: (assuming you want to compile a class called RSAnrx in the local directory)

docker run --rm -v "$PWD":/nrx -w /nrx rvjansen/netrexx:3.07 nrc RSAnrx

Here, --rm will make sure the container is not kept, the -v tells docker to bind mount the current directory to a directory /nrx within the container, and -w sets this as the working directory. The rvjansen/netrexx:3.07 will be downloaded once from the docker hub, when it is not on the local machine yet. It will know it has been downloaded the next time you start this image. Of course, in most shells is it possible to alias this command, or start a batchfile, c.q. a shell script containing this.

The docker images will be updated from time to time, but the basic workings will stay the same.


I would appreciate it very much if someone could test this with docker for windows.
<pmhkpeooibgakobm.png>

best regards,

René Jansen.

_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/



_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive : http://ibm-netrexx.215625.n3.nabble.com/