Skip to content

Commit

Permalink
[elastic-agent] Rename 'offline' image to 'complete' (#27350)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvc committed Aug 15, 2021
1 parent fea7eb6 commit 84b4cea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dev-tools/packaging/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1000,9 +1000,9 @@ specs:
<<: *agent_docker_spec
<<: *elastic_docker_spec
<<: *elastic_license_for_binaries
# This image gets an 'offline' variant for synthetics and other large
# This image gets a 'complete' variant for synthetics and other large
# packages too big to fit in the main image
variants: ["offline"]
variants: ["complete"]
files:
'{{.BeatName}}{{.BinaryExt}}':
source: ./build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}
Expand All @@ -1026,9 +1026,9 @@ specs:
<<: *agent_docker_arm_spec
<<: *elastic_docker_spec
<<: *elastic_license_for_binaries
# This image gets an 'offline' variant for synthetics and other large
# This image gets a 'complete' variant for synthetics and other large
# packages too big to fit in the main image
variants: ["offline"]
variants: ["complete"]
files:
'{{.BeatName}}{{.BinaryExt}}':
source: ./build/golang-crossbuild/{{.BeatName}}-{{.GOOS}}-{{.Platform.Arch}}{{.BinaryExt}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN mkdir -p {{ $beatHome }}/data {{ $beatHome }}/data/elastic-agent-{{ commit_s
FROM {{ .from }}

# Contains the elastic agent image variant, an empty string for the standard variant
# or "offline" for the offline one.
# or "complete" for the bigger one.
ENV ELASTIC_AGENT_IMAGE_VARIANT={{.Variant}}

{{- if contains .from "ubi-minimal" }}
Expand All @@ -48,7 +48,7 @@ RUN case $(arch) in aarch64) YUM_FLAGS="-x bind-license";; esac; \
(exit $exit_code)
{{- end }}

{{- if (and (eq .Variant "offline") (not (contains .from "ubi-minimal"))) }}
{{- if (and (eq .Variant "complete") (not (contains .from "ubi-minimal"))) }}
RUN for iter in {1..10}; do \
yum -y install atk cups gtk gdk xrandr pango libXcomposite libXcursor libXdamage \
libXext libXi libXtst cups-libs libXScrnSaver libXrandr GConf2 \
Expand Down Expand Up @@ -137,13 +137,13 @@ COPY --from=home {{ $beatHome }}/NOTICE.txt /licenses
{{- if ne .user "root" }}
RUN groupadd --gid 1000 {{ .BeatName }}
RUN useradd -M --uid 1000 --gid 1000 --groups 0 --home {{ $beatHome }} {{ .user }}
{{- if (and (eq .Variant "offline") (not (contains .from "ubi-minimal"))) }}
{{- if (and (eq .Variant "complete") (not (contains .from "ubi-minimal"))) }}
RUN chown {{ .user }} $NODE_PATH
{{- end }}
{{- end }}
USER {{ .user }}

{{- if (and (eq .Variant "offline") (not (contains .from "ubi-minimal"))) }}
{{- if (and (eq .Variant "complete") (not (contains .from "ubi-minimal"))) }}
# Setup synthetics env vars
ENV ELASTIC_SYNTHETICS_CAPABLE=true
ENV SUITES_DIR={{ $beatHome }}/suites
Expand Down

0 comments on commit 84b4cea

Please sign in to comment.