Skip to content

Commit

Permalink
feat(cleanup):bump ubuntu from 18(bionic) to 20(focal) (#12688)
Browse files Browse the repository at this point in the history
Signed-off-by: backport-bot <tim@magmacore.org>

Co-authored-by: backport-bot <tim@magmacore.org>
  • Loading branch information
tmdzk and backport-bot committed May 19, 2022
1 parent b9fb892 commit db2e637
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cwf/gateway/docker/go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ARG baseImage="ubuntu:bionic"
ARG baseImage="ubuntu:focal"
FROM ${baseImage} as base

# Add the magma apt repo
RUN apt-get update && \
apt-get install -y apt-utils software-properties-common apt-transport-https
COPY orc8r/tools/ansible/roles/pkgrepo/files/jfrog.pub /tmp/jfrog.pub
RUN apt-key add /tmp/jfrog.pub && \
apt-add-repository "deb https://facebookconnectivity.jfrog.io/artifactory/list/dev/ bionic main"
apt-add-repository "deb https://artifactory.magmacore.org/artifactory/debian-test focal-ci main"

# Install the runtime deps.
RUN apt-get update && apt-get install -y \
Expand Down Expand Up @@ -106,7 +106,7 @@ RUN make -C $MAGMA_ROOT/cwf/gateway build
# -----------------------------------------------------------------------------
# Production image
# -----------------------------------------------------------------------------
FROM ubuntu:bionic AS cwag_go
FROM ubuntu:focal AS cwag_go

# Install envdir.
RUN apt-get -y update && apt-get -y install daemontools curl arping
Expand Down
8 changes: 4 additions & 4 deletions feg/gateway/docker/go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# -----------------------------------------------------------------------------
# Development image for test, precommit, etc.
# -----------------------------------------------------------------------------
ARG baseImage="ubuntu:bionic"
ARG baseImage="ubuntu:focal"
FROM ${baseImage} as base

# Add the magma apt repo
RUN apt-get update && \
apt-get install -y apt-utils software-properties-common apt-transport-https
COPY orc8r/tools/ansible/roles/pkgrepo/files/jfrog.pub /tmp/jfrog.pub
RUN apt-key add /tmp/jfrog.pub && \
apt-add-repository "deb https://facebookconnectivity.jfrog.io/artifactory/list/dev/ xenial main"
apt-add-repository "deb https://artifactory.magmacore.org/artifactory/debian-test focal-ci main"

# Install the runtime deps.
RUN apt-get update && apt-get install -y \
Expand Down Expand Up @@ -113,13 +113,13 @@ RUN ./run.sh build
# -----------------------------------------------------------------------------
# Go-cache base image
# -----------------------------------------------------------------------------
FROM ubuntu:bionic as gocache
FROM ubuntu:focal as gocache
COPY --from=builder /root/.cache /root/.cache

# -----------------------------------------------------------------------------
# Production image
# -----------------------------------------------------------------------------
FROM ubuntu:bionic AS gateway_go
FROM ubuntu:focal AS gateway_go
ARG MAGMA_BUILD_BRANCH=unknown
ARG MAGMA_BUILD_TAG=unknown
ARG MAGMA_BUILD_COMMIT_HASH=unknonw
Expand Down

0 comments on commit db2e637

Please sign in to comment.