Skip to content

Update Docker image to allow for basis set to be updated #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/prod-envs-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:
#- qcarchive-worker-openff-ani
#- qcarchive-worker-openff-openmm
#- qcarchive-worker-openff-psi4
#- qcarchive-worker-openff-psi4-ddx
- qcarchive-worker-openff-xtb
- qcarchive-worker-openff-psi4-ddx
#- qcarchive-worker-openff-xtb
- qcarchive-worker-openff-psi4-basis-set-update
steps:
- name: Checkout code
uses: nschloe/action-cached-lfs-checkout@v1
Expand Down
16 changes: 13 additions & 3 deletions devtools/docker/qcarchive-worker-openff/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,24 @@ FROM condaforge/miniforge3

SHELL ["/bin/bash", "-c"]

RUN mamba env create -n qcfractal -f https://raw.githubusercontent.com/openforcefield/qca-dataset-submission/master/devtools/prod-envs/${ENV_NAME}.yaml
ADD https://raw.githubusercontent.com/openforcefield/qca-dataset-submission/update_docker/devtools/prod-envs/${ENV_NAME}.yaml /tmp/env.yaml
RUN echo ${ENV_NAME}
RUN mamba env create -n qcfractal -f /tmp/env.yaml && \
if [[ "${ENV_NAME}" =~ "basis-set-update" ]]; then \
echo "!!!!!!!!!!!!\n!!! Modifying Basis Set!!!\n!!!!!!!!!!!!!!!" && \
mamba run -n qcfractal python -c "import basis_set_exchange as bse, os; \
conda_prefix = os.environ.get('CONDA_PREFIX', '/opt/conda/envs/qcfractal'); \
path = os.path.join(conda_prefix, 'share', 'psi4', 'basis', 'aug-cc-pvtz-dk.gbs'); \
data = bse.get_basis('aug-cc-pVTZ-dk', fmt='psi4', header=True, optimize_general=True); \
open(path, 'w').write(data)"; \
fi

RUN groupadd -g 999 qcfractal && \
useradd -m -r -u 999 -g qcfractal qcfractal

USER qcfractal

ENV PATH /opt/conda/bin:$PATH
ENV PATH=/opt/conda/bin:$PATH
RUN echo "source activate qcfractal" > ~/.bashrc

ENTRYPOINT /bin/bash -c "source activate qcfractal && qcfractal-compute-manager --config /etc/qcfractal-manager/manager.yaml --verbose"
ENTRYPOINT /bin/bash -c "source activate qcfractal && qcfractal-compute-manager --config /etc/qcfractal-manager/manager.yaml --verbose"
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: qcarchive-worker-openff-psi4
channels:
- conda-forge/label/libint_dev
- conda-forge
dependencies:
- python =3.10
- pip
- qcfractalcompute>=0.60
- qcengine
- qcelemental

# QM calculations
- psi4
- pyddx
- dftd3-python
- gcp-correction
- scipy
- dftd4-python

# procedures
- geometric

- pip:
- basis_set_exchange
3 changes: 2 additions & 1 deletion devtools/prod-envs/qcarchive-worker-openff-psi4-ddx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ channels:
dependencies:
- python =3.10
- pip
- qcfractalcompute
- qcfractalcompute>=0.60
- qcengine
- qcelemental

Expand All @@ -15,6 +15,7 @@ dependencies:
- dftd3-python
- gcp-correction
- scipy
- dftd4-python

# procedures
- geometric
Expand Down
Loading