1
0
Fork 0

Refactor proto package + bin names

This commit is contained in:
Florian RICHER 2023-01-31 19:38:48 +01:00
parent e46fe9db87
commit 2b028c694f
9 changed files with 15 additions and 15 deletions

View file

@ -5,21 +5,21 @@ RUN apt update && apt install openssh-server curl build-essential protobuf-compi
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN useradd -rm -d /home/test -s /opt/gateway/target/release/client test
RUN useradd -rm -d /home/test -s /opt/gateway/target/release/gtwy_interpreter test
RUN echo 'test:test' | chpasswd
# Build project binaries
COPY . /opt/gateway
WORKDIR /opt/gateway
RUN cargo build --release --bin daemon
RUN cargo build --release --bin client
RUN cargo build --release --bin gtwyd
RUN cargo build --release --bin gtwy_interpreter
RUN mkdir -p /var/run
RUN chmod ugo+rx /var
RUN chmod ugo+rwx /var/run
RUN echo '#!/bin/sh\n\
/usr/sbin/sshd -D&\n\
su - test -s /bin/sh -c "/opt/gateway/target/release/daemon"' > /opt/startup.sh
su - test -s /bin/sh -c "/opt/gateway/target/release/gtwyd"' > /opt/startup.sh
RUN chmod +x /opt/startup.sh