Skip to content

Commit

Permalink
prepare rocky bin dockerfile (release isn't uploaded yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffIrwin committed Nov 16, 2024
1 parent 80086b7 commit c13e10c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions docker/Dockerfile.broke-rocky
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@ RUN yum update -y
#RUN yum install -y curl
RUN yum install -y unzip

ARG SY_URL="https://github.com/JeffIrwin/syntran/releases/latest/download/syntran-linux.zip"
ARG SY_URL="https://github.com/JeffIrwin/syntran/releases/latest/download/syntran-rocky.zip"
#ARG SY_URL="https://github.com/JeffIrwin/syntran/releases/latest/download/syntran-linux.zip"
#ARG SY_URL="https://github.com/JeffIrwin/syntran/releases/download/0.0.48/syntran-linux.zip"

ADD "$SY_URL" ./syntran-linux.zip
RUN unzip syntran-linux*.zip
RUN rm syntran-linux*.zip
ADD "$SY_URL" ./syntran-rocky.zip
RUN unzip syntran-rocky*.zip
RUN rm syntran-rocky*.zip
RUN chmod +x ./syntran

# TODO: cp new libs too
RUN mv syntran libquadmath.so.* libc.so.* /usr/local/bin
#RUN mv syntran libquadmath.so.* libc.so.* /usr/local/bin
RUN mv syntran libquadmath.so.* libgfortran.so.* /usr/local/bin

# TODO: export LD_LIBRARY_PATH for libs
# Set LD_LIBRARY_PATH for dependent libs
RUN echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/bin" >> ~/.bashrc

RUN syntran --version
RUN syntran -c 'println("hello world");'
RUN source ~/.bashrc && syntran --version
RUN source ~/.bashrc && syntran -c 'println("hello world");'

0 comments on commit c13e10c

Please sign in to comment.