Skip to content

Commit

Permalink
* Update and explani skip fetch latest git deps in publish command
Browse files Browse the repository at this point in the history
* Remove things that are in the base image now
  • Loading branch information
matt committed Sep 5, 2024
1 parent 64154ef commit aa2fe9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 19 deletions.
12 changes: 0 additions & 12 deletions src/docker/local-deployer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,12 @@
FROM econialabs/aptos-cli:4.1.0 AS aptos-cli

FROM ubuntu:noble

COPY --from=aptos-cli /usr/local/bin/aptos /usr/local/bin/aptos

ARG PUBLISHER_PRIVATE_KEY \
EMOJICOIN_MODULE_ADDRESS
ENV PUBLISHER_PRIVATE_KEY=${PUBLISHER_PRIVATE_KEY} \
EMOJICOIN_MODULE_ADDRESS=${EMOJICOIN_MODULE_ADDRESS}

WORKDIR /app

RUN apt-get update \
&& apt-get install --no-install-recommends -y \
ca-certificates \
git=1:2.43* \
curl=8.5* \
jq=1.7* \
&& rm -rf /var/lib/apt/lists/*

ARG emojicoin_dir=src/move/emojicoin_dot_fun
ARG rewards_dir=src/move/rewards
COPY ${emojicoin_dir} move/emojicoin_dot_fun
Expand Down
17 changes: 10 additions & 7 deletions src/docker/local-deployer/sh/build-publish-payloads.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ address=$EMOJICOIN_MODULE_ADDRESS

aptos move build-publish-payload \
--assume-yes \
--named-addresses \
rewards=$address,integrator=$address,emojicoin_dot_fun=$address \
--named-addresses emojicoin_dot_fun=$address \
--override-size-check \
--included-artifacts none \
--package-dir $move_dir/rewards/ \
--json-output-file $json_dir/rewards.json
--package-dir $move_dir/emojicoin_dot_fun/ \
--json-output-file $json_dir/emojicoin_dot_fun.json \

# Note the extra `--skip-fetch-latest-git-deps` flag because the previous
# command already fetches the latest git dependencies and the `rewards` module's
# dependencies are a subset of the dependencies for `emojicoin_dot_fun`.
aptos move build-publish-payload \
--assume-yes \
--named-addresses emojicoin_dot_fun=$address \
--named-addresses \
rewards=$address,integrator=$address,emojicoin_dot_fun=$address \
--override-size-check \
--included-artifacts none \
--package-dir $move_dir/emojicoin_dot_fun/ \
--json-output-file $json_dir/emojicoin_dot_fun.json \
--package-dir $move_dir/rewards/ \
--json-output-file $json_dir/rewards.json \
--skip-fetch-latest-git-deps

0 comments on commit aa2fe9d

Please sign in to comment.