Releases: RESTGroup/rest_workspace
Releases · RESTGroup/rest_workspace
Containerization Support
We are excited to announce that the program now supports containerization. A Dockerfile is provided, enabling users to easily build and deploy the REST service using Docker. This addition simplifies the setup process and ensures consistent environments across different systems.
How to Use Dockerfile:
-
Make sure you have installed Docker
-
Download the Dockerfile:
- Download the attached Dockerfile to your local machine.
-
Build the Docker Image:
- Navigate to the directory containing the
Dockerfile. - Run the following command to build the Docker image:
(Run about 30min)docker build -t rest/x86:0.1 .
- Navigate to the directory containing the
-
Run the Docker Container:
- After building the image, you can run the container with a local folder mounted by using:
docker run -d -v /path/to/local/folder:/path/in/container rest/x86:0.1
- Replace
/path/to/local/folderwith the path to the local directory you want to mount and/path/in/containerwith the desired path inside the container. - This will start the service with the local folder mounted, allowing you to interact with the container’s filesystem.
- After building the image, you can run the container with a local folder mounted by using:
How to Use Singularity:
-
Convert to Singularity Image:
- To convert the Docker image to a Singularity image, follow one of the two methods below:
Option 1: Using
docker-daemon- Run the following command:
singularity build rest_x86_0.1.sif docker-daemon://rest/x86:0.1
Option 2: Export Docker Image to a TAR file
- Export the Docker image to a TAR file:
docker save -o rest_x86_0.1.tar rest/x86:0.1
- Build the Singularity image from the TAR file:
singularity build rest_x86_0.1.sif docker-archive://rest_x86_0.1.tar
-
Run the Singularity Container:
- Once the Singularity image is built, you can run it with:
singularity exec --bind /path/to/local:/path/in/container rest_x86_0.1.sif bash -c "rest"
- Once the Singularity image is built, you can run it with: