Skip to content

Commit

Permalink
[nasa/nos3#202] Added required cryptolib libraries to Dockerfile;
Browse files Browse the repository at this point in the history
  • Loading branch information
jlucas9 committed Mar 15, 2024
1 parent 99e1398 commit 84c037c
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
#
# https://github.com/nasa-itc/deployment
#
# docker build -t ivvitc/nos3-64:latest .
# docker run -it ivvitc/nos3-64 /bin/bash
# docker push ivvitc/nos3-64:latest
# docker build -t ivvitc/nos3-64:dev .
# docker run -it ivvitc/nos3-64:dev /bin/bash
# docker push ivvitc/nos3-64:dev

FROM ubuntu:jammy-20240212 AS nos0

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y \
&& apt-get install -y \
cmake \
curl \
g++-multilib \
gcc-multilib \
git \
Expand All @@ -26,13 +27,18 @@ RUN apt-get update -y \
libboost-filesystem-dev \
libboost-thread-dev \
libboost-regex-dev \
libcurl4-openssl-dev \
libmariadb-dev \
libmariadb-dev-compat \
libgcrypt20-dev \
libgtest-dev \
libicu-dev \
libncurses5-dev \
libreadline-dev \
libsocketcan-dev \
libxerces-c-dev \
netcat \
unzip \
wget \
&& rm -rf /var/lib/apt/lists/*

Expand All @@ -42,13 +48,19 @@ RUN sed 's/fs.mqueue.msg_max/fs.mqueue.msg_max=500/' /etc/sysctl.conf \
&& apt-get install -y \
/nos3_filestore/packages/ubuntu/*_amd64.deb \
&& chmod -R 777 /usr \
&& ln -s /usr/lib/libnos_engine_client.so /usr/lib/libnos_engine_client_cxx11.so \
# && mkdir -p /opt/nos3 \
# && cd /opt/nos3 \
# && git clone https://github.com/ericstoneking/42.git --depth=1 \
# && cd /opt/nos3/42 \
# && git reset --hard f20d8d517b352b868d2f45ee3bffdb7deeedb218 \
# && cd /opt/nos3/42 \
# && sed 's/#GLUT_OR_GLFW = _USE_GLUT_/GLUT_OR_GLFW = _USE_GLUT_/' -i /opt/nos3/42/Makefile \
# && make \
# && chmod -R 777 /opt
&& ln -s /usr/lib/libnos_engine_client.so /usr/lib/libnos_engine_client_cxx11.so

FROM nos1 AS nos2
ARG WOLFSSL_VERSION=5.6.0-stable
RUN curl \
-LS https://github.com/wolfSSL/wolfssl/archive/v${WOLFSSL_VERSION}.zip \
-o v${WOLFSSL_VERSION}.zip \
&& unzip v${WOLFSSL_VERSION}.zip \
&& rm v${WOLFSSL_VERSION}.zip \
&& cd wolfssl-${WOLFSSL_VERSION} \
&& mkdir -p build \
&& cd build \
&& cmake -DWOLFSSL_AESCCM=yes -DWOLFSSL_AESSIV=yes -DWOLFSSL_CMAC=yes .. \
&& cmake --build . \
&& make install \
&& ldconfig

0 comments on commit 84c037c

Please sign in to comment.