# Where is the pbs\_hpc\_container.py file

**URL:** <https://community.openpbs.org/t/where-is-the-pbs-hpc-container-py-file/1775>\
**Category:** Users/Site Administrators\
**Created:** [September 18, 2019, 2:50am UTC](https://community.openpbs.org/t/where-is-the-pbs-hpc-container-py-file/1775 "2019-09-18T02:50:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aki0601](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@aki0601](https://community.openpbs.org/u/aki0601)\
**Post date:** [September 18, 2019, 2:50am UTC](https://community.openpbs.org/t/where-is-the-pbs-hpc-container-py-file/1775/1 "2019-09-18T02:50:34Z")

</div>

Hi all,  
I’d like to execute jobs on container.  
When I have read this document([Securely Using PBS with Docker](https://www.altair.com/ResLibDownload.aspx?file_id2=7190&from_page=%2fResourceDetailT.aspx%3ftid%3d4497%26related%3dfalse%234497)),  
I coundn’t have understood where pbs\_hpc\_container.py is and what the content of that file is at the opration of “Create and Configure PBS Docker Hook”

pbs\_version = 19.1.2

thanks,  
Aki

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [September 18, 2019, 9:59am UTC](https://community.openpbs.org/t/where-is-the-pbs-hpc-container-py-file/1775/2 "2019-09-18T09:59:47Z")

</div>

Please note on the releases:  
MajorVersion.. are commercial releases, e.g., 18.2.1 , 19.2.1 , 19.2.3  
MajorVersion.. are PBS Pro OSS releases, e.g, 18.1.2 , 19.1.2

The document that you are referring to is a 18.2 release , hence it is not available in the PBS Pro OSS version.

Thank you

---

<div class="post-metadata">

**Author:** ![aki0601](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@aki0601](https://community.openpbs.org/u/aki0601)\
**Post date:** [September 19, 2019, 1:25am UTC](https://community.openpbs.org/t/where-is-the-pbs-hpc-container-py-file/1775/3 "2019-09-19T01:25:13Z")

</div>

Thank you, @adarsh.

> [@adarsh](#):
>
> hence it is not available in the PBS Pro OSS version.

I see, PBS Pro OSS version(19.1.2) that I’m using can’t run the job in container.

I read the Administrator’s guide for 19.2.3, and I checked that PBS pro(19.1.2) don’t have the PBS\_hpc\_container of built-in hooks.

I have another additional question.  
I could find commercial releases, but could’nt find oss releases(ex. Administrator’s Guide).  
So, can you tell me where oss releases are?

thanks,  
Aki

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [September 19, 2019, 7:36am UTC](https://community.openpbs.org/t/where-is-the-pbs-hpc-container-py-file/1775/4 "2019-09-19T07:36:11Z")

</div>

> [@aki0601](#):
>
> I could find commercial releases, but could’nt find oss releases(ex. Administrator’s Guide).  
> So, can you tell me where oss releases are?

There is one common documentation (that you have already referred) for both commercial and OSS.  
For PBS Pro OSS we have to write our own hooks to launch the job inside the container, with commercial it would be provided as a commercial offering .

Thank you

---

<div class="post-metadata">

**Author:** ![aki0601](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@aki0601](https://community.openpbs.org/u/aki0601)\
**Post date:** [September 19, 2019, 9:05am UTC](https://community.openpbs.org/t/where-is-the-pbs-hpc-container-py-file/1775/5 "2019-09-19T09:05:40Z")

</div>

> [@adarsh](#):
>
> There is one common documentation (that you have already referred) for both commercial and OSS.

OK. I see.

> [@adarsh](#):
>
> For PBS Pro OSS we have to write our own hooks to launch the job inside the container, with commercial it would be provided as a commercial offering .

I understood. I must make a hook. But I’m new to pbspro, so let me know how to make a hook for using docker or reference page if you know. and don’t mind. please.

Thanks.

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [September 19, 2019, 10:16am UTC](https://community.openpbs.org/t/where-is-the-pbs-hpc-container-py-file/1775/6 "2019-09-19T10:16:14Z")

</div>

Please follow the hooks chapter from the below link:

> **[PBSHooks19.2.3.pdf](https://www.pbsworks.com/pdfs/PBSHooks19.2.3.pdf)**
>
> 5.35 MB

You have got the framework from the above document: [Securely Using PBS with Docker](https://www.altair.com/ResLibDownload.aspx?file_id2=7190&from_page=%2fResourceDetailT.aspx%3ftid%3d4497%26related%3dfalse%234497))

You need to know : Python, learn about these PBS hook events - execjob\_end, execjob\_launch,  
exechost\_periodic, queuejob

Examples are provided in the hooks guide.

Thank you

---

<div class="post-metadata">

**Author:** ![pcebull](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/pcebull/32/83_2.png) [@pcebull](https://community.openpbs.org/u/pcebull)\
**Post date:** [September 20, 2019, 2:11pm UTC](https://community.openpbs.org/t/where-is-the-pbs-hpc-container-py-file/1775/7 "2019-09-20T14:11:48Z")

</div>

Aki,

There is an older version of the paper you referenced called “PBS Pro with Docker Integration” by Arun Grover dated 31 Aug 2015. There is an example docker launch hook in that paper that I used as an example to get the OSS version of PBS Pro running with containers on our one-node NVIDIA DGX-1 cluster using Ubuntu. I hesitate to post the paper because it is no longer available in the Altair Resource Library. Maybe one of the moderators can tell us if it’s acceptable to post it here.

Regards,  
Peter

---

<div class="post-metadata">

**Author:** ![aki0601](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@aki0601](https://community.openpbs.org/u/aki0601)\
**Post date:** [September 24, 2019, 12:50am UTC](https://community.openpbs.org/t/where-is-the-pbs-hpc-container-py-file/1775/8 "2019-09-24T00:50:58Z")

</div>

Thanks @adarsh.  
I’ll try to make a hook based on the references you taught me.

Regards,  
Aki

---

<div class="post-metadata">

**Author:** ![aki0601](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@aki0601](https://community.openpbs.org/u/aki0601)\
**Post date:** [September 24, 2019, 2:23am UTC](https://community.openpbs.org/t/where-is-the-pbs-hpc-container-py-file/1775/9 "2019-09-24T02:23:15Z")

</div>

Peter,

Thank you for the useful information.  
It’s a shame that I can’t see it

> [@pcebull](#):
>
> I hesitate to post the paper because it is no longer available in the Altair Resource Library. Maybe one of the moderators can tell us if it’s acceptable to post it here.

OK! I’ll wait someone to teach us it.

Regards,  
Aki
