Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2637 from lunkwill42/feature/improve-snmp-tunnel
Various improvements to the SNMP forwarding/proxying container setup
- Loading branch information
Showing
3 changed files
with
32 additions
and
12 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
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FROM debian:bullseye | ||
RUN apt-get update && apt-get install -y openssh-server socat sudo tini | ||
COPY snmp_forward.sh / | ||
RUN echo '%adm ALL=NOPASSWD: /usr/bin/socat' > /etc/sudoers.d/socat | ||
RUN chmod 0440 /etc/sudoers.d/socat | ||
ARG USER | ||
RUN useradd -g adm --no-create-home $USER | ||
USER $USER | ||
|
||
COPY snmp_forward.sh / | ||
ENTRYPOINT ["tini", "/snmp_forward.sh"] |
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