Skip to content

Commit bbbe682

Browse files
committed
build(docker): update docker-compose to use main image
1 parent 7c4a677 commit bbbe682

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

docker/docker-compose.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
version: "2.2"
22
services:
33
ag-solo:
4-
# NOTE: Use an environment variable like:
5-
# SDK_TAG=agoricdev-5.2
64
# This tag needs to be the SDK used by the $NETCONFIG_URL
7-
# Usually it's the same as the chain name
8-
image: agoric/cosmic-swingset-solo:${SDK_TAG}
5+
# SDK_TAG=agoricdev-10
6+
image: agoric/agoric-sdk:${SDK_TAG}
97
# ISSUE: 127.0.0.1? not a docker network?
108
ports:
119
- "${HOST_PORT:-8000}:${PORT:-8000}"
1210
volumes:
13-
- "ag-solo-state:/usr/src/app/solo"
14-
- "ag-solo-state:/data/solo"
11+
- "ag-solo-state:/state"
1512
- "$HOME/.agoric:/root/.agoric"
1613
environment:
17-
- "AG_SOLO_BASEDIR=${SOLO_HOME:-agoric}"
14+
- "AG_SOLO_BASEDIR=/state/${SOLO_HOME:-agoriclocal}"
15+
entrypoint: ag-solo
1816
command:
1917
- setup
2018
- --webhost=0.0.0.0
2119
- --webport=${PORT:-8000}
22-
# NOTE: Use an environment variable like:
23-
# NETCONFIG_URL=https://devnet.agoric.net/network-config
24-
- --netconfig=${NETCONFIG_URL}
20+
- --netconfig=${NETCONFIG_URL:-https://stage.agoric.net/network-config}
2521
volumes:
2622
ag-solo-state:

scripts/docker-tag.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ for img in agoric-sdk cosmic-swingset-setup cosmic-swingset-solo deployment; do
1515
SRC="$DOCKERUSER/$img:$SRCTAG"
1616
DST="$DOCKERUSER/$img:$DSTTAG"
1717
if manifest=$(docker manifest inspect "$SRC"); then
18-
SUBIMGS=$(jq -r .manifests[].digest <<<"$manifest" | sed -e "s!^!$DOCKERUSER/$img@!")
19-
docker manifest create "$DST" $SUBIMGS
18+
AMENDS=$(jq -r .manifests[].digest <<<"$manifest" | sed -e "s!^!--amend $DOCKERUSER/$img@!")
19+
docker manifest create "$DST" $AMENDS
2020
docker manifest push "$DST"
2121
elif docker pull "$SRC"; then
2222
docker tag "$SRC" "$DST"

0 commit comments

Comments
 (0)