diff --git a/Examples/Dockerfile-ser2net b/Examples/Dockerfile-ser2net new file mode 100644 index 0000000..c1ea84d --- /dev/null +++ b/Examples/Dockerfile-ser2net @@ -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 \ No newline at end of file diff --git a/build-l b/build-l deleted file mode 100644 index dc113a0..0000000 --- a/build-l +++ /dev/null @@ -1,50 +0,0 @@ -# duo-sdk-docker - -Dockerfile base image for Milk-V Duo - -A prebuilt image image is available ```ghcr.io/logicethos/duo-sdk-docker:latest``` - -### How to use - -Add to the top of your Dockerfile: -``` -FROM ghcr.io/logicethos/duo-sdk-docker:latest -``` - -or run to enter the build enviroment -``` -docker run -it ghcr.io/logicethos/duo-sdk-docker:latest -``` - - -### Example - building OpenSSL: -Create Dockerfile -``` -FROM ghcr.io/logicethos/duo-sdk-docker:latest - -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: -``` -docker build -f Dockerfile-OpenSSL . -t openssl-lib -``` - -Copy the output: -The default output is at /build-output -``` -docker create --name openssl-lib openssl-lib -docker cp openssl-lib:/build-output build-output -``` - -### cmake - -If you use cmake you can use the default tool chain file like this: - -``` -cmake -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN_FILE -``` \ No newline at end of file