[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] How to volume mount condor docker universe to current directory ?



Thanks! I tested and it worked. 

Best, 
Bowen

On 7/5/17, 4:54 PM, "HTCondor-users on behalf of Todd Tannenbaum" <htcondor-users-bounces@xxxxxxxxxxx on behalf of tannenba@xxxxxxxxxxx> wrote:

    On 7/5/2017 4:17 PM, Dan, Bowen wrote:
    > Hi Greg,
    > 
    > Appreciate your fast response.
    > 
    > I am trying to mount the directory /disk-root/condor/execute/dir_199288 
    > to /data inside the Docker container.  The reason is that the 
    > application reads and writes to /data,  and I canât change the docker 
    > image such that the Symlink is created between /data to 
    > /disk-root/condor/execute/dir_199288
    > 
    > I want to add something like this to the Docker run command /--volume 
    > /disk-root/condor/execute/dir_199288:/data/.
    > 
    > I tried to add the following line to the condor local config file:
    > 
    > DOCKER_VOLUME_DIR_EXECUTE = $(_CONDOR_SCRATCH_DIR):/data
    > 
    > But it is not finding the macro $_CONDOR_SCRATCH_DIR, error message is 
    > listed below:
    
    Warning!  I did not test this, but perhaps put the following into your 
    condor_config instead of what you tried above:
    
       DOCKER_VOLUME_DIR_EXECUTE = $(EXECUTE)/dir_$(PID):/data
    
    regards,
    Todd
    
    _______________________________________________
    HTCondor-users mailing list
    To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
    subject: Unsubscribe
    You can also unsubscribe by visiting
    https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.cs.wisc.edu%2Fmailman%2Flistinfo%2Fhtcondor-users&data=01%7C01%7C%7Ce3f9df3d965a45de929108d4c3f08baf%7C6d4034cd72254f72b85391feaea64919%7C1&sdata=FKny1KTggxbF%2BYdlDYoU6ypm8kMUc8QZTToNOPK6l%2Bg%3D&reserved=0
    
    The archives can be found at:
    https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.cs.wisc.edu%2Farchive%2Fhtcondor-users%2F&data=01%7C01%7C%7Ce3f9df3d965a45de929108d4c3f08baf%7C6d4034cd72254f72b85391feaea64919%7C1&sdata=1haSFNLIj8bk6W0Qxd%2BkZ1%2BHpOfRNKFrkzHKNU9ayiA%3D&reserved=0