@@ -26,14 +26,14 @@ RUN apt-get update && apt-get install -y \
2626 && rm -rf /var/lib/apt/lists/*
2727
2828# Copy Vector from vector image
29- COPY --from=vector /usr/bin/vector /usr/local/bin/vector
29+ COPY --from=vector --chmod=755 /usr/bin/vector /usr/local/bin/vector
3030COPY --from=vector /etc/vector /etc/vector
3131
3232# Copy Cluster Agent
33- COPY --from=cluster-agent /usr/bin/coroot-cluster-agent /usr/local/bin/cluster-agent
33+ COPY --from=cluster-agent --chmod=755 /usr/bin/coroot-cluster-agent /usr/local/bin/cluster-agent
3434
3535# Copy mdprobe
36- COPY --from=mdprobe-builder /bin/mdprobe /usr/local/bin/mdprobe
36+ COPY --from=mdprobe-builder --chmod=755 /bin/mdprobe /usr/local/bin/mdprobe
3737
3838# Create necessary directories
3939RUN mkdir -p /versions/0-default \
@@ -46,7 +46,7 @@ RUN mkdir -p /versions/0-default \
4646# Set environment variables
4747ENV BASE_URL=https://telemetry.betterstack.com
4848ENV CLUSTER_COLLECTOR=false
49- ENV COLLECTOR_VERSION=1.0.6
49+ ENV COLLECTOR_VERSION=1.0.7
5050ENV VECTOR_VERSION=0.47.0
5151ENV BEYLA_VERSION=2.2.4
5252ENV CLUSTER_AGENT_VERSION=1.2.4
@@ -68,16 +68,17 @@ ENV TINI_SUBREAPER=true
6868COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
6969
7070# Copy Ruby scripts
71- COPY updater.rb /updater.rb
72- COPY proxy.rb /proxy.rb
73- COPY vector.sh /vector.sh
71+ COPY --chmod=755 updater.rb /updater.rb
72+ COPY --chmod=755 proxy.rb /proxy.rb
73+ COPY --chmod=755 vector.sh /vector.sh
7474COPY versions/0-default/vector.yaml /versions/0-default/vector.yaml
7575COPY versions/0-default/databases.json /versions/0-default/databases.json
7676COPY kubernetes-discovery/0-default/discovered_pods.yaml /kubernetes-discovery/0-default/discovered_pods.yaml
7777COPY engine /engine
7878COPY should_run_cluster_collector.rb /should_run_cluster_collector.rb
79- COPY cluster-collector.sh /cluster-collector.sh
80- COPY ebpf.sh /ebpf.sh
79+ COPY --chmod=755 cluster-collector.sh /cluster-collector.sh
80+ COPY --chmod=755 ebpf.sh /ebpf.sh
81+ COPY dockerprobe/docker-mappings.default.csv /enrichment/docker-mappings.csv
8182
8283# Create initial vector-config with symlinks to defaults
8384RUN mkdir -p /vector-config/0-default \
@@ -87,16 +88,6 @@ RUN mkdir -p /vector-config/0-default \
8788 && ln -s /vector-config/0-default /vector-config/current \
8889 && cp /versions/0-default/vector.yaml /vector-config/latest-valid-upstream/vector.yaml
8990
90- # Set permissions
91- RUN chmod +x /usr/local/bin/vector \
92- && chmod +x /usr/local/bin/cluster-agent \
93- && chmod +x /usr/local/bin/mdprobe \
94- && chmod +x /cluster-collector.sh \
95- && chmod +x /vector.sh \
96- && chmod +x /updater.rb \
97- && chmod +x /proxy.rb \
98- && chmod +x /ebpf.sh
99-
10091# Install tini and use it as init to handle signals properly
10192ENTRYPOINT ["/usr/bin/tini" , "-s" , "--" ]
10293
0 commit comments