Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operator changes to support CRD #554

Merged
merged 83 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
cb53e68
try-1 ME fixes
vishiy Jul 11, 2023
fb4e120
disable arm64 build
vishiy Jul 11, 2023
bcbf0f4
fix me config
vishiy Jul 19, 2023
a011aaf
update endpoint
vishiy Jul 19, 2023
8b5069f
Merge changes from grace/operator and rashmi/operator-config-new to a…
rashmichandrashekar Aug 7, 2023
c0f033b
upgrade all to latest and setup resource attributes
vishiy Aug 8, 2023
29bb664
trigger build
vishiy Aug 8, 2023
46503f8
Rashmi/crd (#563)
rashmichandrashekar Aug 14, 2023
25da961
building from right branch
rashmichandrashekar Aug 14, 2023
d073ab0
Merge branch 'main' into operator-targetallocator
rashmichandrashekar Aug 14, 2023
29cd875
fixing dockerfile
rashmichandrashekar Aug 14, 2023
714280b
trying recursuive for TA build
rashmichandrashekar Aug 14, 2023
3b5e733
uncommenting other builds
rashmichandrashekar Aug 14, 2023
878d0b9
adding sample pod monitor for reference app
rashmichandrashekar Aug 14, 2023
ba588b5
testing out trivy
rashmichandrashekar Aug 14, 2023
e2f21c6
uncommenting all builds
rashmichandrashekar Aug 14, 2023
ca120c3
removing $$ since TA doesnt support env var substitution
rashmichandrashekar Aug 15, 2023
27e6241
adding $ manipulation for ds and rs
rashmichandrashekar Aug 15, 2023
f0f7de3
Updating operator submodules
rashmichandrashekar Aug 15, 2023
bbedb09
adding affinity
rashmichandrashekar Aug 16, 2023
05cc565
removing comment
rashmichandrashekar Aug 16, 2023
7c7e342
example service monitor CR and update reference app with label (#580)
bragi92 Aug 31, 2023
da272c2
TA fix for not detecting collector instances up from 0 to 1 (#581)
rashmichandrashekar Sep 1, 2023
9a40628
Changes for fallback toggle and cfgmap (#586)
rashmichandrashekar Sep 7, 2023
5067ca4
merging with main
rashmichandrashekar Sep 7, 2023
8cb75ce
Remove submodules for TA and prom operator (#587)
gracewehner Sep 7, 2023
1f2cd88
EV2 build, telemetry fix, requests and limits update (#588)
gracewehner Sep 7, 2023
6a4e356
fix scanning in build
gracewehner Sep 7, 2023
89eb36b
Merge remote-tracking branch 'origin/main' into operator-targetallocator
gracewehner Sep 14, 2023
d54159e
fix pipeline errors and warnings
gracewehner Sep 15, 2023
6ad94cf
HTTP proxy compatibility with target allocator (#597)
gracewehner Sep 15, 2023
f7c65eb
Add toggle for ARC through values.yaml (#590)
gracewehner Sep 15, 2023
06cc503
fixing pr comments
rashmichandrashekar Sep 15, 2023
1ef224b
Merge branch 'operator-targetallocator' of https://github.com/Azure/p…
rashmichandrashekar Sep 15, 2023
3c89dab
addressing pr comments
rashmichandrashekar Sep 21, 2023
edfb12b
Rename target allocator (#599)
gracewehner Sep 22, 2023
337e18b
hardcoding to kube-system
rashmichandrashekar Sep 25, 2023
75b0332
remove health check and debug logging
gracewehner Sep 26, 2023
a0b7848
removing comments
rashmichandrashekar Sep 27, 2023
5f2da3d
Merge branch 'operator-targetallocator' of https://github.com/Azure/p…
rashmichandrashekar Sep 27, 2023
380389d
adding chart setting telemetry
rashmichandrashekar Sep 27, 2023
89dfb9c
taking latest upgrades from vishwa/e3
rashmichandrashekar Sep 29, 2023
e2be19c
fixing space and writing tof ile
rashmichandrashekar Sep 29, 2023
0cc4993
upgrade all dependencies but collector
vishiy Oct 2, 2023
f2eecfb
update golang
vishiy Oct 2, 2023
10528e9
Update CVEs
vishiy Oct 3, 2023
2ccca1f
update config
vishiy Oct 3, 2023
abcc934
remove branch
vishiy Oct 3, 2023
3333773
Adding signing and reviewing licence (#617)
rashmichandrashekar Oct 4, 2023
a4c0013
make build fail when trivy fails
gracewehner Oct 4, 2023
a5ee35c
Revert "taking latest upgrades from vishwa/e2"
rashmichandrashekar Oct 4, 2023
5bcefce
Merge branch 'operator-targetallocator' of https://github.com/Azure/p…
rashmichandrashekar Oct 5, 2023
ad212c8
taking Vishwa's upgrades
rashmichandrashekar Oct 5, 2023
60d54a5
Merge remote-tracking branch 'origin/main' into operator-targetallocator
gracewehner Oct 6, 2023
a806670
remove duplicate line
gracewehner Oct 6, 2023
825f549
Upgrade components to v0.85.0 (#624)
gracewehner Oct 6, 2023
205ea2e
fix syntax error
gracewehner Oct 6, 2023
d102719
Telegraf telemetry feedback (#628)
gracewehner Oct 9, 2023
db106d2
trivy CVE cleanup + add comments to telegraf to explain regex
gracewehner Oct 9, 2023
2aa7a37
add chart changes for toggle for backdoor deployment
rashmichandrashekar Oct 11, 2023
3824b3e
Merge branch 'operator-targetallocator' of https://github.com/Azure/p…
rashmichandrashekar Oct 11, 2023
ac9177e
Merge remote-tracking branch 'origin/main' into operator-targetallocator
gracewehner Oct 11, 2023
c98c1d2
revert to old windows telegraf version
gracewehner Oct 11, 2023
312d21e
Separate out telegraf file based on TA toggle (#629)
gracewehner Oct 11, 2023
dc448b9
fix $ issue in TA
rashmichandrashekar Oct 12, 2023
29c7f64
Merge branch 'operator-targetallocator' of https://github.com/Azure/p…
rashmichandrashekar Oct 12, 2023
2e965eb
fix syntax issue
rashmichandrashekar Oct 12, 2023
c9cb268
undo $ fix
rashmichandrashekar Oct 12, 2023
bc26e5c
adding to trivy ignore
rashmichandrashekar Oct 12, 2023
21dbc6a
Merge branch 'main' into operator-targetallocator
rashmichandrashekar Oct 12, 2023
4c7530d
latest fix
rashmichandrashekar Oct 12, 2023
52fc0a8
take Kaveesh's windows fix
rashmichandrashekar Oct 13, 2023
31fb768
cleaning up tgf conf
rashmichandrashekar Oct 13, 2023
b7698f0
Update pod-monitor-template.yaml to use the right group
rashmichandrashekar Oct 16, 2023
bab4e6c
Update service-monitor-template.yaml to use the right group
rashmichandrashekar Oct 16, 2023
6ee3399
add in affinity
gracewehner Oct 16, 2023
ce3e544
fix default values-template for arc toggle
gracewehner Oct 18, 2023
ee51732
Add initial loading for delayed start and fix telemetry bug (#637)
rashmichandrashekar Oct 18, 2023
f398719
Merge remote-tracking branch 'origin/main' into operator-targetallocator
gracewehner Oct 18, 2023
0097482
add jitter for telegraf with ta enabled
gracewehner Oct 18, 2023
f1563af
jitter for daemonset file too
gracewehner Oct 18, 2023
44d38ef
remove branch from build
rashmichandrashekar Oct 18, 2023
5833d09
Merge branch 'operator-targetallocator' of https://github.com/Azure/p…
rashmichandrashekar Oct 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file added .gitmodules
Empty file.
225 changes: 220 additions & 5 deletions .pipelines/azure-pipeline-build.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"$schema": "http://schema.express.azure.com/schemas/2015-01-01-alpha/RolloutParameters.json",
"contentVersion": "1.0.0.0",
"wait": [
{
"name": "waitSdpBakeTime",
"properties": {
"duration": "PT24H"
}
}
],
"shellExtensions": [
{
"name": "PushAgentToACR",
"type": "ShellExtensionType",
"properties": {
"maxexecutiontime": "PT1H"
},
"package": {
"reference": {
"path": "artifacts.tar.gz"
}
},
"launch": {
"command": [
"/bin/bash",
"pushAgentToAcr.sh"
],
"environmentVariables": [
{
"name": "ACR_REGISTRY",
"value": "__ACR_REGISTRY__"
},
{
"name": "PROD_ACR_REPOSITORY",
"value": "__PROD_ACR_AGENT_REPOSITORY__"
},
{
"name": "MCR_REGISTRY",
"value": "__MCR_REGISTRY__"
},
{
"name": "PROD_MCR_REPOSITORY",
"value": "__PROD_MCR_AGENT_REPOSITORY__"
},
{
"name": "DEV_MCR_REPOSITORY",
"value": "__DEV_MCR_AGENT_REPOSITORY__"
},
{
"name": "IMAGE_TAG",
"value": "__CONFIGREADER_TAG__"
}
],
"identity": {
"type": "userAssigned",
"userAssignedIdentities": [
"__MANAGED_IDENTITY__"
]
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"$schema": "http://schema.express.azure.com/schemas/2015-01-01-alpha/RolloutParameters.json",
"contentVersion": "1.0.0.0",
"wait": [
{
"name": "waitSdpBakeTime",
"properties": {
"duration": "PT24H"
}
}
],
"shellExtensions": [
{
"name": "PushAgentToACR",
"type": "ShellExtensionType",
"properties": {
"maxexecutiontime": "PT1H"
},
"package": {
"reference": {
"path": "artifacts.tar.gz"
}
},
"launch": {
"command": [
"/bin/bash",
"pushAgentToAcr.sh"
],
"environmentVariables": [
{
"name": "ACR_REGISTRY",
"value": "__ACR_REGISTRY__"
},
{
"name": "PROD_ACR_REPOSITORY",
"value": "__PROD_ACR_AGENT_REPOSITORY__"
},
{
"name": "MCR_REGISTRY",
"value": "__MCR_REGISTRY__"
},
{
"name": "PROD_MCR_REPOSITORY",
"value": "__PROD_MCR_AGENT_REPOSITORY__"
},
{
"name": "DEV_MCR_REPOSITORY",
"value": "__DEV_MCR_AGENT_REPOSITORY__"
},
{
"name": "IMAGE_TAG",
"value": "__TARGETALLOCATOR_TAG__"
}
],
"identity": {
"type": "userAssigned",
"userAssignedIdentities": [
"__MANAGED_IDENTITY__"
]
}
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@
"actions": [ "Shell/PushAgentToACR" ],
"dependsOn": [ ]
},
{
"name": "PushTargetAllocator",
"targetType": "ServiceResource",
"targetName": "PushTargetAllocator",
"actions": [ "Shell/PushAgentToACR" ],
"dependsOn": [ ]
},
{
"name": "PushConfigReader",
"targetType": "ServiceResource",
"targetName": "PushConfigReader",
"actions": [ "Shell/PushAgentToACR" ],
"dependsOn": [ ]
},
{
"name": "PushKSMChart",
"targetType": "ServiceResource",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@
"find": "__WINDOWS_TAG__",
"replaceWith": "$(WindowsTag)"
},
{
"find": "__TARGETALLOCATOR_TAG__",
"replaceWith": "$(TargetAllocatorTag)"
},
{
"find": "__TARGETALLOCATOR_TAG__",
"replaceWith": "$(ConfigReaderTag)"
},
{
"find": "__PROD_MCR_AGENT_REPOSITORY__",
"replaceWith": "$(ProdMCRAgentRepository)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@
"InstanceOf": "ShellExtension",
"RolloutParametersPath": "Parameters\\PrometheusCollector.Windows.Parameters.json"
},
{
"Name": "PushTargetAllocator",
"InstanceOf": "ShellExtension",
"RolloutParametersPath": "Parameters\\PrometheusCollector.TargetAllocator.Parameters.json"
},
{
"Name": "PushConfigReader",
"InstanceOf": "ShellExtension",
"RolloutParametersPath": "Parameters\\PrometheusCollector.ConfigReader.Parameters.json"
},
{
"Name": "Push1PHelmChart",
"InstanceOf": "ShellExtension",
Expand Down
5 changes: 5 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ CVE-2022-27191
CVE-2022-23471
CVE-2023-25153
CVE-2023-25173
# target-allocator
CVE-2023-2253

# MEDIUM
# opt/telegraf/telegraf
Expand All @@ -27,3 +29,6 @@ CVE-2022-41723
CVE-2022-41717
CVE-2022-46146
CVE-2022-41721
# target-allocator
CVE-2023-29401
CVE-2023-40577
2 changes: 2 additions & 0 deletions internal/referenceapp/prometheus-reference-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ apiVersion: v1
kind: Service
metadata:
name: prometheus-reference-service
labels:
app: prometheus-reference-app
spec:
selector:
app: prometheus-reference-app
Expand Down
7 changes: 4 additions & 3 deletions otelcollector/build/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,13 @@ COPY ./logrotate/crontab /etc/crontab
COPY ./scripts/livenessprobe.sh $tmpdir/microsoft/liveness/livenessprobe.sh
COPY ./configmapparser/*.rb $tmpdir/microsoft/configmapparser/
COPY ./configmapparser/default-prom-configs/*.yml $tmpdir/microsoft/otelcollector/default-prom-configs/
COPY ./opentelemetry-collector-builder/collector-config-default.yml ./opentelemetry-collector-builder/collector-config-template.yml ./opentelemetry-collector-builder/PROMETHEUS_VERSION $tmpdir/microsoft/otelcollector/
COPY ./opentelemetry-collector-builder/collector-config-default.yml ./opentelemetry-collector-builder/collector-config-template.yml ./opentelemetry-collector-builder/collector-config-replicaset.yml ./opentelemetry-collector-builder/PROMETHEUS_VERSION $tmpdir/microsoft/otelcollector/
COPY --from=otelcollector-builder /src/opentelemetry-collector-builder/otelcollector $tmpdir/microsoft/otelcollector/
COPY --from=otelcollector-builder /src/opentelemetry-collector-builder/otelcollector $tmpdir/microsoft/otelcollector/
COPY --from=otelcollector-builder /src/goversion.txt $tmpdir/goversion.txt
COPY --from=prom-config-validator-builder /src/prom-config-validator-builder/promconfigvalidator $tmpdir/
COPY ./scripts/setup.sh ./scripts/main.sh $tmpdir/

COPY ./scripts/*.sh $tmpdir/
COPY ./metricextension/me.config ./metricextension/me_internal.config ./metricextension/me_ds.config ./metricextension/me_ds_internal.config /usr/sbin/
COPY ./telegraf/telegraf-prometheus-collector.conf $tmpdir/telegraf/
COPY ./fluent-bit/fluent-bit.conf ./fluent-bit/fluent-bit-daemonset.conf ./fluent-bit/fluent-bit-parsers.conf $tmpdir/fluent-bit/
Expand All @@ -73,7 +74,7 @@ COPY ./build/linux/rpm-repos/ /etc/yum.repos.d/
ARG TARGETARCH
RUN tdnf clean all
RUN tdnf repolist --refresh
RUN tdnf update
RUN tdnf update -y
RUN tdnf install -y wget sudo net-tools cronie vim ruby-devel logrotate procps-ng busybox diffutils curl
RUN mkdir /busybin && busybox --install /busybin
RUN chmod 775 /etc/cron.daily/logrotate
Expand Down
108 changes: 108 additions & 0 deletions otelcollector/build/linux/configuration-reader/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/oss/go/microsoft/golang:1.19 as prom-config-validator-builder
WORKDIR /src
RUN apt-get update && apt-get install gcc-aarch64-linux-gnu -y
COPY ./prom-config-validator-builder/go.mod ./prom-config-validator-builder/go.sum ./prom-config-validator-builder/
COPY ./prometheusreceiver/go.mod ./prometheusreceiver/go.sum ./prometheusreceiver/
WORKDIR /src/prometheusreceiver
RUN go version
RUN go mod download
WORKDIR /src/prom-config-validator-builder
RUN go mod download
COPY ./prom-config-validator-builder /src/prom-config-validator-builder
COPY ./prometheusreceiver /src/prometheusreceiver
ARG TARGETOS TARGETARCH
RUN if [ "$TARGETARCH" = "arm64" ] ; then CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -buildmode=pie -ldflags '-linkmode external -extldflags=-Wl,-z,now' -o promconfigvalidator . ; else CGO_ENABLED=1 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -buildmode=pie -ldflags '-linkmode external -extldflags=-Wl,-z,now' -o promconfigvalidator . ; fi

FROM --platform=$BUILDPLATFORM mcr.microsoft.com/oss/go/microsoft/golang:1.19 as configuration-reader-builder
WORKDIR /src
RUN apt-get update && apt-get install gcc-aarch64-linux-gnu -y
COPY ./configuration-reader-builder/go.mod ./configuration-reader-builder/go.sum ./configuration-reader-builder/
RUN go version > goversion.txt
WORKDIR /src/configuration-reader-builder
RUN go mod download
COPY ./configuration-reader-builder /src/configuration-reader-builder
ARG TARGETOS TARGETARCH
RUN if [ "$TARGETARCH" = "arm64" ] ; then CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -buildmode=pie -ldflags '-linkmode external -extldflags=-Wl,-z,now' -o configurationreader . ; else CGO_ENABLED=1 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -buildmode=pie -ldflags '-linkmode external -extldflags=-Wl,-z,now' -o configurationreader . ; fi

FROM mcr.microsoft.com/cbl-mariner/base/core:2.0 as builder
LABEL description="Azure Monitor Prometheus metrics collector - configuration reader sidecar"
LABEL maintainer="[email protected]"
ENV OS_TYPE "linux"
ENV tmpdir /opt
COPY ./logrotate/logrotate /etc/cron.daily/logrotate
COPY ./logrotate/crontab /etc/crontab
COPY ./scripts/livenessprobe-configreader.sh $tmpdir/microsoft/liveness/livenessprobe-configreader.sh
COPY ./configmapparser/*.rb $tmpdir/microsoft/configmapparser/
COPY ./configmapparser/default-prom-configs/*.yml $tmpdir/microsoft/otelcollector/default-prom-configs/
COPY ./opentelemetry-collector-builder/collector-config-default.yml ./opentelemetry-collector-builder/collector-config-template.yml ./opentelemetry-collector-builder/PROMETHEUS_VERSION $tmpdir/microsoft/otelcollector/
COPY --from=configuration-reader-builder /src/goversion.txt $tmpdir/goversion.txt
COPY --from=prom-config-validator-builder /src/prom-config-validator-builder/promconfigvalidator $tmpdir/
COPY --from=configuration-reader-builder /src/configuration-reader-builder/configurationreader $tmpdir/

COPY ./scripts/*.sh $tmpdir/
COPY ./LICENSE $tmpdir/microsoft
COPY ./NOTICE $tmpdir/microsoft
COPY ./build/linux/rpm-repos/ /etc/yum.repos.d/

ARG TARGETARCH
RUN tdnf clean all
RUN tdnf repolist --refresh
RUN tdnf update -y
RUN tdnf install -y wget sudo net-tools cronie vim ruby-devel logrotate procps-ng busybox diffutils curl
RUN mkdir /busybin && busybox --install /busybin
RUN chmod 775 /etc/cron.daily/logrotate
RUN chmod 775 $tmpdir/*.sh;
RUN sync;
RUN $tmpdir/setup-configreader.sh ${TARGETARCH}

FROM mcr.microsoft.com/cbl-mariner/distroless/base:2.0
ENV PATH="/busybin:${PATH}"
ENV OS_TYPE "linux"

# files
COPY --from=builder /opt /opt
COPY --from=builder /etc /etc
COPY --from=builder /busybin /busybin
COPY --from=builder /var/lib/logrotate /var/lib/logrotate
COPY --from=builder /var/spool/cron /var/spool/cron

# executables
COPY --from=builder /usr/bin/ruby /usr/bin/ruby
COPY --from=builder /usr/lib/ruby /usr/lib/ruby
COPY --from=builder /usr/bin/inotifywait /usr/bin/inotifywait
COPY --from=builder /usr/bin/bash /usr/bin/bash
COPY --from=builder /usr/sbin/busybox /usr/sbin/busybox
COPY --from=builder /usr/sbin/crond /usr/sbin/crond
COPY --from=builder /usr/bin/vim /usr/bin/vim
COPY --from=builder /usr/share/vim /usr/share/vim
COPY --from=builder /usr/sbin/logrotate /usr/sbin/logrotate
COPY --from=builder /usr/bin/gzip /usr/bin/
COPY --from=builder /usr/bin/curl /usr/bin/
COPY --from=builder /bin/sh /bin/sh

# bash dependencies
COPY --from=builder /lib/libreadline.so.8 /lib/
COPY --from=builder /usr/lib/libncursesw.so.6 /usr/lib/libtinfo.so.6 /usr/lib/
# inotifywait dependencies
COPY --from=builder /lib/libinotifytools.so.0 /lib/
# crond dependencies
COPY --from=builder /lib/libselinux.so.1 /lib/libpam.so.0 /lib/libc.so.6 /lib/libpcre.so.1 /lib/libaudit.so.1 /lib/libcap-ng.so.0/ /lib/
# vim dependencies
COPY --from=builder /lib/libm.so.6 /lib/libtinfo.so.6 /lib/
# ruby dependencies
COPY --from=builder /usr/lib/libruby.so.3.1 /usr/lib/libz.so.1 /usr/lib/libgmp.so.10 /usr/lib/libcrypt.so.1 /usr/lib/libm.so.6 /usr/lib/
# ruby re2 dependencies
COPY --from=builder /usr/lib/libre2.so.0a /usr/lib/libstdc++.so.6 /usr/lib/libgcc_s.so.1 /usr/lib/libz.so.1 /usr/lib/libgmp.so.10 /usr/lib/libcrypt.so.1 /usr/lib/libm.so.6 /usr/lib/
# logrotate dependencies
COPY --from=builder /lib/libselinux.so.1 /lib/libpopt.so.0 /lib/libpcre.so.1 /lib/
# curl dependencies
COPY --from=builder /lib/libcurl.so.4 /lib/libz.so.1 /lib/libc.so.6 /lib/libnghttp2.so.14 /lib/libssh2.so.1 /lib/libssl.so.1.1 /lib/libcrypto.so.1.1 /lib/libgssapi_krb5.so.2 /lib/libzstd.so.1 /lib/
COPY --from=builder /usr/lib/libkrb5.so.3 /usr/lib/libk5crypto.so.3 /usr/lib/libcom_err.so.2 /usr/lib/libkrb5support.so.0 /usr/lib/libresolv.so.2 /usr/lib/
# sh dependencies
COPY --from=builder /lib/libreadline.so.8 /lib/libc.so.6 /usr/lib/libncursesw.so.6 /usr/lib/libtinfo.so.6 /lib/

RUN [ "/bin/bash", "-c", "chmod 644 /etc/crontab" ]
RUN [ "/bin/bash", "-c", "chown root.root /etc/crontab" ]
RUN [ "/bin/bash", "-c", "chmod 755 /etc/cron.daily/logrotate" ]
ENTRYPOINT [ "/bin/bash" ]
CMD [ "/opt/main-configreader.sh" ]
Loading