-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM ghcr.io/logicethos/duo-sdk-docker:latest | ||
|
||
# Build OpenSSL | ||
RUN wget https://www.openssl.org/source/openssl-1.1.1l.tar.gz \ | ||
&& tar -xzf openssl-1.1.1l.tar.gz \ | ||
&& cd openssl-1.1.1l \ | ||
&& ./Configure linux64-riscv64 shared no-asm --prefix=$BUILD_OUTPUT \ | ||
&& make && make install | ||
|
||
# Build libyaml | ||
WORKDIR / | ||
RUN git clone https://github.com/yaml/libyaml | ||
WORKDIR /libyaml | ||
RUN ./bootstrap | ||
RUN ./configure --host=riscv64-linux-gnu --prefix=$BUILD_OUTPUT \ | ||
&& make && make install | ||
|
||
# Build gensio | ||
WORKDIR / | ||
RUN git clone https://github.com/cminyard/gensio.git | ||
WORKDIR /gensio | ||
RUN sh reconf | ||
RUN ./configure --host=riscv64-linux-gnu --prefix=$BUILD_OUTPUT \ | ||
&& make && make install | ||
|
||
## Build ser2net | ||
WORKDIR / | ||
RUN git clone https://github.com/cminyard/ser2net.git | ||
WORKDIR /ser2net | ||
RUN sh reconf | ||
RUN ./configure --host=riscv64-linux-gnu --prefix=$BUILD_OUTPUT \ | ||
&& make && make install | ||
|
||
WORKDIR $BUILD_OUTPUT | ||
|
||
CMD bash |