mirror of
https://github.com/gravitational/teleport
synced 2024-10-20 01:03:40 +00:00
Change to Ubuntu 20.04 base and improve apt cleanup (#4004)
* Change to Ubuntu 20.04 base and improve apt cleanup * Update e ref
This commit is contained in:
parent
74117871ef
commit
3034a59c6e
|
@ -55,6 +55,15 @@ build-binaries: buildbox
|
|||
docker run $(DOCKERFLAGS) $(BCCFLAGS) $(NOROOT) $(BUILDBOX) \
|
||||
make -C $(SRCDIR) ADDFLAGS='$(ADDFLAGS)' all
|
||||
|
||||
#
|
||||
# Build 'teleport' FIPS release inside a docker container
|
||||
# This builds Enterprise binaries only.
|
||||
#
|
||||
.PHONY:build-binaries-fips
|
||||
build-binaries-fips: buildbox-fips
|
||||
docker run $(DOCKERFLAGS) $(BCCFLAGS) $(NOROOT) $(BUILDBOXFIPS) \
|
||||
make -C $(SRCDIR)/e ADDFLAGS='$(ADDFLAGS)' all
|
||||
|
||||
#
|
||||
# Builds a Docker container which is used for building official Teleport
|
||||
# binaries and docs
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
FROM ubuntu:18.04
|
||||
FROM ubuntu:20.04
|
||||
|
||||
# Install dumb-init and ca-certificate. The dumb-init package is to ensure
|
||||
# Install dumb-init and ca-certificates. The dumb-init package is to ensure
|
||||
# signals and orphaned processes are are handled correctly. The ca-certificate
|
||||
# package is installed because the base Ubuntu image does not come with any
|
||||
# certificate authorities.
|
||||
#
|
||||
# Note that /var/lib/apt/lists/* is cleaned up in the same RUN command as
|
||||
# "apt-get update" to reduce the size of the image.
|
||||
RUN apt-get update && apt-get upgrade -y && \
|
||||
apt-get install --no-install-recommends -y \
|
||||
dumb-init \
|
||||
ca-certificates \
|
||||
&& update-ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y ca-certificates dumb-init && \
|
||||
update-ca-certificates && \
|
||||
apt-get -y clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Bundle "teleport", "tctl", and "tsh" binaries into image.
|
||||
ADD teleport /usr/local/bin/teleport
|
||||
ADD tctl /usr/local/bin/tctl
|
||||
ADD tsh /usr/local/bin/tsh
|
||||
COPY teleport /usr/local/bin/teleport
|
||||
COPY tctl /usr/local/bin/tctl
|
||||
COPY tsh /usr/local/bin/tsh
|
||||
|
||||
# By setting this entry point, we expose make target as command.
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "teleport", "start", "-c", "/etc/teleport/teleport.yaml"]
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
FROM ubuntu:18.04
|
||||
FROM ubuntu:20.04
|
||||
|
||||
# Install dumb-init and ca-certificate. The dumb-init package is to ensure
|
||||
# Install dumb-init and ca-certificates. The dumb-init package is to ensure
|
||||
# signals and orphaned processes are are handled correctly. The ca-certificate
|
||||
# package is installed because the base Ubuntu image does not come with any
|
||||
# certificate authorities.
|
||||
#
|
||||
# Note that /var/lib/apt/lists/* is cleaned up in the same RUN command as
|
||||
# "apt-get update" to reduce the size of the image.
|
||||
RUN apt-get update && apt-get upgrade -y && \
|
||||
apt-get install --no-install-recommends -y \
|
||||
dumb-init \
|
||||
ca-certificates \
|
||||
&& update-ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y ca-certificates dumb-init && \
|
||||
update-ca-certificates && \
|
||||
apt-get -y clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Bundle "teleport", "tctl", and "tsh" binaries into image.
|
||||
ADD teleport /usr/local/bin/teleport
|
||||
ADD tctl /usr/local/bin/tctl
|
||||
ADD tsh /usr/local/bin/tsh
|
||||
COPY teleport /usr/local/bin/teleport
|
||||
COPY tctl /usr/local/bin/tctl
|
||||
COPY tsh /usr/local/bin/tsh
|
||||
|
||||
# By setting this entry point, we expose make target as command.
|
||||
ENTRYPOINT ["/usr/bin/dumb-init", "teleport", "start", "-c", "/etc/teleport/teleport.yaml", "--fips"]
|
||||
|
|
2
e
2
e
|
@ -1 +1 @@
|
|||
Subproject commit 76d06b2735207c3877a83327ea5cc867c6f5a6c7
|
||||
Subproject commit 5c2e644872bb6edc96d9d46c514122db0f6bb655
|
Loading…
Reference in a new issue