Skip to content

Commit

Permalink
update Dockerfiles to remove the warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
  • Loading branch information
pfi79 committed Oct 17, 2024
1 parent 853f079 commit a11dd91
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion images/baseos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
ARG GO_VER
ARG UBUNTU_VER

FROM ubuntu:${UBUNTU_VER} as base
FROM ubuntu:${UBUNTU_VER:-22.04} AS base

RUN apt update && apt install -y \
tzdata
Expand Down
2 changes: 1 addition & 1 deletion images/ccenv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#

ARG UBUNTU_VER
FROM ubuntu:${UBUNTU_VER}
FROM ubuntu:${UBUNTU_VER:-22.04}

ARG TARGETARCH
ARG TARGETOS
Expand Down
8 changes: 4 additions & 4 deletions images/orderer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
###############################################################################

ARG UBUNTU_VER
FROM ubuntu:${UBUNTU_VER} as builder
FROM ubuntu:${UBUNTU_VER:-22.04} AS builder

ARG TARGETARCH
ARG TARGETOS
Expand All @@ -48,7 +48,7 @@ RUN make orderer GO_TAGS=${GO_TAGS} FABRIC_VER=${FABRIC_VER}
###############################################################################

ARG UBUNTU_VER
FROM ubuntu:${UBUNTU_VER}
FROM ubuntu:${UBUNTU_VER:-22.04}

ARG FABRIC_VER

Expand All @@ -57,8 +57,8 @@ ARG FABRIC_VER
# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
RUN echo 'hosts: files dns' > /etc/nsswitch.conf

ENV FABRIC_CFG_PATH /etc/hyperledger/fabric
ENV FABRIC_VER ${FABRIC_VER}
ENV FABRIC_CFG_PATH=/etc/hyperledger/fabric
ENV FABRIC_VER=${FABRIC_VER}

COPY --from=builder build/bin/orderer /usr/local/bin
COPY --from=builder sampleconfig/msp ${FABRIC_CFG_PATH}/msp
Expand Down
8 changes: 4 additions & 4 deletions images/peer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
###############################################################################

ARG UBUNTU_VER
FROM ubuntu:${UBUNTU_VER} as builder
FROM ubuntu:${UBUNTU_VER:-22.04} AS builder

ARG TARGETARCH
ARG TARGETOS
Expand Down Expand Up @@ -49,7 +49,7 @@ RUN make ccaasbuilder
###############################################################################

ARG UBUNTU_VER
FROM ubuntu:${UBUNTU_VER}
FROM ubuntu:${UBUNTU_VER:-22.04}

ARG TARGETOS
ARG TARGETARCH
Expand All @@ -60,8 +60,8 @@ ARG FABRIC_VER
# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf
RUN echo 'hosts: files dns' > /etc/nsswitch.conf

ENV FABRIC_CFG_PATH /etc/hyperledger/fabric
ENV FABRIC_VER ${FABRIC_VER}
ENV FABRIC_CFG_PATH=/etc/hyperledger/fabric
ENV FABRIC_VER=${FABRIC_VER}

COPY --from=builder build/bin/peer /usr/local/bin
COPY --from=builder sampleconfig/msp ${FABRIC_CFG_PATH}/msp
Expand Down

0 comments on commit a11dd91

Please sign in to comment.