Skip to content

Commit

Permalink
Use solc-select from pip instead of ad-hoc script
Browse files Browse the repository at this point in the history
Fixes: #23
  • Loading branch information
elopez committed Dec 8, 2021
1 parent 3fa099c commit ba4fd79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 56 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ WORKDIR /root

# Remove the version of solc installed by Etheno
RUN apt-get -y remove solc
# Install all versions of solc
COPY install_solc.sh /
RUN bash /install_solc.sh && rm /install_solc.sh
# Install the solc-selection script:
COPY solc-select /usr/bin/

# Slither now requires npx
# Also install Embark while we are at it
Expand All @@ -39,11 +34,13 @@ WORKDIR /home/ethsec
ENV HOME="/home/ethsec"
ENV PATH="${PATH}:${HOME}/.local/bin"

# Select the latest version of solc as the default:
RUN solc-select --list | tail -n1 | xargs solc-select

RUN mv examples etheno-examples

# Install all and select the latest version of solc as the default
# SOLC_VERSION is defined to a valid version to avoid a warning message on the output
RUN pip3 --no-cache-dir install solc-select
RUN solc-select install all && SOLC_VERSION=0.8.0 solc-select versions | head -n1 | xargs solc-select use

RUN pip3 --no-cache-dir install slither-analyzer pyevmasm
RUN pip3 --no-cache-dir install --upgrade manticore

Expand Down
16 changes: 0 additions & 16 deletions install_solc.sh

This file was deleted.

32 changes: 0 additions & 32 deletions solc-select

This file was deleted.

0 comments on commit ba4fd79

Please sign in to comment.