Skip to content

Instantly share code, notes, and snippets.

@konradkonrad
Last active March 5, 2020 06:03
Show Gist options
  • Save konradkonrad/38a02157ddb379e831ea0642a7ee6585 to your computer and use it in GitHub Desktop.
Save konradkonrad/38a02157ddb379e831ea0642a7ee6585 to your computer and use it in GitHub Desktop.
solc from docker (sort of)
#!/usr/bin/env bash
# Usage:
# ./solc [options] inputfile > outfile
# Notes:
# - file i/o is limited to the current directory
# - this works with the pyethereum solc_wrapper
docker run -i --rm --user $(id -u):$(id -g) -v $(pwd):/tmp --workdir /tmp ethereum/solc:0.4.18 $@
@konradkonrad
Copy link
Author

note: this just uses the official docker image ethereum/solc now -- the dockerfile from earlier revisions was removed

@davidbongcc
Copy link

Does it mean this solution no longer valid?

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