On Wed, 24 Nov 2021 03:48:03 +0000, Neale Ferguson <ne...@sinenomine.net> wrote:

>I’d be interested if someone could give this a run in their zCX environment. I 
>am still trying to configure mine…
>
>If you would like to give dotnet on Z a test drive and don’t yet have RHEL 8.5 
>I have created a docker image. Follow these steps to build and run the “Hello 
>World” program:
>
Works fine under our zCX environment .......

Welcome to the IBM z/OS Container Extensions (IBM zCX) shell that provides 
access to Docker commands.
For more information on how to use this shell to execute Docker commands refer 
to IBM
Last login: Thu Nov 25 04:56:04 2021 from 155.205.27.27
jyy@zcxs001:~$ docker run --rm -it clefos/dotnet
Unable to find image 'clefos/dotnet:latest' locally
latest: Pulling from clefos/dotnet
1f0267805cca: Pull complete
f867d5655f35: Pull complete
a1fd90c210ad: Pull complete
e3c2ff57c1de: Pull complete
108b4a2a82d3: Pull complete
a47ddbb1049a: Pull complete
92416c5fcb18: Pull complete
a30f3a688886: Pull complete
523ebb626ce7: Pull complete
Digest: sha256:afe628428b4f9eb80c3e54d2b2cc7f51348340387602bb89152b068fff115c72
Status: Downloaded newer image for clefos/dotnet:latest
dotnet@b3672ef4f444:~$ dotnet new console --output consapp
The template "Console App" was created successfully.

Processing post-creation actions...
Running 'dotnet restore' on /home/dotnet/consapp/consapp.csproj...
  Determining projects to restore...
  Restored /home/dotnet/consapp/consapp.csproj (in 146 ms).
Restore succeeded.

dotnet@b3672ef4f444:~$ cd consapp
dotnet@b3672ef4f444:~/consapp$ dotnet build
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  All projects are up-to-date for restore.
  consapp -> /home/dotnet/consapp/bin/Debug/net6.0/consapp.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:04.32
dotnet@b3672ef4f444:~/consapp$ dotnet run
Hello, World!
dotnet@b3672ef4f444:~/consapp$ ls -l
total 8
-rw-r--r-- 1 dotnet dotnet 105 Nov 26 03:51 Program.cs
drwxr-xr-x 1 dotnet dotnet  10 Nov 26 03:51 bin
-rw-r--r-- 1 dotnet dotnet 249 Nov 26 03:51 consapp.csproj
drwxr-xr-x 1 dotnet dotnet 266 Nov 26 03:51 obj
dotnet@b3672ef4f444:~/consapp$


Roger

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to