Skip to content

Commit

Permalink
Upgrade ubuntu from 20.04 to 24.04 LTS version
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Barger <artem@bargr.net>
  • Loading branch information
C0rWin authored and denyeart committed Sep 17, 2024
1 parent 2d95a83 commit ae7cb6f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# - unit-test - runs the go-test based unit tests
# - verify - runs unit tests for only the changed package tree

UBUNTU_VER ?= 20.04
UBUNTU_VER ?= 22.04
FABRIC_VER ?= 3.0.0

# 3rd party image version
Expand Down Expand Up @@ -248,7 +248,7 @@ $(BUILD_DIR)/images/peer/$(DUMMY): BUILD_ARGS=--build-arg GO_TAGS=${GO_TAGS}
$(BUILD_DIR)/images/orderer/$(DUMMY): BUILD_ARGS=--build-arg GO_TAGS=${GO_TAGS}

$(BUILD_DIR)/images/%/$(DUMMY):
@echo "Building Docker image $(DOCKER_NS)/fabric-$*"
@echo "Building Docker image $(DOCKER_NS)/fabric-$* with Ubuntu version $(UBUNTU_VER)"
@mkdir -p $(@D)
$(DBUILD) -f images/$*/Dockerfile \
--build-arg GO_VER=$(GO_VER) \
Expand Down
6 changes: 3 additions & 3 deletions images/baseos/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FROM ubuntu:${UBUNTU_VER} as base
RUN apt update && apt install -y \
tzdata

RUN addgroup --gid 500 chaincode
RUN adduser --disabled-password --gecos "" --uid 500 --gid 500 --home /home/chaincode chaincode
RUN groupadd --gid 500 chaincode
RUN useradd -c "" -u 500 -g 500 -d /home/chaincode -M chaincode

USER chaincode
USER chaincode
4 changes: 2 additions & 2 deletions images/ccenv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ RUN apt update && apt install -y \
RUN curl -sL https://go.dev/dl/go${GO_VER}.${TARGETOS}-${TARGETARCH}.tar.gz | tar zxvf - -C /usr/local
ENV PATH="/usr/local/go/bin:$PATH"

RUN addgroup --gid 500 chaincode
RUN adduser --disabled-password --gecos "" --uid 500 --gid 500 --home /home/chaincode chaincode
RUN groupadd --gid 500 chaincode
RUN useradd -c "" -u 500 -g 500 -d /home/chaincode -M chaincode

RUN mkdir -p /chaincode/output /chaincode/input
RUN chown -R chaincode:chaincode /chaincode
Expand Down

0 comments on commit ae7cb6f

Please sign in to comment.