Skip to content

Commit

Permalink
CLI instructions added
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbsu committed Feb 18, 2024
1 parent 8cfbb4a commit 6ee2be4
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/Container_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,39 @@
6. Scroll down and press start container to start the container. \
<sub><sub>*This assumes that Podman desktop app is installed and a Podman machine is created and configured</sub><sub>
## Podman CLI

1. Build the container image from the Dockerfile using the command:
````
podman build -f /path/to/Dockerfile -t image_name .
````
where /path/to/Dockerfile is the path to the Dockerfile located in .github/workflows and image_name is the desired name for the container image.



2. Once the image is built, you can list it using:

podman images

3. To create a container from the image, run:


````
podman run -it --name container_name -v /path/to/pymgm:/app image_name
````

3. Replace container_name with the desired name for your container, image_name with the name of the image you created earlier,
and /path/to/pymgm with the path to your pymgm repo on the host machine.*

<sub>*If running using a WSL or gitbash on a Windows machine be sure to add an extra ' \ ' for every ' \ ' in the path.
EX) C:\User\username should be replaced with C:\\User\\username<sub>






4.Start the container using the command:
````
podman start container_name
````
This will start the container using the previously created name container_name.

0 comments on commit 6ee2be4

Please sign in to comment.