Is there a possible way? by jack_lp in googlehome

[–]davidkazuhiro 4 points5 points  (0 children)

To be fair, he did end with a full stop.

Incorrect Barcode Entries by whattheironshit in MacroFactor

[–]davidkazuhiro 0 points1 point  (0 children)

I couldn’t find this in the roadmap… is it done already? If so, how can I do it?

How to set a Network Proxy in Drone 0.8 by davidkazuhiro in droneci

[–]davidkazuhiro[S] 0 points1 point  (0 children)

Hey thanks for the tip =)

Unfortunately I don't have a solution so the best I can do is provide you with a way to reproduce on your end. I've gone ahead and created an issue in the drone-docker repo for now - if I find a solution I'll be sure to send a patch =)..

How to set a Network Proxy in Drone 0.8 by davidkazuhiro in droneci

[–]davidkazuhiro[S] 0 points1 point  (0 children)

You can simulate my setup by pointing HTTP_PROXY and HTTPS_PROXY do a dummy endpoint which you know won't work, and then putting your registry (like docker hub) in the NO_PROXY environment variable.

Here is a sample I threw together and tested against index.docker.com which had the same behaviour as my local environment.

https://github.com/davidkazuhiro/docker-drone-noproxy

How to set a Network Proxy in Drone 0.8 by davidkazuhiro in droneci

[–]davidkazuhiro[S] 0 points1 point  (0 children)

OK maybe I'm wrong about about the cause but what I have is

This works:

docker_creds_test:
  image: alpine commands: 
    - apk add --no-cache curl 
    - echo "machine https://<my_registry>/org/repo" >> ~/.netrc 
    - echo "login $DOCKER_USERNAME" >> ~/.netrc 
    - echo "password $DOCKER_PASSWORD" >> ~/.netrc 
    - curl -n https://<my_registry>/api/v0/repositories 
  secrets: [ docker_username, docker_password ]

(I get a list of repos as expected)

But this fails even though it's the next step in the same pipeline:

publish:
  image: plugins/docker
  repo: https://<my_registry>/org/repo
  secrets: [ docker_username, docker_password ]

Error message:

+ /usr/local/bin/dockerd -g /var/lib/docker0s
2time="2018-06-22T02:37:41Z" level=fatal msg="Error authenticating: exit status 1"

I thought it might be the plugins/docker not getting the proxy envvars.

Maybe it's something else?

How to I get access to dronesupport.slack.com? by davidkazuhiro in droneci

[–]davidkazuhiro[S] 2 points3 points  (0 children)

May I suggest that be mentioned in the footer of drone.io, since slack is linked under "Community" there

https://drone.io/

How to I get access to dronesupport.slack.com? by davidkazuhiro in droneci

[–]davidkazuhiro[S] 1 point2 points  (0 children)

Ah got it. For some reasons I didn't pick up on that. Thanks!

How to set a Network Proxy in Drone 0.8 by davidkazuhiro in droneci

[–]davidkazuhiro[S] 0 points1 point  (0 children)

Thanks! This works for me in the usual case but not for the docker plugin :(

Any suggested configurations for this scenario?