Skip to content

Conversation

@olizilla
Copy link
Member

ci is dead. long live ci.

License: MIT
Signed-off-by: Oli Evans oli@tableflip.io

ci is dead. long live ci.

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
@ghost ghost assigned olizilla Feb 21, 2019
@ghost ghost added the status/in-progress In progress label Feb 21, 2019
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
preview_url=https://ipfs.io/ipfs/$hash

# Preload ipfs hash on the gateway
curl --silent --output /dev/null --show-error $preview_url
Copy link
Member

@lidel lidel Feb 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the intention to preload just the HTML of main page?
If not, entire thing could be preloaded asynchronously in best-effort fashion without breaking the build:

nohup curl --max-time 900 -s "https://ipfs.io/api/v0/refs?r=true&arg=${preview_url}" >/dev/null 2>&1 &

docker:
- image: olizilla/ipfs-dns-deploy
environment:
DOMAIN: explore.ipld.io
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webui.ipfs.io?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

derp

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
@olizilla olizilla merged commit 67bd416 into master Feb 21, 2019
@olizilla olizilla deleted the circleci-deploy branch February 21, 2019 17:54
@ghost ghost removed the status/in-progress In progress label Feb 21, 2019
Copy link
Contributor

@hsanjuan hsanjuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post-merge review with a couple of improvements...

hash=$(ipfs-cluster-ctl \
--host /dnsaddr/cluster.ipfs.io \
--basic-auth $CLUSTER_USER:$CLUSTER_PASSWORD \
add --rmin 3 --rmax 3 --name "$DOMAIN" \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not set --rmin/--rmax, that way cluster's defaults will be used.. Also, if by chance you have the [short]-commit ID available, you could add it to the --name tag so there is more info.

--host /dnsaddr/cluster.ipfs.io \
--basic-auth $CLUSTER_USER:$CLUSTER_PASSWORD \
add --rmin 3 --rmax 3 --name "$DOMAIN" \
--recursive /tmp/workspace/$BUILD_DIR | tail -n1 | cut -d " " -f 2 )
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You want to use the --quietest or --Q option which only outputs the final hash, rather than tail ...

@olizilla
Copy link
Member Author

Thanks @hsanjuan that's good to know. Will update.

olizilla added a commit that referenced this pull request Feb 22, 2019
see: #965 (review)

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
olizilla added a commit that referenced this pull request Feb 22, 2019
- let ipfs-cluster decide replication min/max
- use --quieter to get the root cid, rather than fancy tail-ing.

see: #965 (review)

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants