X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=XTesting%2Fpowder-profiles%2FUbuntu-22-AIML;fp=XTesting%2Fpowder-profiles%2FUbuntu-22-AIML;h=003f654a0b35a66d4a9255da8f3821a6ab72919c;hb=9901302381b93bc7756d914465d6b11d95ef37f2;hp=0000000000000000000000000000000000000000;hpb=041f33871b8a86335388a76914844316cfbff998;p=it%2Ftest.git diff --git a/XTesting/powder-profiles/Ubuntu-22-AIML b/XTesting/powder-profiles/Ubuntu-22-AIML new file mode 100644 index 0000000..003f654 --- /dev/null +++ b/XTesting/powder-profiles/Ubuntu-22-AIML @@ -0,0 +1,22 @@ +"""Ubuntu 22.04 on a hardware of your choice. This is the base image for the AI/ML framework training host installation""" + +import geni.portal as portal +# Import the ProtoGENI library. +import geni.rspec.pg as rspec + +pc = portal.Context() + +pc.defineParameter('hardware_type', 'Hardware type', portal.ParameterType.NODETYPE, '') + +params = pc.bindParameters() + +request = pc.makeRequestRSpec() + +node = request.RawPC('node-0') +node.hardware_type = params.hardware_type +node.disk_image = 'urn:publicid:IDN+emulab.net+image+emulab-ops//UBUNTU22-64-STD' + +# add docker group and manipulate certain ssh key access for root +node.addService(rspec.Execute(shell="bash", command="sudo groupadd docker && sudo usermod -aG docker root && sudo chown osc_int -R /root && tail -1 ~/.ssh/authorized_keys >> /root/.ssh/authorized_keys && rm /root/.ssh/id_rsa* && sudo chown root -R /root")) + +pc.printRequestRSpec(request)