docker run --rm -it --privileged rjenni/chast-demo:latest
--privileged
is required for theunionfs-fuse
tool to work.--rm
is recommended to remove the container after it has been stopped.-it
is required to run the container in interactive mode.
Note: Linux Kernel > v4.18.0 is required for the unionfs-fuse
tool to work.
- Exit the container with
exit
.
All recipies are located in the /recipies
directory.
List them with:
ls -l /recipes
For checking the files as a tree under a specific folder, use:
tree <folder>
Run Tests:
chast test refactoring /recipes/class_to_record/class_to_record.chast.yml
This is only a very limited demo using the
comby
tool.
Run Tests:
chast test refactoring /recipes/python2to3/python2to3.chast.yml
Run Tests:
chast test refactoring /recipes/rearrange_class_members/rearrange_class_members.chast.yml
Run Tests:
chast test refactoring /recipes/remove_double_negation/remove_double_negation.chast.yml
Build:
# Run in `cli/` directory:
go build -o chast main.go
Copy the newest built binary from the cli directory into the demo folder.
cp ../../cli/chast .
Build the image:
docker build -t rjenni/chast-demo .
Push the image to the docker hub:
docker push rjenni/chast-demo