Skip to content

Commit

Permalink
chore: Remove beta + performance improvements to build (packer imagin…
Browse files Browse the repository at this point in the history
…g) (#645)

* remove beta build

* use binary releases for price-feeder/peggo; bump golang 17.5->17.8
  • Loading branch information
dreamcodez committed Mar 14, 2022
1 parent 18f3eb1 commit 34c31dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
16 changes: 1 addition & 15 deletions infra/packer/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/

# Install go
RUN curl -sL https://go.dev/dl/go1.17.5.linux-amd64.tar.gz | tar --strip-components=1 -C /usr/local -xz
RUN curl -sL https://go.dev/dl/go1.17.8.linux-amd64.tar.gz | tar --strip-components=1 -C /usr/local -xz

# Copy Umee source in
WORKDIR /tmp/build/umee
Expand All @@ -25,21 +25,7 @@ COPY cmd/ cmd/
COPY tests/ tests/
COPY x/ x/

# Build umeed beta
RUN UMEE_ENABLE_BETA=true make build
RUN mv build/umeed build/umeed-beta
# Build umeed
RUN make build

# Clone/Build price-feeder
WORKDIR /tmp/build/price-feeder
RUN git clone https://github.com/umee-network/umee.git --branch price-feeder/v0.1.2 --single-branch --depth 1 .
WORKDIR /tmp/build/price-feeder/price-feeder
RUN make build

# Clone/Build Peggo
WORKDIR /tmp/build/peggo
RUN git clone https://github.com/umee-network/peggo.git --branch v0.2.6 --single-branch --depth 1 .
RUN make build

WORKDIR /root
3 changes: 0 additions & 3 deletions infra/packer/bin/build-dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ TAG=umee-build-6ywm7fcu
docker build -t $TAG -f Dockerfile.build ../../
CONTAINER=`docker create $TAG`

docker cp "$CONTAINER:/tmp/build/umee/build/umeed-beta" dist/x86_64/
docker cp "$CONTAINER:/tmp/build/umee/build/umeed" dist/x86_64/
docker cp "$CONTAINER:/tmp/build/price-feeder/price-feeder/build/price-feeder" dist/x86_64/
docker cp "$CONTAINER:/tmp/build/peggo/build/peggo" dist/x86_64/

docker rm -v "$CONTAINER"
4 changes: 4 additions & 0 deletions infra/packer/umee-node-dist.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ build {
, "curl -sLf https://github.com/informalsystems/ibc-rs/releases/download/v0.12.0/hermes-v0.12.0-x86_64-unknown-linux-gnu.tar.gz | tar -C /usr/local/bin -xz"
, "curl -sLf https://github.com/cosmos/gaia/releases/download/v6.0.3/gaiad-v6.0.3-linux-amd64 -o /usr/local/bin/gaiad"
, "chmod a+x /usr/local/bin/gaiad"
, "cd /tmp && curl -sLqf https://github.com/umee-network/umee/releases/download/price-feeder/v0.1.2/price-feeder-v0.1.2-linux-amd64.tar.gz | tar --strip-components 1 -xz"
, "cp /tmp/price-feeder /usr/local/bin/"
, "cd /tmp && curl -sLqf https://github.com/umee-network/peggo/releases/download/v0.2.6/peggo-v0.2.6-linux-amd64.tar.gz | tar --strip-components 1 -xz"
, "cp /tmp/peggo /usr/local/bin/"
]
}

Expand Down

0 comments on commit 34c31dc

Please sign in to comment.