-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from paulsaxe/main
Finalized support for Docker.
- Loading branch information
Showing
14 changed files
with
253 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM molssi/mamba141 | ||
|
||
LABEL org.opencontainers.image.authors="psaxe@molssi.org" | ||
|
||
COPY ./environment.yml /root/environment.yml | ||
|
||
RUN mamba env update -f /root/environment.yml | ||
|
||
RUN apt-get install -qy curl | ||
|
||
RUN mkdir /root/Parameters \ | ||
&& cd /root/Parameters \ | ||
&& curl 'https://dftb.org/fileadmin/DFTB/public/slako-unpacked.tar.xz' -o slako-unpacked.tar.xz \ | ||
&& tar -x -o -p -f slako-unpacked.tar.xz \ | ||
&& chmod -R go+rX . \ | ||
&& rm slako-unpacked.tar.xz | ||
|
||
WORKDIR /home | ||
CMD ["dftb+"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: base | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- python | ||
# Executables, etc. | ||
- dftbplus | ||
- dftbplus-tools | ||
- dftbplus-python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Configuration options for how to run DFTB+ | ||
|
||
[docker] | ||
# The code to use. This may maybe more than just the name of the code, and variables in | ||
# braces {} will be expanded. For example: | ||
# code = mpiexec -np {NTASKS} lmp_mpi | ||
# would expand {NTASKS} to the number of tasks and run the command | ||
|
||
code = dftb+ | ||
|
||
# The name and location of the Docker container to use, optionally with the version | ||
|
||
container = ghcr.io/molssi-seamm/seamm-dftbplus:{version} | ||
|
||
# In addition, you can specify the platform to use. This is useful on e.g. Macs with | ||
# app silicon (M1, M3...) where the default platform is linux/arm64 but some containers | ||
# are only available for linux/amd64. | ||
|
||
# platform = linux/amd64 | ||
|
||
# The path to the Slater-Koster functions | ||
|
||
slako-dir = /root/Parameters/slako | ||
|
||
|
||
[local] | ||
# The type of local installation to use. Options are: | ||
# conda: Use a conda environment | ||
# modules: Use the modules system | ||
# local: Use a local installation | ||
# docker: Use a Docker container | ||
# By default SEAMM installs DFTB+ using conda. | ||
|
||
installation = conda | ||
|
||
# The command line to use, which should start with the executable followed by any options. | ||
# Variables in braces {} will be expanded. For example: | ||
# | ||
# code = mpiexec -np {NTASKS} lmp_mpi | ||
# | ||
# would expand {NTASKS} to the number of tasks and run the command. | ||
# For a 'local' installation, the command line should include the full path to the | ||
# executable or it should be in the path. | ||
|
||
code = dftb+ | ||
|
||
######################### conda section ############################ | ||
# The full path to the conda executable: | ||
|
||
# conda = | ||
|
||
# The Conda environment to use. This is either the name or full path. | ||
|
||
conda-environment = seamm-dftbplus | ||
|
||
######################### modules section ############################ | ||
# The modules to load to run DFTB+, as a list of strings. | ||
# For example, to load the modules dftbplus and openmpi, you would use: | ||
# modules = dftbplus openmpi | ||
|
||
# modules = | ||
|
||
######################### local section ############################ | ||
# The full path to the DFTB+ executable should be in the 'code' option. | ||
|
||
######################### docker section ############################ | ||
# The name and location of the Docker container to use, optionally with the version. | ||
# {version} will be expanded to the version of the plug-in. | ||
|
||
# container = ghcr.io/molssi-seamm/seamm-dftbplus:{version} | ||
|
||
# In addition, you can specify the platform to use. This is useful on e.g. Macs with | ||
# app silicon (M1, M3...) where the default platform is linux/arm64 but some containers | ||
# are only available for linux/amd64. | ||
|
||
# platform = linux/amd64 | ||
|
||
# The path to the Slater-Koster functions | ||
|
||
slako-dir = ~/SEAMM/Parameters/slako |
Oops, something went wrong.