Skip to content

Commit

Permalink
[8.11] [build/docker] Upgrade Ubuntu base image to 22.04 (elastic#162282
Browse files Browse the repository at this point in the history
) (elastic#169580)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[build/docker] Upgrade Ubuntu base image to 22.04
(elastic#162282)](elastic#162282)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Jon","email":"jon@elastic.co"},"sourceCommit":{"committedDate":"2023-10-23T19:49:06Z","message":"[build/docker]
Upgrade Ubuntu base image to 22.04 (elastic#162282)\n\nRelease note:\r\nThe
default container's base image has been upgraded from Ubuntu 20.04\r\nto
22.04","sha":"9d139f6192647a91010e95c84d651644158abc69","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Team:Operations","backport:prev-minor","ci:cloud-redeploy","ci:build-serverless-image","v8.12.0"],"number":162282,"url":"https://github.com/elastic/kibana/pull/162282","mergeCommit":{"message":"[build/docker]
Upgrade Ubuntu base image to 22.04 (elastic#162282)\n\nRelease note:\r\nThe
default container's base image has been upgraded from Ubuntu 20.04\r\nto
22.04","sha":"9d139f6192647a91010e95c84d651644158abc69"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/162282","number":162282,"mergeCommit":{"message":"[build/docker]
Upgrade Ubuntu base image to 22.04 (elastic#162282)\n\nRelease note:\r\nThe
default container's base image has been upgraded from Ubuntu 20.04\r\nto
22.04","sha":"9d139f6192647a91010e95c84d651644158abc69"}}]}] BACKPORT-->

Co-authored-by: Jon <jon@elastic.co>
  • Loading branch information
kibanamachine and jbudz authored Oct 23, 2023
1 parent 379d9eb commit a382569
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/setup/docker.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:es-docker-image: {es-docker-repo}:{version}

Docker images for {kib} are available from the Elastic Docker registry. The
base image is https://hub.docker.com/_/ubuntu[ubuntu:20.04].
base image is https://hub.docker.com/_/ubuntu[ubuntu:22.04].

A list of all published Docker images and tags is available at
https://www.docker.elastic.co[www.docker.elastic.co]. The source code is in
Expand Down
2 changes: 1 addition & 1 deletion src/dev/build/tasks/os_packages/docker_generator/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function runDockerGenerator(
}
) {
let baseImageName = '';
if (flags.baseImage === 'ubuntu') baseImageName = 'ubuntu:20.04';
if (flags.baseImage === 'ubuntu') baseImageName = 'ubuntu:22.04';
if (flags.baseImage === 'ubi8') baseImageName = 'docker.elastic.co/ubi8/ubi-minimal:latest';
if (flags.baseImage === 'ubi9') baseImageName = 'docker.elastic.co/ubi9/ubi-minimal:latest';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ ENTRYPOINT ["/bin/tini", "--"]
CMD ["/app/kibana.sh"]
# Generate a stub command that will be overwritten at runtime
RUN mkdir /app && \
echo -e '#!/bin/bash\nexec /usr/local/bin/kibana-docker' > /app/kibana.sh && \
/usr/bin/echo -e '#!/bin/bash\nexec /usr/local/bin/kibana-docker' > /app/kibana.sh && \
chmod 0555 /app/kibana.sh
{{/cloud}}

Expand Down

0 comments on commit a382569

Please sign in to comment.