Skip to content

Commit 7345826

Browse files
committed
added entrypoint
1 parent 2bea9b9 commit 7345826

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

build_setup/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM ubuntu:22.04 as ecapture_builder
22

33
# Install Compilers
44
RUN apt-get update &&\
5-
apt-get install --yes git build-essential pkgconf libelf-dev llvm-14 clang-14 linux-tools-common linux-headers-generic make gcc flex bison file wget linux-source linux-libc-dev &&\
5+
apt-get install --yes git build-essential pkgconf libelf-dev llvm-14 clang-14 linux-tools-common linux-generic linux-headers-generic make gcc flex bison file wget linux-source linux-libc-dev &&\
66
# the for-shell built-in instruction does not count as a command
77
# and the shell used to execute the script is sh by default and not bash.
88
rm -f /usr/bin/clang && ln -s /usr/bin/clang-14 /usr/bin/clang &&\
@@ -36,4 +36,8 @@ FROM alpine:latest as ecapture
3636

3737
COPY --from=ecapture_builder /build/ecapture/bin/ecapture /ecapture
3838

39-
ENTRYPOINT ["/ecapture", "tls", "--firetail_api_token=${FIRETAIL_API_TOKEN}", "--firetail_api_url=${FIRETAIL_API_URL}"] # nosemgrep
39+
COPY ./build_setup/entrypoint.sh /entrypoint.sh
40+
RUN chmod +x /entrypoint.sh
41+
42+
CMD ["/bin/sh"] # nosemgrep
43+
ENTRYPOINT ["/entrypoint.sh"]

build_setup/entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
/ecapture tls --firetail_api_token=${FIRETAIL_API_TOKEN} --firetail_api_url=${FIRETAIL_API_URL}

0 commit comments

Comments
 (0)