Skip to content

Instantly share code, notes, and snippets.

@clickCA
Created April 22, 2023 05:34
Show Gist options
  • Select an option

  • Save clickCA/fbf0bd52ed4f04de30f34b97a1ec3f5f to your computer and use it in GitHub Desktop.

Select an option

Save clickCA/fbf0bd52ed4f04de30f34b97a1ec3f5f to your computer and use it in GitHub Desktop.

To run the command:

  1. Change directory to the folder that contains the input file grid-6-7.txt: cd /path/to/folder
  2. Optionally, replace grid-6-7.txt with another input file. Make sure that the file is located in the current directory.
  3. Run the command: time docker run -v $PWD:/input -v $PWD:/output clickads/powergrid:latest ./prog /input/grid-6-7 /output/out.txt

This command runs a Docker container that uses the clickads/powergrid image and sorts the specified input file from the /input directory to the /output/out.txt file. The time command is used to measure the execution time of the command.

Replace /path/to/folder with the absolute path of the folder that contains the input file. Replace grid-6-7.txt with the filename of the input file you want to use.

Note that the clickads/powergrid image is not provided in this snippet and needs to be downloaded separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment