forked from aws/aws-for-fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.windows
52 lines (37 loc) · 2.21 KB
/
Dockerfile.windows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# escape=`
ARG TAG=ltsc2019
#
# Runtime Image - Windows Server Core
#
FROM mcr.microsoft.com/windows/servercore:$TAG as runtime
ARG AWS_FOR_FLUENT_BIT_VERSION
WORKDIR C:/
ADD fluent-bit /fluent-bit
ADD fluent-bit-plugins /fluent-bit
ADD ecs_windows_forward_daemon /ecs_windows_forward_daemon
ADD certs /certs
ADD entrypoint.ps1 /entrypoint.ps1
# Add the version file.
RUN Powershell -Command New-Item -Path C:/ -Name AWS_FOR_FLUENT_BIT_VERSION -ItemType "file" -Value $env:AWS_FOR_FLUENT_BIT_VERSION
# Set the environment variable
RUN setx /M PATH "%PATH%;C:\fluent-bit\bin"
# Import the Amazon Root CA certificates
RUN Powershell -Command Import-Certificate -FilePath C:\certs\AmazonRootCA1.cer -CertStoreLocation Cert:\LocalMachine\Root\
RUN Powershell -Command Import-Certificate -FilePath C:\certs\AmazonRootCA2.cer -CertStoreLocation Cert:\LocalMachine\Root\
RUN Powershell -Command Import-Certificate -FilePath C:\certs\AmazonRootCA3.cer -CertStoreLocation Cert:\LocalMachine\Root\
RUN Powershell -Command Import-Certificate -FilePath C:\certs\AmazonRootCA4.cer -CertStoreLocation Cert:\LocalMachine\Root\
# Metadata as defined in OCI image spec annotations
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
LABEL org.opencontainers.image.title="AWS for Fluent Bit" `
org.opencontainers.image.description="Fluent Bit is an open source and multi-platform Log Processor and Forwarder which allows you to collect data/logs from different sources, unify and send them to multiple destinations. It's fully compatible with Docker and Kubernetes environments." `
org.opencontainers.image.version=$AWS_FOR_FLUENT_BIT_VERSION `
org.opencontainers.image.authors="FireLens Team <[email protected]>" `
org.opencontainers.image.url="https://gallery.ecr.aws/aws-observability/aws-for-fluent-bit" `
org.opencontainers.image.documentation="https://github.com/aws/aws-for-fluent-bit" `
org.opencontainers.image.vendor="Amazon Web Services" `
org.opencontainers.image.licenses="Apache-2.0" `
org.opencontainers.image.source="https://github.com/aws/aws-for-fluent-bit"
# Optional Metrics endpoint
EXPOSE 2020
# Entry point
CMD ["Powershell.exe", "-Command", "C:\\entrypoint.ps1"]