Skip to content

Commit 6968498

Browse files
committed
Add tcpdump_helpers.inc to dpservice container
1 parent 89b8629 commit 6968498

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ COPY --from=builder \
179179
COPY --from=builder /usr/local/lib /usr/local/lib
180180
RUN ldconfig
181181

182-
# Ensure bash-completion is working in operations
183-
RUN echo 'PATH=${PATH}:/\nsource /etc/bash_completion\nsource <(dpservice-cli completion bash)' >> /root/.bashrc
182+
# Ensure quality-of-life for operations
183+
COPY hack/tcpdump_helpers.inc hack/dpservice.bashrc /root/
184+
RUN echo 'source ~/dpservice.bashrc' >> /root/.bashrc
184185

185186
ENTRYPOINT ["dpservice-bin"]

hack/dpservice.bashrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
PATH="${PATH}:/"
2+
3+
source /etc/bash_completion
4+
source <(dpservice-cli completion bash)
5+
6+
source ~/tcpdump_helpers.inc

0 commit comments

Comments
 (0)