Skip to content

Commit

Permalink
Merge pull request #31 from gstavrinos/easier-deletion
Browse files Browse the repository at this point in the history
Added a version deletion script
  • Loading branch information
gstavrinos committed Jul 17, 2023
2 parents a1a0119 + 616b574 commit 27220fd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ or
* [For versions >= `v1.4.0`] All supported ROS versions (melodic/noetic/humble) now work on a completely persistent filesystem to save apt, library and other installations + all other user-defined changes on the container. Additionally, this version also supports audio, enabling users to play sounds through the `rosez` containers.
* [For versions >= `v1.5.0`] The `sc` or `skip-compilation` flag is now supported, which completely bypasses rosdep and catkin/colcon builds for faster startup.
* [For versions >= `v1.6.0`] A ROS2 Foxy version is now available (with the `ros2ezf` command). Its image comes with built-in `ros1_bridge` support for *ez* ROS1-ROS2 integration.
* [For versions >= `v1.6.1`] A deletion script has been included inside the `internal/deeper/` folder. It takes the version-to-delete as an argument. For example, `bash delete_version.bash ros2ezf` deletes the Foxy version for rosez.
## Tested platforms
* EndeavourOS
* Fedora 35
Expand Down
25 changes: 25 additions & 0 deletions internal/deeper/delete_version.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
volumes=(
$1-volume
$1-volume-bin
$1-volume-etc
$1-volume-home
$1-volume-lib
$1-volume-lib64
$1-volume-mnt
$1-volume-opt
$1-volume-root
$1-volume-run
$1-volume-sbin
$1-volume-srv
$1-volume-sys
$1-volume-usr
$1-volume-var
)
for volume in "${volumes[@]}"; do
docker volume rm $volume
done
image=$(echo "$1" | sed 's/ez/_ez/')
docker image rm $image:latest
docker image rm rocker:os_detect_${image}_latest
docker system prune -a

0 comments on commit 27220fd

Please sign in to comment.