add datadog/agent

This commit is contained in:
Haitao Pan 2023-03-10 15:20:47 +08:00
parent df06ce67e6
commit 8f464a5873
9 changed files with 43 additions and 3 deletions

View File

@ -3,12 +3,31 @@ on:
pull_request:
push:
paths:
- 'oci/datadog/agent/Dockerfile'
- 'oci/datadog/cluster-agent/Dockerfile'
- '.github/workflows/datadog-agent.yaml'
- 'oci/datadog-cluster-agent/Dockerfile'
branches:
- main
jobs:
datadog-cluster-agent:
runs-on: ubuntu-latest
name: build chart builder datadog-cluster-agent image
steps:
- uses: actions/checkout@master
- name: 'Artifact: build && push datadog-cluster-agent image'
uses: aevea/action-kaniko@master
with:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/datadog/cluster-agent/'
build_file: 'Dockerfile'
image: public/cluster-agent
tag: 7.43.1
cache: false
cache_registry: cache
datadog-agent:
runs-on: ubuntu-latest
name: build chart builder datadog-cluster-agent image
@ -21,9 +40,9 @@ jobs:
registry: artifact.onwalk.net
username: admin
password: ${{ secrets.HELM_REPO_PASSWORD }}
path: 'oci/datadog-cluster-agent/'
path: 'oci/datadog/agent/'
build_file: 'Dockerfile'
image: public/cluster-agent
image: public/agent
tag: 7.43.1
cache: false
cache_registry: cache

View File

@ -0,0 +1,21 @@
FROM artifact.onwalk.net/k8s/datadog/agent:7.43.1
LABEL maintainer "Datadog <package@datadoghq.com>"
ARG CIBUILD
RUN apt update && apt install ca-certificates curl -y
RUN cd /usr/local/share/ca-certificates/ && curl http://certinfo.roche.com/rootcerts/Roche%20Root%20CA%201.cer -o RocheRootCA1.cer && \
curl http://certinfo.roche.com/rootcerts/RocheEnterpriseCA1.cer -o RocheEnterpriseCA1.cer && \
curl http://certinfo.roche.com/rootcerts/RocheEnterpriseCA2.cer \
-o RocheEnterpriseCA2.cer && curl http://certinfo.roche.com/rootcerts/Roche%20Root%20CA%201%20-%20G2.crt \
-o RocheRootCA1-G2.crt && curl http://certinfo.roche.com/rootcerts/Roche%20Enterprise%20CA%201%20-%20G2.crt \
-o RocheEnterpriseCA1-G2.crt && curl http://certinfo.roche.com/rootcerts/Roche%20G3%20Root%20CA.crt \
-o RocheG3RootCA.crt && curl http://certinfo.roche.com/rootcerts/Roche%20G3%20Issuing%20CA%201.crt \
-o RocheG3IssuingCA1.crt && curl http://certinfo.roche.com/rootcerts/Roche%20G3%20Issuing%20CA%202.crt \
-o RocheG3IssuingCA2.crt && curl http://certinfo.roche.com/rootcerts/Roche%20G3%20Issuing%20CA%203.crt \
-o RocheG3IssuingCA3.crt && curl http://certinfo.roche.com/rootcerts/Roche%20G3%20Issuing%20CA%204.crt \
-o RocheG3IssuingCA4.crt && update-ca-certificates
ENV LD_PRELOAD=/opt/lib/nosys.so
CMD ["/bin/entrypoint.sh"]