Containerization on H4H#
Containerization is especially useful for H4H projects because it allows us to not have to build our enviromnents on H4H.
Apptainer#
Apptainer is a simple easy to use container platform that is can be used on H4H. You can find the documentation here.
Installation#
To install Apptainer on H4H, it is important to use the instructions here.
Suggested Workflow#
- Create a Dockerfile for your project on your local machine. To learn how to create a Dockerfile, you can refer to the Dockerfile section of the Docker documentation.
-
Build the container with Docker and push it to Docker Hub on your local machine.
Note
To push to Docker Hub, you will need to create an account on Docker Hub. It is a good idea to use your BHKLab email for this account.
-
Pull the container from Docker Hub using
apptainer pullon H4H. - Run the container using
apptainer runon H4H.